Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
An MCP server that gives AI assistants full control over native Windows applications — launch, inspect, click, type, screenshot, and test any WinUI3, WPF, WinForms, or Win32 app.
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Same catalog task: Developer utilities.
Power BI Authoring MCP Server - Node.js client packaging to author Power BI semantic models in Power BI Desktop, Microsoft Fabric workspaces, and local PBIP and TMDL files.
Same catalog task: Developer utilities.
MCP (Model Context Protocol) server for 5dive. Exposes the agent-fleet CLI (tasks, agents, digest) as stdio MCP tools. MIT.
Same catalog task: Developer utilities.
Real iOS interaction clips, motion breakdowns, SwiftUI to match. Paid licence required.
Fetched from the repository for this visit.
Website · GitHub · npm · VS Code Marketplace
Playwright for Windows Desktop Apps
A Model Context Protocol (MCP) server that gives AI assistants full control over native Windows applications — launch, inspect, click, type, screenshot, and test any WinUI3, WPF, WinForms, UWP, or Win32 app.
Browser automation has Playwright. Mobile has Appium. But Windows desktop automation for AI agents? The existing options didn't go deep enough.
AI assistants like GitHub Copilot, Claude, and ChatGPT can browse the web, run terminal commands, and edit files. But they cannot interact with native Windows applications. They can't click a button in your WinUI3 app, read a value from a WPF form, or test a WinForms dialog.
WinApp MCP bridges that gap. It exposes 55 UI automation tools through the Model Context Protocol, letting any MCP-compatible AI assistant control Windows desktop apps the same way Playwright controls browsers.
| What AI Can Do Today | What AI Couldn't Do |
|---|---|
| ✅ Edit source code | ❌ Launch and interact with the compiled app |
| ✅ Run terminal commands | ❌ Click buttons, fill forms, read UI state |
| ✅ Browse websites via Playwright | ❌ Automate desktop apps |
| ✅ Write tests | ❌ Run visual/E2E tests on desktop apps |
| ✅ Run long autonomous pipelines | ❌ Keep working when the app is minimized or the screen locks |
WinApp MCP gives AI assistants eyes and hands for any Windows desktop application:
┌─────────────────────┐ MCP (stdio) ┌──────────────────────┐
│ AI Assistant │◄─────────────────────►│ WinApp MCP Server │
│ (Copilot, Claude) │ JSON-RPC over stdio │ (.NET 10 + FlaUI) │
└─────────────────────┘ └──────────┬───────────┘
│ UI Automation
▼
┌──────────────────────┐
│ Windows Application │
│ WinUI3/WPF/WinForms│
└──────────────────────┘
FindAllDescendants calls that take 200-800ms on complex appsPrintWindow API for screenshots without needing to restorePrintWindowcheck_session_status reports whether the session is locked, the app is minimized, and which operations are availablerestore_window brings a minimized app back to foreground on demandWhy it matters: AI agents running long autonomous pipelines shouldn't break because a screensaver kicked in or the user minimized the app. WinApp MCP degrades gracefully — UIA pattern-based operations keep working even when mouse/keyboard simulation can't.
Let AI assistants test your Windows app the way a QA engineer would — navigate pages, fill forms, verify data, test status transitions, capture evidence.
"Navigate to Invoices → Create New → Fill all fields → Save → Verify detail page → Test status change to Sent"
After code generation or refactoring, have the AI launch the app and verify that the UI renders correctly, buttons work, and forms validate properly.
Take baseline screenshots, make changes, take new screenshots, and use screenshot_diff to detect unexpected visual changes.
Fill complex multi-field forms in a single fill_form call. Automate repetitive data entry across desktop applications.
Integrate into build pipelines to automatically test desktop applications after each build. The MCP server runs headless-compatible via stdio transport.
Inspect the UI Automation tree to verify that all controls have proper AutomationIds, names, and patterns — critical for screen reader compatibility.
Works with any MCP client — VS Code, Claude Desktop, Cursor, Windsurf, Cline, and more.
The universal way to run WinApp MCP with any MCP client. No .NET SDK required.
npm install -g winapp-mcp
Or run directly without installing:
npx -y winapp-mcp
Then add to your MCP client config (see client-specific configs below).
The easiest way for VS Code / GitHub Copilot users. Bundles the MCP server and auto-registers on install.
.vsix file from ReleasesCtrl+Shift+P → "Extensions: Install from VSIX..." → select the fileNote: Also available from the VS Code Extension Marketplace — search "WinApp MCP" in Extensions.
git clone https://github.com/floatingbrij/desktop-pilot-mcp.git
cd desktop-pilot-mcp/src
dotnet build
dotnet run
Publish as self-contained executable (no .NET SDK needed on target):
dotnet publish -c Release -r win-x64 --self-contained
# Output: bin/Release/net10.0-windows10.0.19041.0/win-x64/publish/WinAppMCP.exe
Option A — Install the VSIX (auto-registers, nothing to configure).
Option B — Add to .vscode/mcp.json in your workspace:
{
"servers": {
"winapp": {
"type": "stdio",
"command": "npx",
"args": ["-y", "winapp-mcp"]
}
}
}
Add to %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"winapp": {
"command": "npx",
"args": ["-y", "winapp-mcp"]
}
}
}
Add to Cursor Settings → MCP Servers, or in .cursor/mcp.json:
{
"mcpServers": {
"winapp": {
"command": "npx",
"args": ["-y", "winapp-mcp"]
}
}
}
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"winapp": {
"command": "npx",
"args": ["-y", "winapp-mcp"]
}
}
}
Add via Cline MCP Settings or in cline_mcp_settings.json:
{
"mcpServers": {
"winapp": {
"command": "npx",
"args": ["-y", "winapp-mcp"]
}
}
}
WinApp MCP uses stdio transport (JSON-RPC over stdin/stdout). Point your client at:
npx -y winapp-mcp
Or directly at the executable:
path/to/WinAppMCP.exe
This tool controls your mouse and keyboard. When automation is running, it will move your cursor, click buttons, and type text. Do not interact with your computer while tests are executing — it can interfere with the automation and produce unexpected results.
Minimized/locked mode: When the app is minimized or the session is locked, WinApp MCP automatically falls back to UIA patterns (InvokePattern, ValuePattern) and
PrintWindowfor screenshots — no mouse or keyboard simulation is used in this mode.
release_all — If automation stops unexpectedly and your Ctrl/Shift/Alt keys feel "stuck", call release_all to reset.get_clipboard reads clipboard content but doesn't write to itWinApp MCP exposes 55 tools organized into 10 categories:
| Tool | Description |
|---|---|
launch_app | Launch a Windows app by executable path |
attach_to_app | Attach to a running process by name |
attach_to_pid | Attach to a running process by PID |
close_app | Close a tracked application |
list_apps | List all currently tracked applications |
| Tool | Description |
|---|---|
list_windows | List all windows of a tracked app |
list_desktop_windows | List all visible desktop windows |
get_snapshot | Get a UI tree snapshot (like browser DOM inspection) |
get_focused_element | Get the currently focused element's info |
find_elements | Search for elements with filters (type, id, name) |
find_all_elements | List all matching elements with indices |
find_elements_fuzzy | Fuzzy search — tolerates typos and partial names |
| Tool | Description |
|---|---|
read_element | Read detailed properties of a UI element |
read_element_by_index | Read properties by index (from find_all_elements) |
get_element_bounds | Get bounding rectangle (screen coordinates) |
element_exists | Fast boolean check — does this element exist? |
get_all_values | Read all editable field values at once |
| Tool | Description |
|---|---|
click_element | Click a UI element by AutomationId or name |
double_click_element | Double-click a UI element |
right_click_element | Right-click (open context menu) |
click_at_coordinates | Click at absolute screen coordinates |
invoke_element | Invoke via UIA InvokePattern/TogglePattern |
select_option | Select a ComboBox/dropdown option in one call |
expand_collapse_element | Expand, collapse, or toggle tree/menu items |
drag_element | Drag from one element to another |
| Tool | Description |
|---|---|
type_text | Type text into a text field |
press_key | Press a single key (RETURN, TAB, ESCAPE, etc.) |
press_key_combo | Press a key combination (Ctrl+S, Alt+F4) |
fill_form | Fill multiple form fields in one call |
| Tool | Description |
|---|---|
wait_for_element | Wait for an element to appear |
wait_for_condition | Wait for a property to reach a value |
wait_for_input_idle | Wait for window to be ready for input |
release_all | Emergency: release all stuck modifier keys |
| Tool | Description |
|---|---|
take_screenshot | Capture app window as PNG |
take_screenshot_optimized | Screenshot with auto-resize for LLM token budgets |
annotate_screenshot | Draw red bounding boxes around elements |
screenshot_diff | Pixel-diff two screenshots, highlight changes |
get_tree_hash | Hash the UI tree to detect changes |
| Tool | Description |
|---|---|
click_element_hwnd | Click in a specific window by handle |
set_value_hwnd | Set text in a specific window by handle |
get_snapshot_hwnd | UI snapshot of a specific window by handle |
| Tool | Description |
|---|---|
get_grid_item | Access a DataGrid cell by row/column |
find_item_by_property | Search in containers (ItemContainerPattern) |
scroll_into_view | Scroll an element into the visible area |
realize_virtualized_item | Load a virtualized item into the UI tree |
scroll_element | Scroll within a scrollable container |
invalidate_cache | Force-refresh cached window references |
| Tool | Description |
|---|---|
start_event_monitor | Start monitoring UI events (focus/structure/property) |
stop_event_monitor | Stop monitoring a session or all sessions |
get_event_log | Read captured events from a monitoring session |
| Tool | Description |
|---|---|
restore_window | Restore a minimized window and bring it to foreground |
check_session_status | Check if desktop is locked, app is minimized, and report available operations |
📖 Full tool documentation with parameters, examples, and tips: See DOCUMENTATION.md
User: "Open Notepad and show me the UI tree"
AI calls:
1. launch_app(exePath: "C:\\Windows\\notepad.exe") → "app_1234"
2. get_snapshot(appId: "app_1234", maxDepth: 3) → UI tree
User: "Create a new invoice in the app"
AI calls:
1. attach_to_app(processName: "MyApp") → "app_5678"
2. click_element(appId: "app_5678", name: "Invoices") → navigates
3. wait_for_element(appId: "app_5678", name: "New") → page loaded
4. click_element(appId: "app_5678", name: "New") → opens form
5. fill_form(appId: "app_5678", fieldsJson: { → fills all fields
"CustomerComboBox": "Acme Corp",
"ItemName": "Widget",
"Quantity": "10"
})
6. click_element(appId: "app_5678", name: "Save") → saves
7. take_screenshot(appId: "app_5678", outputPath: "...") → evidence
User: "Test the invoice lifecycle"
AI calls:
1. click_element(appId: "app_5678", name: "Mark as Sent")
2. wait_for_condition(appId: "app_5678", property: "name",
expectedValue: "Sent", automationId: "StatusBadge")
3. element_exists(appId: "app_5678", name: "Record Payment") → "true"
4. click_element(appId: "app_5678", name: "Record Payment")
5. take_screenshot_optimized(appId: "app_5678", outputPath: "...", maxTokens: 1000)
WinApp MCP is optimized for AI agent workflows where the same UI is inspected multiple times in quick succession:
| Operation | Without Cache | With Cache | Improvement |
|---|---|---|---|
get_snapshot (complex app) | 400-800ms | 50-100ms | 8x faster |
find_elements (50 results) | 300-600ms | 20-50ms | 12x faster |
click_element (by name) | 200-500ms | 30-80ms | 6x faster |
| Window lookup | 100-300ms | <1ms | 300x faster |
The descendant cache is the biggest win — FindAllDescendants() is the most expensive UIA operation, and AI agents typically call it 3-5 times per UI state. The 2-second TTL ensures fresh data while avoiding redundant traversals.
Cache is automatically invalidated after any mutation (click, type, set value) so you always get accurate results.
src/
├── Program.cs # Entry point — .NET Generic Host + MCP server registration
├── WinAppTools.cs # 55 MCP tool definitions (thin wrappers)
├── WinAppAutomation.cs # Core automation engine (~2800 lines)
└── WinAppMCP.csproj # .NET 10, FlaUI.UIA3 5.0.0, MCP 1.1.0
Design Principles:
WinAppTools.cs contains only [McpServerTool] wrappers. Zero business logic.WinAppAutomation.cs handles all UIA interactions, caching, and state management.WinAppAutomation instance shared across all tool calls.| Component | Technology | Version |
|---|---|---|
| Runtime | .NET | 10.0 |
| UI Automation | FlaUI.UIA3 | 5.0.0 |
| MCP Protocol | ModelContextProtocol | 1.1.0 |
| Hosting | Microsoft.Extensions.Hosting | 10.0.3 |
| Target OS | Windows | 10 (1903+) / 11 |
| Architecture | x64 | win-x64 |
| Feature | WinApp MCP | CursorTouch/Windows-MCP | locomorange/uiautomation-mcp |
|---|---|---|---|
| Tools | 55 | ~15 | 39 |
| UIA Library | FlaUI (managed) | FlaUI (managed) | Raw COM interop |
| Runtime | .NET 10 | .NET 8 | .NET 9 (Native AOT) |
| Architecture | Single process | Single process | 6 projects, multi-process |
| Caching | ✅ Descendant + Window | ❌ | ❌ |
| Fuzzy Search | ✅ Levenshtein distance | ❌ | ❌ |
| HWND Targeting | ✅ Full (click, value, snapshot) | ❌ | ✅ Partial |
| Event Monitoring | ✅ Focus, structure, property | ❌ | ✅ Focus only |
| Grid Pattern | ✅ | ❌ | ✅ |
| Virtualization | ✅ | ❌ | ❌ |
| Screenshot Diff | ✅ | ❌ | ❌ |
| Form Fill | ✅ Batch | ❌ | ❌ |
| Token-aware Screenshot | ✅ | ❌ | ❌ |
| Drag & Drop | ✅ | ❌ | ❌ |
| Minimized App Support | ✅ Auto-restore + PrintWindow | ❌ | ❌ |
| Locked Session Support | ✅ UIA pattern fallback | ❌ | ❌ |
| VS Code Extension | ✅ VSIX + Marketplace | ❌ | ❌ |
| npm Package | ✅ npx winapp-mcp | ❌ | ❌ |
| Multi-Client | ✅ Copilot, Claude, Cursor, Windsurf | ❌ VS Code only | ❌ |
Contributions are welcome! Please:
git checkout -b feature/amazing-tool)git commit -m 'Add amazing-tool')git push origin feature/amazing-tool)git clone https://github.com/floatingbrij/desktop-pilot-mcp.git
cd desktop-pilot-mcp/src
dotnet restore
dotnet build
dotnet run # Starts the MCP server on stdio
This project is licensed under the MIT License — see the LICENSE file for details.
Built entirely with GitHub Copilot by Brijesharun G — for AI-powered Windows app testing.
If this helps your workflow, give it a ⭐
Loading reviews...
GitHub checked 136h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.