Sandbox
@sandraschi/windows-computer-use-mcp

MCP server for Windows desktop automation

This repo connects an agent to Windows through MCP tools for clicking, typing, screenshots, OCR, and UI inspection. It can also run as an autonomous mission engine that plans, retries, verifies, and reports on desktop tasks.

37 stars12 forksPythonUpdated 8d ago
Who it's for

Builders who want an agent to operate Windows apps, inspect screens, and carry out multi-step desktop work.

What it delivers

You can have an agent control Windows software directly instead of asking you to click through every step.

What it does

Desktop control tools

Exposes 22 MCP tools for mouse, keyboard, screenshot, OCR, and UI inspection.

Autonomous missions

Runs goal-based jobs that plan actions, retry failures, and verify the result.

Web operator UI

Provides a browser dashboard with human-in-the-loop controls, logging, and crawler views.

Desktop app packaging

Bundles the system into a Windows app through Tauri and NSIS.

Telemetry and replay

Logs actions to SQLite and supports macro recording and replay for repeatable workflows.

Adaptive element discovery

Finds UI targets using title, IDs, class names, and OCR fallbacks.

README

windows-computer-use-mcp

Stars License Python FastMCP

A tool for agents, and an agent itself.

YouIt
Use it as an MCP serverClaude, Cursor, DeepSeek call automation_click, automation_screenshot, automation_ocr — 22 tools
Use it as an autonomous agentGive it a goal: automation_mission(run="install app, verify UI, screenshot result") — it plans, executes, retries, and reports
Use it as a webappstart.ps1 opens a React dashboard at http://127.0.0.1:10788 with HITL, crawler, logging
Use it as a desktop appThe NSIS installer bundles everything into one binary — no Python, no uv, no git needed

Exhibit A: 100 Tauri/NSIS installers, one unattended run, $2 in LLM costs. Install, screenshot, verify, report — zero human intervention. That is what agentic Windows automation looks like at scale.

Built on pywinauto. Read docs/SAFETY.md before production use.


Quick Start

MethodCommand / Config
MCP stdio (Cursor, Claude Desktop){ "mcpServers": { "windows-computer-use": { "command": "uv", "args": ["--directory", "<PATH>", "run", "windows-computer-use-mcp"] } } }
HTTP streamable (any MCP HTTP client){ "mcpServers": { "windows-computer-use": { "url": "http://127.0.0.1:10789/mcp" } } }
Web operator UI.\start.ps1http://127.0.0.1:10788
Desktop app (NSIS installer)Download from Releases — zero deps

See INSTALL.md for detailed setup. Run just demo for examples.


Features

  • Window Management — find, activate, maximize, minimize, position, close
  • Mouse & Keyboard — click, drag, type, hotkeys, app shortcuts
  • UI Elements — inspect, click, read text, verify state via UIA / Win32
  • Visual Intelligence — screenshots, OCR, template matching
  • Autonomous Missions — give it a goal, it plans and executes with retry + verification
  • Macro Recording — record any UI sequence, replay, verify outcomes
  • Multi-App Workflows — chain actions across Notepad, Calc, Paint, or any Windows app
  • Telemetry — every action logged to SQLite; query failure patterns by tool
  • Adaptive Location — auto-cascades through title/auto_id/control_id/class/OCR to find elements
  • Face Recognition — optional, off by default

Documentation

DocContent
INSTALL.mdSetup: desktop app, uv, MCP config
docs/README.mdFull documentation hub
docs/py-stack.mdPython dependency deep dive
docs/composing-with-playwright.mdBrowser automation with Playwright MCP
docs/ocr.mdOCR system — Tesseract setup, limitations, competition
docs/cua-nsis-certification.mdDogfooding: using the tool to test its own NSIS installer
docs/ROADMAP.mdImprovement roadmap short/medium/long term
docs/SAFETY.mdHITL, kill switch, opt-in features
docs/TOOLS.mdPortmanteau tool reference
tests/README.mdTest suite guide and e2e setup
examples/README.mdRunnable demos
mcpb/README.mdMCPB bundle packaging
web_sota/README.mdOperator UI build/dev guide
CHANGELOG.mdRelease history

Ports

PortService
10788Frontend — Vite operator UI
10789Backend — FastAPI + FastMCP HTTP
stdioMCP transport (port-free)

Related

RepoWhat it does
autohotkey-mcpRaw input recording/replay via AHK
browser-mcpPlaywright browser control — for webapps, HTML DOM, websites
virtualization-mcpSandbox / VM isolation
windows-operations-mcpRegistry, services, accounts

Browser vs desktop: This server drives Win32 / UI Automation. For HTML/DOM and websites, pair with browser-mcp (Playwright). Both MCPs can run side by side — use one profile that loads both and let the LLM pick the right tool for the target.

Fleet standards: mcp-central-docs.


License

MIT — Copyright (c) 2026 Sandra Schipal.

Files in the repo

Repository payload55 top-level entries
  • .github
  • .snapshots
  • .windsurf
  • cua-reports
  • docs
  • examples
  • hooks
  • mcpb
  • native
  • ocr_scans
  • presets
  • scratch
  • scripts
  • skills
  • src
  • tests
  • web_sota
  • .cursorignore
  • .cursorrules
  • .env.example
  • .gitattributes
  • .gitignore
  • .mcpbignore
  • .pre-commit-config.yaml
  • AGENT_PROTOCOLS.md
  • AGENTS.md
  • BUILD_LOG.md
  • CHANGELOG.md
  • CLAUDE.md
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • fleet-start.config.ps1
  • glama.json
  • INSTALL.md
  • justfile
  • justfile.bak-20260729_133948
  • justfile.bak-20260729_134055
  • LICENSE
  • llms-full.txt
  • llms.txt
  • MANIFEST.in
  • manifest.json
  • mcpb.json
  • paint_elements.json
  • pyproject.toml
  • pytest.ini
  • README.md
  • renovate.json
  • run_server.py
  • screenshot_demo.png
  • SECURITY.md
  • setup.py
  • start.bat
  • start.ps1
  • uv.lock

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More connectors

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

43k

Universal provider proxy for OpenAI Codex & Claude Code — use any LLM (Claude, Gemini, Grok, DeepSeek, Ollama…) with Codex CLI, App, SDK, and Claude Code

14k
okf-memory/
okf-agent-memory

Git-native persistent memory for AI coding agents. Implements Google OKF v0.2 with sub-300µs in-memory BM25 search, embedded MCP server, and progressive disclosure. Slashes token bloat by 80% with zero external databases or dependencies. Built in pure Go.

547
tirth8205/
code-review-graph

Local-first code intelligence graph for MCP and CLI. Builds a persistent map of your codebase so AI coding tools read only what matters, with benchmarked context reductions on reviews and large-repo workflows.

31k
2akouwu/
reverify

Stop your AI from making things up — it proposes, deterministic tools decide, every claim checked against ground truth with evidence. Grounded facts and context survive resets. Reverse engineering is the proving ground. MCP server + CLI.

1.1k
t8y2/dbxConnectors

20 MB lightweight cross-platform database client for 90+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 90+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP Server。

19k