Omni-Desktop-MCP
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.
Omni-Desktop-MCP
An MCP server that lets an AI agent observe and operate desktop applications through three stable tools.
Platform status
Platform
Status
Windows 10/11
Implemented and tested (see Testing).
macOS
Experimental stub: window listing and screenshots only; input actions return
unsupported_on_current_host. Not tested on macOS hardware.Linux
Experimental stub using
wmctrl/xdotoolwhen present. Not tested on a Linux desktop.This is alpha software (0.1.0). It can click, type, and close windows on your machine. Read Safety first.
What it does
Three tools (a small, fixed tool list keeps prompts and caches stable):
desktop_observe,desktop_act,desktop_status.Compact UI Automation tree with one line per interactive control, plus
diff=trueto return only added (+), changed (~), and removed (-) controls since the last observation of that window.OCR on Windows through the built-in WinRT OCR engine (Chinese and English language packs, whichever are installed), mapped back to screen coordinates, as a fallback for UIs that expose no accessibility tree.
Background-first input:
desktop_acttries UIA patterns (Invoke, Value, Toggle, SelectionItem, ExpandCollapse, Scroll) first, which move no cursor and change no focus. If that is unavailable it falls back to foregroundSendInput, then to a foreground-lock workaround, and restores the previous foreground window by default.Unicode-safe typing: UIA ValuePattern with read-back verification, otherwise Unicode
SendInput, or a clipboard paste that restores the previous clipboard text.Guardrails: stale-snapshot rejection, a 5 s repeat suppressor, a blocklist of dangerous hotkeys, and protection against closing system and harness windows.
Related MCP server: oswright
Install
pip install omni-desktop-mcpRequires Python 3.10+ and mcp 2.x (installed automatically). Windows dependencies (pywin32, uiautomation) are installed automatically on Windows.
Run it directly:
omni-desktop-mcp # stdio
omni-desktop-mcp --http --host 127.0.0.1 --port 8765 # Streamable HTTPRegister with your clients
Preview which config files would change (nothing is written):
omni-desktop-mcp-installApply (existing files are backed up to *.bak-<timestamp> first; a file that fails to parse is left alone):
omni-desktop-mcp-install --apply
omni-desktop-mcp-install --apply --only codex,traeIt knows about Antigravity (~/.gemini), Codex (~/.codex/config.toml), and Trae CN, only touches clients whose config directory already exists, and also installs the bundled usage skill for DeepSeek Harness, Codex, and Trae CN where a skills directory exists.
Or add it by hand. Generic snippets are in clients/doubao-mcp.json, for example:
{
"mcpServers": {
"omni-desktop": {
"command": "python",
"args": ["-m", "omni_desktop_mcp"],
"env": { "PYTHONIOENCODING": "utf-8" }
}
}
}If python on your PATH is not the one you installed into, use the absolute path to that python.exe.
DeepSeek Harness: the repository root is also a configuration-only DSH bundle (package.json with dsh.bundle, plus cordis.patch.yml) that mounts the server through DSH's built-in MCP client. It does not ship the Python server itself, so run pip install omni-desktop-mcp first. The bundle launches python -m omni_desktop_mcp, so python on DSH's PATH must be the one you installed into; if it is not, set command to the absolute path of that python.exe. This bundle has been exercised only in the form below with an absolute Python path; resolving a bare python from a clean DSH profile has not been verified yet. The equivalent patch row is:
- insert:
- id: omni-desktop-mcp
name: '@deepseek-ai/dsh-mcp-client'
config:
serverName: desktop
transport: stdio
command: C:\path\to\python.exe
args: [-m, omni_desktop_mcp]
env: { PYTHONIOENCODING: utf-8 }
toolCallTimeoutMs: 120000
startupTimeoutMs: 25000
failOnStartupError: falseTools
desktop_observe(mode, window, diff, max_elements, ocr_lang, include_image, annotate, region):modeiswindows,tree,ocr,screenshot, orhybrid. Iftreefinds no interactive controls it automatically adds OCR. Images are capped at 1920x1080.desktop_act(action, target, window, snapshot_id, delivery, ...):click,double_click,right_click,move,drag,scroll,type,press_key,hotkey,window_focus,window_state,launch_app,wait_for,batch.targetis a ref such asw1:e3/w1:o2from the latest observation, or{x, y}in physical screen pixels.desktop_status(command):health,policy,reset_guard,clear_snapshots.
Safety
This is not a sandbox. Anything the logged-in user can do with mouse and keyboard, an agent connected to this server can do.
Dangerous hotkeys (
Ctrl+Alt+Del,Win+L,Shift+Del,Alt+F4) and closing protected windows are refused unlessallow_dangerous=trueis passed. Treat that flag as something a human grants, not something an agent decides.Holding
Escaborts the current action; the key is polled at dispatch and between batch/drag steps, not inside a single OS call. No global input hooks are installed.The HTTP transport has no authentication. Keep it on
127.0.0.1. Do not expose it to a network.Windows UIPI: a non-elevated server cannot drive an elevated window; such actions fail with
foreground_unavailablerather than reporting success.Screenshots and OCR text can contain secrets that are on screen. They are returned to the connected client.
Known limitations
OCR is imperfect (for example
CLICKEDwas read asCL℃KEDin our own test). Do not rely on a single exact OCR string to confirm an action.Coordinates are physical screen pixels. The process declares Per-Monitor DPI v2 awareness; behaviour on unusual multi-monitor layouts has only been checked on one two-monitor machine.
UIA tree walks are time-limited (2 s) and breadth-first with a node cap, so very large trees come back truncated and flagged.
No latency or accuracy benchmarks against other desktop-automation servers have been run, so none are claimed.
Testing
pip install pytest
pytestThe unit tests cover snapshot diffing, stale refs, and the safety guard. tests/test_windows_e2e.py launches a temporary Tk window and drives it through observe, type, OCR, click, and screenshot; it needs an interactive Windows desktop and will briefly take foreground focus.
License
MIT. See 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
Let AI see and use your own Windows PC with your permission: screen, apps, mouse and keyboard.
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
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
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to see, locate UI elements, and operate any Windows desktop app through natural language, using accessibility-tree matching with optional vision-model fallback, plus an autonomous visual loop with introspection and meta-learning.15MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to automate real desktop applications across Windows, Linux, and macOS using incremental screen perception, accessibility trees, OCR, and window management, dramatically reducing token usage compared to screenshot-per-step approaches.35 PyPI4MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to autonomously control Windows 11 and 10 desktops via sub-10ms screen capture, native UI Automation element inspection, and zero-lag keyboard and mouse input. Combines a visual plane with a semantic plane and stall detection so agents can operate real applications reliably without vision-only guessing.785 npm196 PyPI7MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to drive Windows desktop automation — opening and interacting with applications, native UI controls, keyboard/mouse input, files, processes, clipboard, and Chrome/Edge browsing via UI Automation and CDP. All actions pass through a safety policy with human approval, emergency stop, and deterministic verification.1MIT