Windows desktop-control MCP server: screenshot, window mgmt, mouse/keyboard input, recording.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Windows desktop-control MCP server: screenshot, window management, mouse/keyboard input, and ffmpeg screen-recording, config-gated by tool group (input off by default) -- built to the same standard as mcp-factory and rag-mcp: own pyproject, fastmcp server, honest README, real test suite.
window/input/record tool groups are env-gated -- input stays off
unless you explicitly opt in. See Env vars below for the full table.
| Group | Tools | Default state |
|---|---|---|
observe | screenshot, list_windows, get_active_window, window_info | always on |
window | focus_window, move_resize_window, minimize_window, restore_window | env-gated, off unless DESKTOP_MCP_ENABLE_WINDOW=1 |
input | mouse_move, mouse_click, mouse_drag, mouse_scroll, key_press, hotkey, type_text | env-gated, OFF by default -- requires DESKTOP_MCP_ENABLE_INPUT=1 |
record | record_start, record_status, record_stop | env-gated, off unless DESKTOP_MCP_ENABLE_RECORD=1 |
A disabled group returns a structured policy_refusal error (never a silent
no-op, never a crash). Input actions are additionally rate-capped (default 60
actions/min, tunable via DESKTOP_MCP_RATE_LIMIT_PER_MIN) -- exceeding the
cap returns a structured rate_limited error.
This is defense-in-depth: harness-level permission prompts are the first gate, but the server itself refuses input/window/record actions unless its own env explicitly enables them, so a misconfigured or overly-permissive harness can't turn on capabilities the operator didn't opt into for this process.
Read this before you register desktop-mcp. This is a desktop-control server; what it can do to your machine is spelled out here plainly so you can make an informed decision. Honesty about the blast radius is the point.
observe group (screenshot, window enumeration) is ALWAYS ON and
cannot be disabled. Any caller that can reach this server can capture the
contents of any visible window on the machine -- including a password
manager, an authenticator/2FA app, a seed phrase, a banking tab, or a
private message. screenshot returns a file path to a PNG written to the
scratch dir (default %TEMP%\desktop-mcp-scratch), not inline pixels, so
captured screen contents also persist on disk until that directory is
cleared. Treat the scratch dir as sensitive and run this server only on a
machine and under a harness you trust.DESKTOP_MCP_ENABLE_INPUT=1 grants keystroke and mouse injection into the
focused window -- this is RCE-equivalent. With the input group enabled,
a caller can type commands, press hotkeys, and drive the mouse in whatever
window currently has focus (a terminal, a browser, an admin tool). It is
OFF by default for exactly this reason; turn it on only when you
understand that you are handing the caller the keyboard. When disabled every
input tool returns a structured policy_refusal (never a silent action).input, window, and record groups off unless
a specific task needs them, keep this server on a trusted host, and do not
run it elevated (admin) unless you have accepted that an elevated input group
can drive elevated windows.The env-gating, default-off input group, structured refusals, and rate cap described above are the enforced controls; this section states, without softening, what remains reachable by design.
Every claim below maps to the file that implements it and the test(s) that verify it -- no capability is asserted without a corresponding implementation + test.
| Claim | Implementation | Verified by |
|---|---|---|
| Capture a screenshot (monitor / region / window) as PNG | desktop_mcp/groups/observe.py::screenshot | tests/test_observe.py::TestScreenshot, live: tests/test_live_smoke.py::test_live_screenshot_real_png |
| Enumerate windows / get active window / look up by title | desktop_mcp/groups/observe.py | tests/test_observe.py::TestListWindows, TestGetActiveWindow, TestWindowInfo |
| Focus / move+resize / minimize / restore a window | desktop_mcp/groups/window.py | tests/test_window.py |
| Mouse move/click/drag/scroll, key press/hotkey, type text | desktop_mcp/groups/input_tools.py | tests/test_input.py (mocked pyautogui only -- see Limitations) |
| Screen recording via ffmpeg gdigrab, hard duration cap, graceful stop | desktop_mcp/groups/record.py | tests/test_record.py, live: tests/test_live_smoke.py::test_live_record_real_mp4 |
| Input group OFF by default, structured refusal when disabled | desktop_mcp/config.py::group_enabled, gated | tests/test_config.py::TestGroupEnabled, tests/test_input.py::TestGateDisabledByDefault |
| Rate cap on input actions (default 60/min) | desktop_mcp/config.py::TokenBucket, RateLimiterRegistry | tests/test_config.py::TestTokenBucket, tests/test_input.py::TestRateLimit |
| DPI-awareness bootstrap (per-monitor-v2) so mss/pyautogui coords agree on scaled displays | desktop_mcp/config.py::ensure_dpi_awareness | tests/test_config.py::TestDpiAwareness (idempotency only; visual coord-agreement is not automated -- see Limitations) |
| Coordinate validation against virtual-desktop bounds before any mouse action | desktop_mcp/groups/input_tools.py::_validate_point | tests/test_input.py (out-of-bounds cases) |
| Orphan-guard: a stale recorder from a crashed process gets killed before a new one starts | desktop_mcp/groups/record.py::_orphan_guard | tests/test_record.py::TestRecordStart::test_orphan_guard_kills_stale_recorder |
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/desktop-mcp)<a href="https://allmcps.com/mcp/desktop-mcp"><img src="https://allmcps.com/api/badge/desktop-mcp?style=directory" alt="Desktop MCP on AllMCPs" /></a>