desk-mcp
Enables automating Counter-Strike (Source 2013, CS:GO/CS2) on the Windows desktop: prescribes aiming through relative mouse movement instead of absolute positioning, accepting dx/dy/steps/stepMs parameters so synthetic motion reads as a hand rather than a flick, and documents the raw-input caveats per title (Counter-Strike: Source needs no switch since the engine reads WM_MOUSEMOVE, while CS:GO/CS2 require cl_rawinput 0). Also notes that windowed D3D9 titles such as Counter-Strike: Source render correctly through PrintWindow for screenshots.
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.
desk-mcp
Give your AI assistant eyes and hands on Windows.
Read tables, find controls by name, fill forms and verify the result. Use screenshots, OCR and mouse input when an app only exposes pixels.
46 MCP tools. Node.js + Windows PowerShell. No native npm modules, Python or .NET SDK to install. The UIA helper compiles at startup using Windows' built-in Add-Type.
Quick start · Usage · Tools · Configuration · Benchmarks · Русский

The recording uses the included Parcel Tracker app. UI Automation patterns fill fields and press controls without moving the cursor.
Quick start
Requirements: Windows 10 1809+ or Windows 11, Node.js 20+ (22/24 recommended), Git and an unlocked interactive desktop. Windows PowerShell 5.1 is included with Windows.
git clone https://github.com/DigitalDog1/desk-mcp.git
cd desk-mcp
npm ciAdd the server to your MCP client's configuration. Replace the path with the absolute path to your clone:
{
"mcpServers": {
"desk-mcp": {
"command": "node",
"args": ["C:/tools/desk-mcp/server.mjs"]
}
}
}This example is for clients using mcpServers; other clients may use a different configuration format. If Node is not found, use C:/Program Files/nodejs/node.exe as command. Restart the client after configuration or code changes.
Use the clone for now: the npm registry returned 404 for desk-mcp on 2026-11-13. The previously documented npx -y desk-mcp command requires a published package.
Ask your assistant to call computer_permissions, list windows with computer_windows, and inspect the window you choose.
To reproduce the demo, run these commands in two terminals from the clone:
powershell -NoProfile -ExecutionPolicy Bypass -STA -File examples/demo-app.ps1node examples/demo.mjsThe demo changes only its Parcel Tracker window and uses the clipboard. The recorded timings depend on the machine.
Related MCP server: com-use-mcp
Usage
Find the window → inspect → act → verify.
Use
hwndfromcomputer_windowswhen titles change. Get a fresh handle after a window closes.Find a control by
id(AutomationId),name,typeornameRegex.requireUnique: truerefuses ambiguous or incomplete searches.Pass its
elementIdtocomputer_invoke,computer_set_valueorcomputer_select. References expire when the worker restarts or the element disappears.Mutating control tools require an
elementId, or a window (hwnd/title) plus a control selector.Verify the resulting value or state. An input event being sent does not establish success.
For example, pass this to computer_batch:
{
"steps": [
{ "tool": "computer_find", "args": { "title": "Parcel Tracker", "id": "searchBox", "requireUnique": true } },
{ "tool": "computer_set_value", "args": { "elementId": "${steps.0.elements.0.elementId}", "value": "ZX-9026-1147" } },
{ "tool": "computer_find", "args": { "title": "Parcel Tracker", "id": "searchBox" } }
]
}Batches support up to 50 worker-tool steps, validate each step, and stop on errors unless stopOnError: false is set. Exact references preserve their value's type. Inspect allOk and each step's code; earlier actions are not rolled back. The default total deadline is 45 seconds; set timeoutMs (100–120000 ms) below your client’s timeout. Deadline expiry or client cancellation stops remaining steps, even with stopOnError: false. Browser tools and nested batches are not supported in a batch.
For smaller trees, use maxDepth: 4, interactiveOnly: true, compact: true. For repeated reads, use mode: auto and pass the last token as since with the same options. A stale baseline or a diff larger than the full view returns the full view. Check truncated and searchIncomplete before concluding that something is absent.
computer_set_value defaults to ValuePattern without focus. Modes type and paste activate the addressed window, check field focus and verify the resulting value through ValuePattern. A mismatch returns InputNotVerified; inspect state before retrying. computer_type sends input to the currently focused control and returns verified: false. Paste uses the clipboard.
The same window with the cursor

