Windows Computer Use MCP
Zero-disturbance computer use for Windows, as an MCP server. Let an AI agent drive native Windows apps (Win32, WPF, WinUI, Electron, Java, Qt) without stealing your mouse, keyboard or focus while you keep working.
Works with any Model Context Protocol client: Claude Desktop, Claude Code, Google Antigravity, Cursor, VS Code and others.
Português: veja docs/README.pt-BR.md.
Why
Most computer-use tools move the real cursor and type into whatever window has focus. If you touch the mouse at the wrong moment, the agent types into your browser. This server is built around the opposite default:
- Background first. Clicks and typing are posted to the target window (
WM_*messages, UI Automation patterns) without taking OS focus. - User-Activity Guard. Before any foreground input it checks
GetLastInputInfo; if you moved the mouse or typed recently it aborts withreason: "user_active". - Strict focus lock. During
SendInputthe target is re-verified every 16 characters; if focus moves it aborts withreason: "focus_lost"and restores your cursor and window. - No blind global typing.
type_textandpress_keysrequire a target window unlessallow_global=True. - Somewhere else to work. Apps can run on a virtual monitor (Virtual Display Driver) or on a hidden isolated desktop (
CreateDesktopW, no admin rights). - Occlusion-proof capture.
PrintWindow+PW_RENDERFULLCONTENTcaptures a window even when it is covered or off-screen, with optional grid and Set-of-Mark badges for UI elements.
Tools
| Tool | What it does |
|---|---|
display_status |
Physical/virtual monitors, VDD status, recommended agent monitor |
user_idle_status |
Milliseconds since last user input and the foreground window |
list_windows |
Windows with HWND, title, process, monitor and rects |
move_window_to_display, launch_app_on_display |
Put an app on a given (virtual) monitor |
launch_on_isolated_desktop, list_isolated_windows |
Run apps on a hidden desktop |
capture_window, capture_monitor |
Screenshots, with optional grid / element marks |
inspect_ui |
UI Automation tree of a window |
click, click_element, drag, scroll |
Pointer actions (background by default) |
type_text, press_keys |
Keyboard actions with guards |
fill_form |
Batch-fill Edit/CheckBox/Radio/ComboBox fields and submit |
Install
Requires Windows 10/11 and Python 3.11+. The easiest way is uv.
Run it from PyPI:
uvx windows-computer-use-mcp
Or straight from GitHub (latest main):
uvx --from git+https://github.com/jeanluyac-sketch/antigravity-computer-use windows-computer-use-mcp
Or clone for development:
git clone https://github.com/jeanluyac-sketch/antigravity-computer-use
cd antigravity-computer-use
uv venv
uv pip install -e ".[dev]"
Claude Desktop
Add to %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"windows-computer-use": {
"command": "uvx",
"args": ["windows-computer-use-mcp"]
}
}
}
Claude Code
claude mcp add windows-computer-use -- uvx windows-computer-use-mcp
Google Antigravity
Copy plugin-template\ to %USERPROFILE%\.gemini\config\plugins\computer-use\ and set the paths in mcp_config.json to your clone. The plugin also ships a skill (skills/computer-use/SKILL.md) that teaches the agent the safe workflow.
Cursor / other clients
Use the same command + args as the Claude Desktop example in your client's MCP config.
Optional extras
- Virtual Display Driver:
scripts\install-vdd-admin.cmd(asks for UAC) installs a virtual monitor;scripts\manage-vdd.ps1manages it. The agent then works on a screen you are not looking at. - Browser automation without focus:
scripts\start-brave-cdp.cmdopens Brave on a dedicated profile with--remote-debugging-port=9222, for use withchrome-devtools-mcp.
Recommended agent workflow
display_statusandlist_windows(oruser_idle_statusbefore any foreground input).- Isolate the app:
launch_app_on_display,move_window_to_displayorlaunch_on_isolated_desktop. - Observe:
inspect_ui(hwnd=..., with_screenshot=true)orcapture_window(hwnd=..., include_grid=true). - Act:
fill_form,click_element,type_text(..., mode="background"),click(..., mode="message"). - Only if an app ignores background messages, use
mode="paste"/mode="sendinput"withwait_for_idle_secondsandrestore_focus=True.
Tests
The end-to-end suite opens a real WinForms dialog, captures it, fills it and checks the guards. Run it on a Windows machine with an interactive desktop:
python tests\test_computer_use.py
CI runs lint, a build and an import/tool-registration smoke test on windows-latest.
Security
This server can click and type on your computer. Only connect it to clients and prompts you trust, and read SECURITY.md to report a vulnerability privately.
Contributing
Contributions are welcome, including docs and translations. Start with CONTRIBUTING.md and issues labelled good first issue.
License
Metadata
Release files for windows-computer-use-mcp 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| windows_computer_use_mcp-0.3.0.tar.gz | 40.5 kB | With provenance | Details for windows_computer_use_mcp-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| windows_computer_use_mcp-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for windows_computer_use_mcp-0.3.0-py3-none-any.whl |
Total release size: 78.6 kB
Release files / windows_computer_use_mcp-0.3.0.tar.gz
| Download URL | windows_computer_use_mcp-0.3.0.tar.gz |
|---|---|
| Size | 40.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e825e37c474c16d30a0a6df45f783bc03389d892ee45d55ce728c862cbaff4d2
|
|
BLAKE2b-256 checksum How to use checksums |
91c36d6a7f415d4c19379aa60bf8029127c09b5788bbece61a758e56d31e1497
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / windows_computer_use_mcp-0.3.0-py3-none-any.whl
| Download URL | windows_computer_use_mcp-0.3.0-py3-none-any.whl |
|---|---|
| Size | 38.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d7ae680f35a0ee58c76eb85539a932d244ddc00b741f51d221333e61445be50
|
|
BLAKE2b-256 checksum How to use checksums |
5045413893c55223abbd08c70c20b27856db85d2d5ee5d8ad3771efb7d4793b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for windows-computer-use-mcp 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for windows_computer_use_mcp-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.