winhands
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
winhands
Computer use for Windows: a small MCP server that lets Claude (or any MCP client) operate any desktop app, draw in canvases and drive games.
Install
Windows 10 2004+ or 11, and Claude Code or any MCP client. In PowerShell:
winget install astral-sh.uv # once; installs uv, which brings its own Python (check the id with: winget search uv)
uv tool install winhands
winhands setupwinhands setup registers the MCP server in Claude Code (user scope), removes any legacy winhands-silencioso
server entry, and installs both the winhands and winhands-silencioso skills into ~/.claude (plus
$CLAUDE_CONFIG_DIR if set), as well as .gemini and .agents (keeping Antigravity schema notes there).
Pass --config-dir DIR (repeatable) for extra Claude profiles, or --all-profiles to include every
~/.claude-* directory containing .claude.json. If claude is not on your PATH it prints the config
snippet for other MCP clients instead. Then restart Claude Code and ask it: "open Notepad and type hello".
Already have Python 3.11+? pip install winhands, then winhands setup.
Update:
uv tool upgrade winhandsUninstall:
winhands setup --remove, thenuv tool uninstall winhandsSee what
setupwould do without changing anything:winhands setup --dry-run
Alternative: one-line installer
Installs uv if missing, then does the same as the commands above. You can read the script first; it needs no admin rights.
irm https://raw.githubusercontent.com/zredo19/winhands/main/install.ps1 | iexWith Exo, the voice assistant (also creates its Start Menu and Desktop shortcuts; use winhands[exo-gpu] with an NVIDIA GPU):
$env:WINHANDS_SPEC='winhands[exo]'; irm https://raw.githubusercontent.com/zredo19/winhands/main/install.ps1 | iexTo uninstall with it:
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/zredo19/winhands/main/install.ps1))) -UninstallPrefer to do it by hand from the repo? See Manual install.
"An Application Control policy has blocked this file" (Spanish Windows: "Una directiva de Control de aplicaciones bloqueó este archivo")
when running winhands or winhands setup: Windows App Control / Smart App Control blocks unsigned .exe launchers such as
winhands.exe. winhands registers python -m winhands, so it never needs that .exe; run setup through the tool's Python instead
(add --remove to undo it, --version to check that Python itself runs):
& (Join-Path (uv tool dir) 'winhands\Scripts\python.exe') -m winhands setup
The overlay while Claude controls the PC: edge glow and status banner in four states (acting, thinking, paused, stopped).
The agent cursor at 2x: idle, moving (trail) and click (ripple), in the Claude, Antigravity and Codex palettes.
Its design follows the computer-use harness of OpenAI's GPT-6 Astra in the Codex/ChatGPT desktop app, and goes past it where that harness is weak (no key holds, no raw mouse, no local control loops):
Accessibility tree first, pixels when needed. A Codex-style UI Automation tree (
12 button "Save" (focused)), plus automatic settled screenshots when a window is canvas-like (games, Paint), OCR, grid rulers, Set-of-Marks and burst montages.Code mode. The model writes Python in a persistent REPL and batches many actions per turn, including local perceive→act loops that run at 10–30 Hz without model round-trips.
Built-in validation. Every
runwaits up tosettle=1.0s for the UI to settle (settle=0disables it for game loops) and returns a UI diff (or the full tree of a new dialog). On canvas windows,runattaches one settled auto-shot (or reports(pixels unchanged)).Fail closed. Element ids are bound to the latest snapshot; changed or vanished targets raise
StaleTargetinstead of clicking the wrong thing.Takeover UX and safety. An animated edge glow and status banner (acting, thinking, stopped; with the Ctrl+Alt+Q hint) on the controlled monitor, plus an agent cursor with a motion trail and click ripple where real input lands, all in the client's colour and excluded from screenshots. Call
overlay(False)/overlay(True)inrunto toggle silent mode on the fly (no second MCP server needed). Ctrl+LeftAlt+Q kill switch, and an automatic abort when the user touches mouse or keyboard. Held inputs are released on abort, risky actions need confirmation, and denylisted windows (WINHANDS_DENYextends the list) are blocked.Memory. Per-app notes and reusable skills (Voyager-style) that persist across sessions.
Related MCP server: FullRemote MCP
Tools (2, ~815 tokens of schema)
Tool | Modes / helpers |
|
|
| UIA: |
Input uses SendInput with scan codes (DirectInput/raw-input games see real keys) and raw relative
mouse for game cameras. Foreground non-minimized window capture uses fast screen grabs (clipped to the virtual
desktop); covered windows use PrintWindow(PW_RENDERFULLCONTENT). Without region, wait_text, wait_stable, and
wait_change read the target window. Apps launched with app() survive the MCP session (launched through WMI,
outside the client's kill-on-close job).
End-to-end results (real desktop, Windows 10, Spanish UI)
Test | Result |
Paint: draw a house (shapes by drag, palette swatches found by color, bucket fills), save PNG | 6/6 layout and color checks pass; one |
Game probe (Chrome, pointer lock): scan codes W/A/S/D/Space/ShiftLeft | all six received as physical key codes |
Raw relative mouse under pointer lock | sent (70, 30) → page received DX 70, DY 30 exactly |
Buttons / wheel | L, M, R and wheel −3 received |
10 s aim test driven by one local loop ( | 88 hits, 6 misses |
OCR of known Notepad text | 30/34 words (88%) in 118 ms. Misses: the first glyph touching the edit border, and I/l confusion |
Benchmark vs Windows-MCP
The same tasks run on the same machine, with each server driven the way an optimal agent would use it.
There were 3 reps per task. Script: bench/bench.py, raw data:
bench/results.json.
Task | Server | Success | Tool calls | Tool time | Tokens returned |
Calculator 123×456 | winhands | 3/3 | 2 | 8.0 s | 603 |
Windows-MCP 0.8.5 | 2/3 | 12 | 31.0 s | 6,060 | |
Notepad: type, Save As, verify file | winhands | 3/3 | 3 | 12.9 s | 2,037 |
Windows-MCP 0.8.5 | 3/3 | 7 | 21.6 s | 8,601 |
The tool schema is sent on every turn: winhands uses about 815 tokens and Windows-MCP about 4,780.
Notes on method:
Tokens are estimated: text is chars / 3.5, and images are
ceil(w/28)·ceil(h/28)per Anthropic's vision docs.Tool time excludes model thinking. Each extra call also costs a model turn in a real agent.
Windows-MCP's snapshot lists only interactive elements of the focused window, so reading the calculator result needs a screenshot. Its failed rep missed the calculator in that snapshot.
Windows-MCP dropped rapid consecutive clicks. A 1 s pause between its clicks, not counted, mimics agent pacing.
Latency profiler
Read-only profiler for measuring regressions without sending input or touching user apps:
python bench/latency.py # formatted table
python bench/latency.py --json # machine-readable outputMeasures window enumeration, per-window UIA tree / observe, fixed empty run overhead, find(fresh=True),
capture (PrintWindow vs screen grab, downscale, JPEG), OCR, and cold stdio startup (initialize, 1st & 2nd call).
Measured with bench/latency.py on Windows 10 (live desktop): UIA root.GetChildren() 197.8 ms → Win32 EnumWindows 0.37 ms (Desk.windows() 1.0 ms), Program Manager tree 3,948 ms → 0.53 ms, empty run('1+1') 49–100 ms (terminal/browser), foreground capture (1938×1038 → 1280×686) PrintWindow 47.6 ms → screen grab 28.2 ms + HAMMING downscale 15.7 ms (LANCZOS 32.1 ms), private memory 289 MB → 64 MB (OPENBLAS_NUM_THREADS=1), and cold stdio initialize 1.31–1.46 s (observe(windows) 168–183 ms first / 3.5 ms warm).
Manual install
Windows 10 2004+ / 11, Python 3.11+. To run the development version from GitHub with uv:
uv tool install --compile-bytecode git+https://github.com/zredo19/winhands
winhands setupwinhands setup registers the MCP server and installs the skills (normal + winhands/SKILL_SILENT.md,
stripping client-only blocks for Claude Code while keeping them for .gemini / .agents). To install manually:
claude mcp add winhands --scope user -- python -m winhands, and copy winhands/SKILL.md to
~/.claude/skills/winhands/SKILL.md (and winhands/SKILL_SILENT.md to
~/.claude/skills/winhands-silencioso/SKILL.md).
Any MCP client works: the server command is python -m winhands (stdio). Environment variables:
WINHANDS_OVERLAY=0 starts with the overlay off (overlay(True) re-enables it), WINHANDS_AUTOSHOT=1280 sets the
max edge in px for canvas auto-shots (0 disables), WINHANDS_DENY="a,b" appends comma-separated title substrings to
the denylist, WINHANDS_LINGER=45 sets how long the overlay stays up between actions, and WINHANDS_SHARED=0 enables
strict mode. From source: pip install -e . in a venv, then point the client at python -m winhands.
Exo, the voice assistant (experimental)
Exo is an optional desktop widget for Exotype: an armored robot Darwin's frog docked at the screen edge. Click it (or press Ctrl+Alt+Space), talk, and it drives your PC through winhands.
pip install "winhands[exo]" # or winhands[exo-gpu] with an NVIDIA GPU (5x faster speech-to-text)
winhands exo --shortcut # Start Menu + Desktop shortcuts ("Exo"), no console window
winhands exo # or just run itBrain: your own Claude Code, unmodified and logged in with your own account. Exo starts one long-lived
claude -psession (stream-json) with only the winhands tools, so turns after the first start in ~2 s. Exo never sees your credentials and calls no API itself.Ears: Whisper runs locally (faster-whisper):
large-v3-turboon an NVIDIA GPU,smallon the CPU otherwise. Recording stops by itself after you stop talking.EXO_WHISPERpicks another model.Voice: Kokoro, a local neural voice that sounds human (Alex, Dora or Santa; downloaded once, ~340 MB, into
~/.exo/models), spoken sentence by sentence so it starts in about a second. The Windows voice "Pablo" is the fallback. Pick the voice or mute it from the speaker menu in the panel.Window: translucent and always on top. It never takes the keyboard focus unless you type in it, so "this window" keeps meaning the app you were using. Exo tells Claude which window that was. Drag the frog to move it.
Safety: the winhands guards still apply. Risky actions are asked back to you in the conversation, and you confirm by voice. Logs live in
~/.exo/exo.log.
Safety
Ctrl + Left Alt + Q aborts the running action. AltGr+Q still types
@.Shared mode (default): the user can keep working while a run acts through UIA patterns. Physical input that collides with a run driving the real mouse/keyboard aborts it (
UserInterrupt); real input waits for the user to go idle first. The tool never fights the user for control.WINHANDS_SHARED=0restores strict mode.The low-level keyboard/mouse hooks behind both features exist only while a
runis acting. Nothing hooks system input while the server idles in a Claude Code session.Keys are only sent to a verified foreground target. All held keys and buttons are released on any abort.
sh(), clicks on elements named like Send, Buy, Pay, Delete, Install or Allow, and Enter in chat apps (type(enter=True),key,press,hold,key_down,type_keyswith Enter) requirerun(..., confirm=True).Denylisted windows (password managers, banking, plus
WINHANDS_DENY) are refused.runexecutes arbitrary Python: the same privilege as Claude Code's shell tool, gated by the client's permission prompts.Online games with anti-cheat: automation may violate their terms and risk a ban. winhands makes no attempt to hide or evade detection.
Limits
The harness makes a model faster and cheaper on the desktop. It does not make it smarter.
Reflex gameplay needs local loops written by the model, or pausing the game. Model round-trips take seconds.
Exclusive-fullscreen games may capture black; use borderless mode. Windows OCR skips isolated single characters and glyphs touching strong borders. Template matching is exact-scale.
Elevated (admin) windows ignore input from a non-elevated server (Windows UIPI).
Tests
python -m pytest -qTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Remote desktop MCP: let AI see, click, type and run terminal commands on your own Windows or Mac.
Eyes and hands on real Windows PCs — observe, click, type via Glasswarp API.
Securely control computers you explicitly pair through files, terminals, processes, screenshots, desktop UI/input, clipboard, browser automation, diagnostics, and document tools.
Let AI see and use your own Windows PC with your permission: screen, apps, mouse and keyboard.
Related MCP Servers
- AlicenseAqualityCmaintenanceAllows AI clients to see and control Windows 10/11 desktops via MCP, with screenshots, UI Automation, Chrome CDP, keyboard/mouse, and terminal using semantic element targeting.30MIT
- AlicenseNot gradedqualityCmaintenanceEnables an AI client to inspect and control an interactive Windows desktop, including screenshots, mouse and keyboard input, Windows UI Automation, PowerShell commands with managed jobs, and authenticated file uploads/downloads. Connects over remote MCP Streamable HTTP or local stdio without a separate host-side gateway.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients such as ChatGPT and Claude chats to control a Windows desktop by taking screenshots, moving the mouse, typing text and key chords, focusing windows, reading or writing the clipboard, and launching applications. Access is gated by local approval modes, input kill switches, and an optional authenticated relay for remote clients.MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP agents to drive Windows applications by targeting individual windows—clicking, typing, scrolling, dragging, and reading accessibility trees or screenshots—without stealing the user's focus, mouse, or keyboard. Runs entirely locally alongside the user, with per-app approval and no cloud account or usage limits.MIT