Coordinate input moves the real cursor. For controls that need a hover before the press, use hoverFirst: true (250 ms).
Tools
Full argument schemas are available in your MCP client.
Group | Tools |
Screen |
|
Accessibility |
|
Controls |
|
Verification |
|
Mouse |
|
Keyboard |
|
Windows |
|
Browser |
|
Utilities |
|
computer_read_screen falls back from UIA to MSAA and then OCR. CDP browser tools are separate and use a dedicated Chrome/Edge profile. UIA patterns can leave the cursor untouched; pixel fallbacks and keyboard input can take focus. Check via and backend.
Configuration
Set these in the server entry's env object:
Variable | Default | Purpose |
| off |
|
| empty | Comma-separated MCP tool names; |
| empty | Pipe-separated substrings matched against supplied worker window titles. |
| off / | Worker text log, not JSONL. Does not cover CDP. The parent directory must exist; an unusable path fails startup with |
|
| Server UIA deadline, including startup. |
|
| Cooldown for the same tool/target after a timeout. |
|
| Native STA operation budget. |
computer_launch and computer_close_window require confirm: true. The title filter is not a sandbox: untitled input, handles, element references and CDP need separate restrictions. Disable unnecessary tools and use a separate Windows session for unattended work.
Limitations and troubleshooting
SecurityBlockedmeans AMSI/antivirus blocked the PowerShell worker. Inspect Windows Protection History and report a suspected false positive; changing input settings will not fix a blocked startup.Run in an interactive Windows session. Services, locked sessions, protected windows and exclusive fullscreen games can block input or capture.
After a UIA timeout, use screenshot/OCR or another target during cooldown. A worker restart rejects other pending calls too; re-read state before retrying an action that may already have reached the app.
If a pixel click is ignored, try
hoverFirst: true. Matchscaleto the screenshot; usenudgeor drag on a canvas.computer_read_tabletreats the first row as a header by convention. Useheaders: falseto retain it as data.computer_selftestbriefly presses Shift to check SendInput, even in dry-run. Held keys and buttons must be explicitly released.Tool errors include MCP
isErrorand acode:line. Batches carry error codes per step. A condition timeout fromcomputer_wait_elementreturnssatisfied: false,reason: timeout.
Benchmarks
See method and reproducible results. Reading latency, response size and completed-task latency are separate measurements. No simulated screenshot agent or invented LLM delay is used.
Development
npm ci
npm run check
npm run test:unit
npm run test:hardening
npm run check:docs
npm test
npm pack --dry-runThe hardening suite opens disposable windows, moves the cursor, uses the clipboard and deliberately hangs its own fixture. Run it on an unlocked desktop without interacting during the run. It restores clipboard text, not other clipboard formats.
The Windows smoke test reads live windows and exercises Parcel Tracker if open. It does not type into an arbitrary active window. Selftest briefly presses Shift; browser launching is opt-in with DESK_TEST_CDP=1. Keep worker.ps1 in UTF-8 with BOM and the UIA helper compatible with C# 5.
Contributing · Architecture · Changelog · Publishing · Third-party notices · Hard-test review
License
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
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
Eyes and hands on real Windows PCs — observe, click, type via Glasswarp API.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Real desktops for AI agents, on machines you choose: screenshot, type, click, hire more agents.
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.30726 npmMIT
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to see and operate a Windows PC through mouse, keyboard, screenshots, OCR, window control, and shell commands.-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to drive native Windows apps and headed browsers inside a hidden child desktop session with its own screen, pointer and keyboard focus. Provides tools for screenshots, mouse/keyboard input, accessibility inspection, UI waits, display changes, Android emulators, application launches and cancellable command jobs, so the user's own desktop stays free.9MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI models to control a local Windows desktop by moving the cursor, clicking, scrolling, typing Unicode text, sending key chords, and capturing screenshots. Runs natively on Windows with minimal latency and no heavy dependencies such as Python, PyAutoGUI, or Docker.151 npm1MIT