Agentic Windows MCP - an MCP server that gives AI agents full, safe control of a Windows PC: desktop automation, remote computer control, browser DevTools inspection, and remote software development.
pip install agentic-windows-mcp==0.9.5 Copy PIP instructions
Full remote desktop control · Deep browser DevTools · Real coding on your own machine, driven by any AI agent
The left half is muse.ai (Meta's hosted agent). The right half is a self-hosted clone of it, built from scratch — and the hands driving both screens belong to AI agents connected through Agentic Windows MCP. Every click, keystroke, file edit and browser inspection in this video was performed by an agent, on a real PC, through this server.
▶ Watch the demo — 34 seconds: original vs. clone, side by side, both operated live by AI agents.
This project is itself the proof of concept. It was produced entirely by an automated trio, replacing the human developer end-to-end:
ChatGPT Web connected to GitHub and to the personal computer, and the loop — write code → run it on the real machine → look at the real screen → fix → commit — ran fully automatically, in place of a human.
The flagship result of that loop is the demo above: a from-scratch clone of muse.ai, built and verified screen-by-screen against the original:
Agentic Windows MCP is the component that made the "personal computer" leg of that trio real. Install it, and any agent you use gets the same power over your machine.
Alone, an AI agent can only talk. Alone, your PC just sits there. Agentic Windows MCP is the bridge that turns the two of them — plus GitHub — into a complete working machine:
The three pillars are completely independent geographically, joined by only two pipes: the MCP protocol (Agent ⇄ your machine) and Git (your machine ⇄ GitHub). So:
The Browser toolset connects to your already-open Chrome/Edge/Brave via CDP (Chrome DevTools Protocol):
Combine the toolsets and an agent can run the full life-cycle of a coding task right on your PC: open the IDE/project folder → read code → edit files → build & test via PowerShell → open the browser and verify with DevTools → fix → git commit & git push to GitHub. You just give orders and supervise — from your phone if you like.
One tool call, end to end — request → plan → connect → authenticate → control gate → execution → result. Interactive version.
Runtime architecture — transport + auth, the FastMCP server, the control plane, and the desktop / system / browser layers over Windows. Interactive version.
┌─────────────────────────────┐ │ GITHUB │ │ source · sync · releases │ └──────────────┬──────────────┘ git push/pull ┌──────────────▼──────────────┐ ┌─────────────┐ │ YOUR COMPUTER │ ┌──────────────────┐ │ AI AGENT │ │ ┌───────────────────────┐ │ │ USER │ │ Muse · ├──┼──►│ AGENTIC WINDOWS MCP │◄─┼──────┤ supervises · │ │ ChatGPT · │MCP│ │ 52 control tools │ │ sees │ glowing border │ │ Claude · │◄──┼──┤ mouse · keys · apps │ │ │ · notice panel │ │ Gemini · │ │ │ PowerShell · files │ │ │ · Space chord* │ │ DeepSeek... │ │ │ Browser DevTools │ │ └──────────────────┘ └─────────────┘ │ └───────────────────────┘ │ (web / app / │ Windows 10 / 11 │ another PC) └─────────────────────────────┘ *take-back chord: Ctrl + Alt + Shift + Space Agent (MCP client) │ JSON-RPC: stdio / Streamable HTTP (+ Bearer token / OAuth) ▼ Agentic Windows MCP (FastMCP, Python) ├── Desktop layer .... Win32 API + UI Automation (element tree, screenshots) ├── Control plane .... the gate: glowing border, notice panel, policies │ relaxed/balanced/strict, take-back chord, lease queue ├── System layer ..... PowerShell, FileSystem, Registry, Process └── Browser layer .... Playwright + raw CDP (Network/CSS/DOM/ Accessibility/Debugger/Storage domains) ▼ Windows 10 / 11 The main source lives in src/agentic_windows_mcp/ (desktop/, browser/, tools/, infrastructure/, filesystem/, powershell/, registry/, uia/…).
Requirements: Windows 10/11 · Python 3.12+ · uv · Git.
pip install agentic-windows-mcp # or, isolated, with uv: uv tool install agentic-windows-mcp Option 2 — from source git clone https://github.com/homenewstar/agentic-windows-mcp.git cd agentic-windows-mcp uv sync The Browser/DevTools tools talk to your existing Chrome/Edge over CDP. If you also want the server to launch its own Chromium, run playwright install chromium once.
HTTP mode (for remote agents / over the network) — with an auth key:
# Create / rotate the auth key (stored in ~/.agentic-windows-mcp/) agentic-windows-mcp auth # Start the MCP server over HTTP agentic-windows-mcp serve --transport streamable-http --host 0.0.0.0 --port 8000 # Endpoint: http:// :8000/mcp (When installed from source, prefix the commands with uv run.)
stdio mode (agent on the same machine, e.g. Claude Desktop, Cursor, VS Code): see the connection configs below — the client launches the server itself via uvx.
agentic-windows-mcp install # create the "agentic-windows-mcp-server" Scheduled Task agentic-windows-mcp uninstall # remove the task and stop the server Expose the endpoint safely Never open the port directly to the Internet. Use one of:
The config file lives at ~/.agentic-windows-mcp/config.toml:
[server] # default host / port / transport... [control] enabled = true policy = "strict" # relaxed | balanced | strict idle_timeout_seconds = 10 🔌 Connect your AI agent The general rule: any application that speaks MCP (Model Context Protocol) can connect, over stdio (same machine) or Streamable HTTP (over the network, with an Authorization: Bearer header).
Web-based agents don't install software on your machine — they connect to Agentic Windows MCP's HTTP endpoint:
ChatGPT supports MCP through Developer mode / Connectors:
Same machine — stdio, Claude launches the server itself:
{ "mcpServers": { "agentic-windows-mcp": { "command": "uvx", "args": ["agentic-windows-mcp"] } } } Different machine — point it at the HTTP endpoint:
{ "mcpServers": { "agentic-windows-mcp": { "url": "http:// :8000/mcp", "headers": { "Authorization": "Bearer " } } } } Claude Code: claude mcp add --transport http agentic-windows-mcp http:// :8000/mcp --header "Authorization: Bearer ".
DeepSeek (and other models) connect in two ways:
Snapshot can narrow what it captures instead of always walking the whole desktop:
Chromium/Electron wrapper containers were evaluated for explicit skipping: anonymous no-name containers already never become semantic-tree nodes and never consume the element budget (the budget counts only elements actually emitted), while the walk still descends through them to reach actionable descendants — so output size is already wrapper-free without hiding any native container, and no additional Chromium-gated skipping is applied.
Follow this project on Trendshift — the platform that records the trending history of GitHub repositories:
Once the repository appears on GitHub Trending, its live Trendshift badge (rank & history) will be embedded right here.
Contributions are welcome — please read CONTRIBUTING.md first. In short: work happens on the main branch, and the test suite must pass (uv run pytest) before a change lands. Before changing a role/pattern mapping or an input/encoding assumption, check the measured-behaviour ledger in probes/windows/FINDINGS.md.
Windows blocks input from a lower-integrity process to a higher-integrity window (e.g. an app running as administrator) — and SendInput reports success anyway, so the injection count is never proof of delivery (findings ledger W-002 in probes/windows/FINDINGS.md). Before sending physical input or a UIA pattern write, the server compares token integrity levels and fails closed with a PERM_DENIED error when the target process outranks it, sending nothing. To drive an elevated app, run the server itself elevated to the same level. Observation (Snapshot, screenshots) of elevated windows is unaffected.
Terminating the wrong process breaks the user's desktop session, so the process-kill path refuses a protected list of session-critical images outright, before any termination attempt: explorer.exe, csrss.exe, smss.exe, winlogon.exe, wininit.exe, dwm.exe. The refusal is a typed PROTECTED_PROCESS error and is enforced in the shared kill path, so every consumer (the Process tool today, any future one) behaves identically. Matching is the exact image name, case-insensitive — never a substring — so a lookalike app such as explorer-notes.exe remains closable.
Sequences that hold physical state — a drag's mouse button, MultiSelect's Ctrl, a SendKeys chord, even a single click's down/up pair — arm a release guard before their first event, so an abort (exception, gate preemption, takeover) cannot leave a button or modifier logically held:
Sessions namespace the snapshot refs. Session with mode='start' and a session id activates that namespace: Snapshots register into it, and refs from any other session stop resolving (a cross-session attempt fails with a STALE_REF that names the owning session, so the recovery is obvious). mode='end' returns to the default session; an ended session's refs are kept and resume when it is started again. Each session has a manifest under ~/.agentic-windows-mcp/sessions/ / recording when it was created and ended.
Trace (opt-in): enable it in config.toml — [trace] enabled = true, with optional directory = "D:/traces" — and the server appends a JSONL trace under ~/.agentic-windows-mcp/traces/ (or the configured directory): one segment per process, first line a meta record (schema version, server version, pid, start time). The AGENTIC_WINDOWS_MCP_TRACE environment variable still works and overrides the config's enabled in either direction. Events cover tool calls (name, outcome, duration — never arguments, so no password value or credential can land in the trace), snapshot registrations, session lifecycle, and gate recovery/escalation actions. The schema evolves additively only. Merge all segments into one deterministic timeline for incident analysis with:
agentic-windows-mcp trace-export [--dir ] Truncated or corrupt tail lines (what a killed process leaves behind) are skipped with a warning count instead of failing the export. A single session can request tracing for itself with Session mode='start', trace=True even when the server-wide switch is off. Replay screenshots — a frame from just before and just after each action call, stored beside the segment — are a separate, stronger opt-in: [trace] capture_screenshots = true, or artifacts=True on a session start. They are unredacted screen content (anything visible on the desktop lands in them); treat the files as sensitive, and note no environment variable can enable them.
Every action tool (Click, Type, Scroll, Move, Shortcut, MultiSelect, MultiEdit, Invoke, SetValue, Toggle, PowerShell) ends its result with a machine-readable disposition, and every failure from those tools ends with a typed error envelope:
[disposition delivery=delivered_unverified retry=unsafe] [error code=STALE_REF delivery=not_delivered retry=safe recovery=refresh_snapshot_then_retry_original] delivery says whether the input reached the application (not_delivered, delivery_uncertain, delivered_unverified, delivered_verified, unknown); retry is derived from it — only not_delivered is safe to retry. When a failure reports retry=unsafe or unknown, do not repeat the action blindly: observe first (Snapshot, ControlStatus), because a repeated click can submit twice and a repeated toggle undoes itself. The human-readable message — including the existing STALE_REF: / PERM_DENIED: prefixes — stays in front of the envelope; branch on the code= token, never on the prose. Read-only tools send no input, so their failures are inherently not_delivered / retry-safe.
This server can perform real, irreversible actions on the machine it runs on. Read SECURITY.md before deploying, and report vulnerabilities privately via GitHub Security Advisories — never as a public issue.
Released under the Apache License 2.0 — © 2026 Vu Manh Ruy. See LICENSE.md and NOTICE for details.
Both files in this release have provenance metadata.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




