Brings UI Automation to AI agents for Windows WPF apps. You get semantic selectors instead of brittle screen coordinates, so you can query, click, type, and wait on controls by name or AutomationId. Built on FlaUI and exposes tools for inspecting UI trees, performing actions like toggle/expand/scroll, and generating xUnit test code from recorded workflows. The optional in-process probe surfaces WPF internals that UIA can't reach: bindings, ViewModels, commands, validation errors. Ships as a .NET 8 binary wrapped in an npm launcher for stdio transport. Useful when you're automating desktop test scenarios or need an agent to drive a thick client without Selenium-style DOM assumptions.
WpfPilot MCP is a local Model Context Protocol server for Windows WPF applications. It lets AI coding agents inspect UI Automation trees, click and type through semantic selectors, diagnose WPF-specific issues, record workflows, and generate xUnit + FlaUI tests.
npx (recommended). No .NET SDK required for the release binary or npm launcher.Add this to your MCP client configuration (global or project-scoped):
{
"mcpServers": {
"wpfpilot-mcp": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@skuzadev/wpfpilot-mcp"]
}
}
}
Or run directly (stdio; waits for an MCP client):
npx -y @skuzadev/wpfpilot-mcp
The npm launcher downloads the latest Windows release binary on first run, then proxies stdio to it.
Other installs (persistent wpfpilot-mcp command, release zip, uninstall): see Install WpfPilot.
Use the standard config above unless noted. More clients: docs/all-clients.md.
Global: ~/.cursor/mcp.json (do not add a project .cursor/mcp.json unless you need a repo-specific override)
{
"mcpServers": {
"wpfpilot-mcp": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@skuzadev/wpfpilot-mcp"]
}
}
}
Or: Cursor Settings → MCP → Add new MCP Server — command npx, args -y @skuzadev/wpfpilot-mcp.
cursor-agent mcp list
cursor-agent mcp list-tools wpfpilot-mcp
codex mcp add wpfpilot-mcp -- npx -y @skuzadev/wpfpilot-mcp
codex mcp list
Or ~/.codex/config.toml:
[mcp_servers.wpfpilot-mcp]
command = "npx"
args = ["-y", "@skuzadev/wpfpilot-mcp"]
enabled = true
startup_timeout_sec = 30
tool_timeout_sec = 60
claude mcp add --transport stdio wpfpilot-mcp -- npx -y @skuzadev/wpfpilot-mcp
claude mcp list
Project .mcp.json:
{
"mcpServers": {
"wpfpilot-mcp": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@skuzadev/wpfpilot-mcp"]
}
}
}
Windows config: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"wpfpilot-mcp": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@skuzadev/wpfpilot-mcp"]
}
}
}
Restart Claude Desktop after saving.
Create .vscode/mcp.json:
{
"servers": {
"wpfpilot-mcp": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@skuzadev/wpfpilot-mcp"]
}
}
}
Or: code --add-mcp '{"name":"wpfpilot-mcp","command":"npx","args":["-y","@skuzadev/wpfpilot-mcp"]}'
After connecting the MCP client, ask:
List the WpfPilot tools and attach to my running WPF application.
Useful follow-up prompts:
Show the main window UI tree.
Click the Save button using a selector, not coordinates.
Wait until the status text says Saved.
Why is the Submit button disabled?
Record this workflow and generate an xUnit test.
| Tool | Purpose |
|---|---|
wpf_capabilities | List supported verbs, query kinds, and wait conditions. |
wpf_query | Read UI state. |
wpf_act | Perform UI actions. |
wpf_wait | Wait for UI state. |
wpf_assert | Verify UI state. |
Full tool list: docs/tools-reference.md.
The probe runs inside your WPF process and exposes diagnostics that UI Automation cannot see directly (bindings, ViewModels, commands, validation).
Use wpf_probe_connect, then inspect my ViewModel and binding errors.
Setup: docs/probe-setup.md.
WpfPilot is intended for local development and test automation.
wpfpilot-mcp is not recognized
Restart your terminal after running the installer, or use the full path to wpfpilot-mcp.exe in your MCP client configuration. See all-clients.md.
Server starts but no tools appear
Restart the MCP client and check its MCP logs. Also verify npx -y @skuzadev/wpfpilot-mcp runs from a normal terminal.
Cannot attach to an app
Make sure the WPF app is running in the same user session and at a compatible privilege level. If the app runs as administrator, the MCP client may also need to run elevated.
Probe cannot connect
Confirm the target app called ProbeHost.Start(), then use wpf_probe_status and wpf_probe_connect. If needed, pass wpfpilot-mcp-probe-{ProcessId} explicitly.
See CONTRIBUTING.md.
MIT. See LICENSE.
makafeli/n8n-workflow-builder
danishashko/make-mcp
io.github.us-all/airflow
io.github.infoinlet-marketplace/mcp-workflow
io.github.evozim/automation-weaver