Most computer-use tools assume the agent owns the screen. It moves the real cursor and types into whatever window has focus, so one wrong touch of your mouse and it types into your browser.

I built a small open-source MCP server for Windows around the opposite default: the agent works in the background and leaves your mouse, keyboard and focus alone. This post is a practical setup guide, with the troubleshooting I wish I'd had.

What you get

  • Clicks and typing go to the target window through window messages and UI Automation, without taking focus.
  • If you moved the mouse or typed recently, foreground input aborts with user_active instead of colliding with you.
  • During real keystrokes the target window is re-checked every 16 characters (focus_lost).
  • Window capture uses PrintWindow with PW_RENDERFULLCONTENT, so a window still renders when something covers it.
  • Apps can run on a virtual monitor or a hidden desktop.

Known gap: some WinUI/Electron/canvas apps ignore background messages. The server verifies delivery and falls back to UI Automation, and only then to guarded foreground input.

Setup in five minutes

  1. Install uv: winget install astral-sh.uv
  2. Check your install and get a config snippet (in the repository's main branch today):
 uvx --from git+https://github.com/jeanluyac-sketch/antigravity-computer-use windows-computer-use-mcp --doctor 

It prints [OK] or [FAIL] per check (Python, Windows, dependencies, registered tools, monitors) and a ready-to-paste Claude Desktop config. A failure tells you which import is missing, which makes bug reports much easier.

  1. In Claude Desktop open Settings, Developer, Edit Config, and add:
 { "mcpServers": { "windows-computer-use": { "command": "uvx", "args": ["windows-computer-use-mcp"] } } } 
  1. Quit Claude Desktop from the tray icon (not just the window) and open it again. The tools icon should list windows-computer-use.

For Claude Code: claude mcp add windows-computer-use -- uvx windows-computer-use-mcp.

First prompts to try

Read-only first:

  • "Use windows-computer-use to list my open windows and tell me which monitor each is on."
  • "Capture the Notepad window and describe what you see."

Then something that acts:

  • "Open Notepad, put a short shopping list in the editor, then capture the window to confirm. Do not touch my mouse."

Keep working while it runs. That is the point.

Troubleshooting

Symptom Fix
No tools icon after restart Quit from the tray icon and validate the JSON (no trailing commas).
spawn uvx ENOENT in the MCP log Use the full path to uvx.exe in command (where uvx).
Actions return user_active You used the mouse or keyboard recently. Wait, or tune WCU_IDLE_THRESHOLD_MS.
Capture is black Some GPU-rendered apps return black from PrintWindow. Try client_only=true or capture the monitor.

It's early and I want bug reports

The server is MIT licensed and at v0.3 on PyPI (uvx windows-computer-use-mcp). I'm especially interested in apps where background input doesn't work. The repository has a list of good first issues and a contributing guide in English and Portuguese:

https://github.com/jeanluyac-sketch/antigravity-computer-use

Built with Claude Code; I review and test everything that ships.