Windows Computer Use MCP
by Birdybow
README.md
# Windows Computer Use MCP
An MCP server that lets **Claude Code (CLI) control a Windows PC**: screenshots, mouse and
keyboard, across multiple monitors. It is built around safety features that keep a human in
charge.
Claude Code's built-in computer use is only available in the desktop app. This server brings
the same idea to the terminal, using only one Python file and three pip packages.
## Safety first
| Feature | What it does |
|---|---|
| **Red STOP button** | Appears in the bottom-right of the primary monitor at the first action. One click locks every tool, including screenshots, until you click it again. The server refuses clicks on the button, and the button is invisible in Claude's screenshots. You can move it by its ⋮ grip. |
| **Auto-pause** | If you move the mouse or type on the keyboard while Claude works, the next action is **not** performed. Claude gets a `PAUSE` error telling it to re-check the screen and ask you. |
| **Red ring** | A 6 px click-through frame shows which monitor Claude is working on. It is invisible in screenshots, and it disappears on `done()` or after 5 minutes idle. |
| **Mixed-input warning** | If you type while `type_text` runs, the result carries a `WARNING` so Claude checks before continuing. |
| **No stuck keys** | Modifier keys and mouse buttons are always released, even if an action fails half-way. |
**About the keyboard hook:** auto-pause uses a low-level keyboard hook (`WH_KEYBOARD_LL`).
It stores **only the timestamp** of the last real (non-injected) key press. It never records
which key was pressed, and nothing is logged or sent anywhere. See `_kb_proc` in `server.py`.
Windows itself blocks input into elevated windows (UAC prompts, admin terminals, Task
Manager). This is called UIPI. Claude has to ask you to do those steps.
## Tools
| Tool | Description |
|---|---|
| `list_monitors` | Index, size, position and orientation of every monitor, with the primary marked |
| `screenshot(monitor, max_edge)` | JPEG of one monitor, scaled so the longest side is `max_edge` px (default 1280) |
| `zoom(x, y, width, height, monitor)` | Magnified PNG of a small region, for reading small text |
| `click(x, y, monitor, button, clicks, modifiers, screenshot_after)` | Left, right or middle click, double click, Ctrl/Shift-click |
| `move`, `drag`, `scroll` | Hover, drag-and-drop, wheel (vertical or horizontal) |
| `type_text(text)` | Types Unicode text into the focused window |
| `key(combo)` | Key combos like `ctrl+s`, `win+r`, `alt+tab` |
| `cursor_position`, `wait(seconds)` | Pointer position, and wait-then-screenshot |
| `done` | Hides the red ring when the task is finished |
Coordinates are always given **in the screenshot's own pixel space, together with the same
`monitor` index**. The server converts them to physical pixels. Negative monitor positions and
portrait monitors work, and the process is per-monitor DPI aware (v2).
## Install
Requires Windows 10 or 11 and Python 3.10 or later.
```powershell
git clone https://github.com/Birdybow/windows-computer-use-mcp.git
cd windows-computer-use-mcp
python -m venv .venv
.\.venv\Scripts\pip install -r requirements.txt
claude mcp add computer --scope user -- "$PWD\.venv\Scripts\python.exe" "$PWD\server.py"
```
Restart Claude Code. `claude mcp list` should show `computer ✔ Connected`.
### Recommended: add the skill
`skill/SKILL.md` teaches Claude how to use the tools well: when to prefer shell or a browser
tool, the screenshot-act-verify loop, cost, and how to react to `STOPPED` and `PAUSE`. Copy it
to `%USERPROFILE%\.claude\skills\computer-control\SKILL.md` and adjust it to your setup.
## Tips
- Screenshots at 1280 px cost about 1,200 tokens each. Use `max_edge=800` for an overview and
`zoom` for details.
- Prefer keyboard shortcuts over clicking small targets.
- Never let the agent press `Esc` while the terminal running Claude Code has focus. Esc
interrupts Claude Code.
## License
MIT, see [LICENSE](LICENSE).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues