windows-computer-use
Enables pure-GUI desktop automation of Unreal Engine 5.5, including live 3D scene/transform editing, Blueprint node wiring and compilation, and PIE playtesting via Win32/UIA/visual and relative-mouse controls.
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.
Windows Computer Use
Lightweight, precise, context-efficient Windows desktop automation MCP engine.
Pure desktop control with zero overhead by default — and when you need tutorials or SOP manuals, opt into human-paced video capture, annotated screenshots, voiceover, and Word export on demand.
15s Live Showcase (Everyday UIA Apps + Zero-UIA Unreal Engine 5.5)
100% live autonomous execution recorded with real-time cua commands — native 46-box UIA Set-of-Marks → 1-turn REPL cross-app control → 1.4 ms OS modal guard → zero-UIA Unreal Engine 5.5 live 3D Transform, Blueprint compile, pure-Pillow icon Play & relative-mouse PIE:

1. Native 46-Box UIA Set-of-Marks & Modal Guard | 2. Zero-UIA Unreal Engine 5.5 Live 3D Scene |
|
|
3. Pure-GUI Blueprint Node Wiring & Compile | 4. Pure-Pillow Icon Play + Win32 Relative Mouse PIE |
|
|
Focused demos on Release v0.5.0 (narrated CN/EN MP4s + WebPs) · Runnable examples 👉
examples/ue5-and-everyday-apps/
Related MCP server: helix-pilot
Why This Engine? Key Engineering Advantages
Typical computer-use agents send a full-resolution screenshot to an LLM on every click and guess raw pixel coordinates. On heavyweight Windows desktop apps (Unreal Engine 5, Blender, CAD, Office, video editors), that blows out context within 10 steps, drifts under 125%/150% DPI scaling, garbles CJK text, and crawls.
windows-computer-use solves these pain points at the Windows OS layer:
Hybrid Semantic + Visual Grounding (No Blind Pixel Guessing)
Per-Monitor DPI Aware V2 + DWM Extended Frame Bounds + Tooltip-Safe Coordinate Spaces (
v0.4.0): eliminates 125%/150% scaling drift, Windows 7px shadow offsets, and hover-tooltip popup drift; supports explicit statelessspace="window"|"desktop"|"px"plusclick_px/drag_pxhelpers and dualscreen_center/window_norm_centeron everyTextMatch.Cache-Backed & Adaptive UI Automation (
UIAutomationCore.dll): prunes noisy WPF/Electron subtrees, captures same-PID popups/context menus, and adaptively skips zero-UIA custom GPU windows after 2 probes (saving 100–300 ms/step on engines like UE/Blender/Unity without hardcoding app names) while preserving native file dialogs.Native WinRT OCR + Dark-UI Tiled Upscale Fallback (
v0.4.0) + Zero-OpenCV Icon Matching (v0.5.0):desktop_find_text,desktop_click_text, anddesktop_wait_textrun locally with zero vision token cost (with 2.5×–3.0× high-contrast / 2×2 tiled retry on miss); for textless toolbar icons (▶/■/+),cua.find_icon/cua.click_icon/cua.crop_templaterun ZNCC template matching with autocv2 → numpy → pure Pillowfallback (~28 ms on 400×100 ROI with zero extra dependencies).
DeepSeek-Style Persistent Code Execution (
desktop_run_code) +v0.5.0Reliability & Speed PrimitivesInjects a persistent
cuaPython runtime supporting loops, conditionals, state waits, and multi-app switching — compressing 20 LLM round-trips into 1 call while projecting only selected text or ROI crops back viainspect().Strict Focus, Safe Close & Zero-OCR Modal Guard (
v0.5.0):cua.focus(..., strict=True)verifies realGetForegroundWindow() == hwnd(auto-retries viaAttachThreadInput, reportscovered_by_title),cua.close_window()sends safeWM_CLOSEwithIsWindowpolling, andcua.handle_modal()probes dialogs via pure Win32 in ~1.4 ms (0 OCR / 0 screenshots when no modal exists).~20 ms Fast Capture, Local Region Waits & Relative Mouse (
v0.5.0):cua.observe(include_uia=False, include_ocr="never")captures 1920×1040 in ~20.6 ms (~30.1 ms with.jpgexport);cua.wait_region_change()/cua.wait_region_settle()replace blindsleep()without taskbar interference;cua.mouse_move_rel(dx, dy)unlocks mouse-locked 3D viewports, CAD orbit, games, and RDP via pure Win32MOUSEEVENTF_MOVE.Automatically releases all held mouse buttons and modifier keys in reverse order on error, plus a hardware kill-switch (top-left corner /
Pause/Ctrl+Alt+Shift+Q) for instant human takeover.
Rock-Solid CJK & Unicode Input:
SendInput(KEYEVENTF_UNICODE)plus lossless clipboard-snapshot paste handles long file paths and Chinese/Japanese/accented parameters cleanly.Strict Separation: Pure Control by Default, Recording Strictly Opt-In
Normal calls (
desktop_click,desktop_type,desktop_run_code) run at full speed with zero video recording, zero TTS, and zero slowdown.Only when you explicitly start
desktop_demo(action="start", ...)does it enable cubic-Bezier human cursor motion, StackShot red-box numbered PNGs, ffmpeg1920×1040@30fpscapture, Word SOP manuals (manual.docx), crisp single-line ≤24-char ASS/SRT subtitles, and optional TTS/vocal EQ — with every output controlled by an independent boolean switch (record_video,tts_voice,build_docx,mux_audio,burn_subtitles).
Real-World Speed Benchmarks
Measured live on Windows 10/11 (1920×1040) across both native UIA apps (Calculator, Notepad, VS Code, Chrome) and zero-UIA GPU engines (Unreal Engine 5.5, Blender):
Stage / Operation | Pure-GUI Time | Notes |
Fast | ~20.6 ms (mem) / ~30.1 ms ( | Persistent thread-local |
Zero-OCR modal guard | ~1.4 ms (no modal) / ~285 ms (dismiss) | Pure Win32 modal probe ( |
Pure-Pillow icon match ( | ~28.0 ms | Zero OpenCV/NumPy dependency; |
Single UIA Set-of-Marks lookup / WinRT OCR localization | ~50 – 350 ms | Local ROI crop, zero full-screen image tokens |
Cross-app everyday flow (Calc + Notepad + OS Save modal) | ~11 s (1 REPL call) | 46 UIA boxes, strict focus switch, lossless CJK Unicode, auto modal guard |
Zero-UIA UE 5.5 batch build (14 actors, ~100 numeric fields) | 69 s (1 REPL phase) | Dark GPU Slate UI ( |
MCP Tool Suite (16 Tools)
Windows & Perception:
desktop_windows,desktop_observe(Set-of-Marks / 1:1 ROI zoom / 0..1000 grid / frame-diff dedup)Zero-Image Semantic Grounding:
desktop_find_text,desktop_click_text,desktop_wait_textPrecision Input & Control:
desktop_click,desktop_type,desktop_hotkey,desktop_drag,desktop_scroll,desktop_batch,desktop_wait,desktop_clipboardStateful Orchestration:
desktop_run_code,desktop_resetOpt-In Demo / SOP Recorder (Off by Default):
desktop_demo(start/step/narrate/stop/status)
Quick Start
1. Install (Windows 10/11 + Python 3.11+)
git clone https://github.com/gongzhang9396-ui/windows-computer-use.git
cd windows-computer-use
python -m venv .venv
.\.venv\Scripts\Activate.ps1
# Core desktop automation engine (recommended for everyday use)
pip install -e .
# Optional: Word SOP manual export (.docx)
pip install -e ".[demo]"If you plan to use optional video recording or audio muxing, make sure
ffmpegis on yourPATH(e.g.winget install Gyan.FFmpeg).
2. Register as an MCP Server
See plugin/mcp_config.json to register in your MCP client (Antigravity, Claude Desktop, Cursor, etc.):
{
"mcpServers": {
"windows-computer-use": {
"command": "C:\\path\\to\\windows-computer-use\\.venv\\Scripts\\python.exe",
"args": ["-m", "win_cu.mcp_server"],
"env": {
"PYTHONIOENCODING": "utf-8",
"PYTHONUTF8": "1"
}
}
}
}3. (Optional) Local TTS Credentials (Never Committed)
Only needed if you opt into TTS narration / voice cloning inside desktop_demo:
Option A: set the
MIMO_API_KEYenvironment variableOption B: create
%USERPROFILE%\.win_cu_secrets.json:{ "mimo_api_key": "YOUR_API_KEY_HERE", "default_voice_ref": "C:\\path\\to\\your_reference_voice.wav" }
4. Run Unit Tests
python -m unittest discover -s tests -vRepository Structure
windows-computer-use/
├── src/win_cu/ # Core engine (Win32 DPI / UIA / WinRT OCR / persistent REPL / opt-in demo recorder)
├── plugin/ # Antigravity / MCP plugin manifest, rules, and skill definition
├── tests/ # 23 core unit tests
├── benchmarks/ # Clean UIA Set-of-Marks OCR benchmark image
├── docs/assets/ # Live showcase screenshots (UIA SoM + Unreal Engine 5.5 + Blender)
├── examples/
│ └── ue5-and-everyday-apps/# Runnable pure-GUI everyday-app & zero-UIA UE 5.5 examples
└── pyproject.tomlSecurity & Scope
No Privilege Escalation: elevated/UAC windows surface
ADMIN_UIPI_BLOCKEDcleanly — Windows UIPI boundaries are never bypassed.Zero Secrets in Git: contains no API keys, private credentials, personal voice recordings, or internal hostnames.
Best-Fit Scope: excels at desktop forms, menus, tool chains, cross-app workflows, 3D editors, and snap-assisted controls; not intended for freehand pixel-level illustration.
Acknowledgements & References
Special thanks to the LINUX DO community for inspiring discussions and open-source AI/Computer Use sharing, as well as the following projects and ecosystems that inspired parts of this engine:
deepseek-ai/deepseek-harness (
cua-mcp) — Core inspiration fordesktop_run_code(persistent Python REPL orchestration, selectiveinspect()context projection, and reverse-order held-input auto-release).orakulzero/agy-computer-use & CursorTouch/Windows-MCP — Inspiration for native Windows UIA + Set-of-Marks grounding and lightweight MCP server integration.
microsoft/UFO & microsoft/OmniParser — Inspiration for Windows GUI agent architecture, UIA pruning, and visual grounding on non-UIA canvases.
rubenitx/stackshot — Visual inspiration for the opt-in tutorial recorder's red-box numbered callout screenshots.
Core Open-Source Ecosystem: Model Context Protocol (
mcp),mss, Pillow,comtypes,pywinrt,python-docx, and FFmpeg.
Tool 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.
Windows MCP server for AI agents (WebGL browser QA, MS Office COM, NVENC) via x402 USDC.
Let AI see and use your own Windows PC with your permission: screen, apps, mouse and keyboard.
Remote MCP server to control your Android phone from AI assistants with per-app permissions.
Related MCP Servers
- AlicenseAqualityAmaintenanceWindows desktop automation MCP server — screenshot, mouse, keyboard & UI Automation. Lets LLM agents see and control your Windows desktop directly.301,527 npm28MIT
- AlicenseNot gradedqualityCmaintenanceGUI automation MCP server that enables AI agents to see and control the Windows desktop using a local Vision LLM (Ollama), supporting screenshot analysis, mouse/keyboard actions, and autonomous task execution.5MIT
- AlicenseNot gradedqualityDmaintenanceWindows desktop automation MCP server supporting mouse, keyboard, screenshot, and image recognition, with native CJK text input via clipboard.MIT
- AlicenseAqualityCmaintenanceCross-platform desktop automation MCP server that lets AI agents capture screenshots, run OCR with UI-element classification, control mouse/keyboard, and launch programs on Linux, macOS, and Windows.202MIT



