dsh-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.
dsh-desktop-mcp
English · 中文
A small, self-contained Windows desktop-control MCP server for DeepSeek Harness (DSH). It lets an agent see and drive the local desktop over the Model Context Protocol (MCP) via stdio.
Once connected, the tools show up as mcp__desktop__*:
Tool | What it does |
| Screen size, monitor layout, cursor position |
| Capture the screen (full / one monitor / a region) to a PNG |
| Current cursor position + screen size |
| Move the cursor to |
| Click at |
| Press, drag from A to B, release |
| Scroll the wheel (positive = up) |
| Type / paste text at the current focus (Unicode-safe via clipboard) |
| Press a key or hotkey, e.g. |
| List visible top-level windows |
| Bring a window (by title substring) to the front |
| Read / write the clipboard |
| Open a file, folder or URL with the OS default app |
| Wait N seconds |
Why
Most desktop-automation bridges assume a full Node/browser stack. This one is a single ~280-line Python file with a handful of well-known dependencies, so it is easy to audit and drop into any MCP client that can spawn a stdio server.
Related MCP server: computer-use-windows
Requirements
Windows (uses
pyautogui,mss,pygetwindow,os.startfile).Python 3.9+.
An interactive, unlocked desktop session (screenshots and input injection need a real session; it will not work over a locked screen).
Install (standalone)
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
requirements.txtpinsmcp<2becausemcp2.x renamedFastMCPtoMCPServer; this project targets the 1.x line.
Run the server (stdio):
.\.venv\Scripts\python.exe server.pySelf-test (a few non-destructive checks — prints screen info, takes one screenshot to the temp dir, counts windows):
.\.venv\Scripts\python.exe server.py --selftestUse with DeepSeek Harness (as a bundle)
This repo can also be installed as a DSH bundle. package.json declares a
dsh.bundle.patch and cordis.patch.yml registers the MCP client row.
Important — replace
<PROJECT_PATH>.cordis.patch.ymlships with a literal placeholder. Before installing, replace every<PROJECT_PATH>with the absolute path of this checkout on your machine (Windows form uses backslashes). The path must point at the folder that containsserver.py, and.venv\Scripts\python.exemust exist there (see the install step above).Example — if you cloned into
C:\Users\you\Desktop\dsh-desktop-mcp, the row becomes:command: 'C:\Users\you\Desktop\dsh-desktop-mcp\.venv\Scripts\python.exe' args: - 'C:\Users\you\Desktop\dsh-desktop-mcp\server.py' cwd: 'C:\Users\you\Desktop\dsh-desktop-mcp'Then install the folder itself (not a package on npm) through DSH's plugin manager — point it at the checkout directory.
The resulting patch row looks like this (placeholders shown unexpanded):
- insert:
- id: dsh-desktop-mcp
name: '@deepseek-ai/dsh-mcp-client'
config:
serverName: desktop
transport: stdio
command: '<PROJECT_PATH>\.venv\Scripts\python.exe'
args:
- '<PROJECT_PATH>\server.py'
cwd: '<PROJECT_PATH>'
failOnStartupError: true
toolCallTimeoutMs: 120000Use with any other MCP client
Add a stdio server entry, e.g. for a typical JSON config:
{
"mcpServers": {
"desktop": {
"command": "C:\\path\\to\\.venv\\Scripts\\python.exe",
"args": ["C:\\path\\to\\server.py"]
}
}
}Safety
This grants real control of your machine — mouse, keyboard, clipboard, files. Only enable it when you trust the agent/session.
pyautoguiFAILSAFE is on: slam the mouse into a screen corner to abort.Some DSH setups run a "read-only external MCP" allow-list. To use the control tools you may need to add their names (e.g.
screen_info,screenshot,mouse_*,type_text, ...) topermissions.mcpReadOnlyTools.
中文说明
一个用于 DeepSeek Harness(DSH) 及任意 MCP 客户端的 Windows 桌面控制 MCP 服务器:截图、鼠标、键盘、窗口、剪贴板,全部通过 stdio 接入。单文件 server.py、纯 Python,易于审计。
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
.\.venv\Scripts\python.exe server.py --selftest # 自测:打印屏幕信息、截一张图、统计窗口数作为 DSH bundle 安装时,记得把 cordis.patch.yml 里的 <PROJECT_PATH> 全部替换成本机检出的绝对路径。
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
Remote desktop MCP: let AI see, click, type and run terminal commands on your own Windows or Mac.
Connect ChatGPT, Claude, Cursor or VS Code to your Windows PC: files, terminal, browser, apps.
Let AI see and use your own Windows PC with your permission: screen, apps, mouse and keyboard.
Remote MCP server to control your Android phone from AI assistants with per-app permissions.
Related MCP Servers
- AlicenseAqualityAmaintenanceWindows desktop automation MCP server — screenshot, mouse, keyboard & UI Automation. Lets LLM agents see and control your Windows desktop directly.301,033 npm27MIT
- AlicenseNot gradedqualityDmaintenanceA standalone MCP server for Windows desktop control, enabling screenshots, mouse and keyboard input, app launch, window/display management, and clipboard access via natural language.5MIT
- FlicenseBqualityCmaintenanceA local, dependency-free MCP server that gives AI agents controlled access to the active Windows desktop, enabling automated interaction with applications through screenshots, clicks, typing, and window management.81-
- FlicenseNot gradedqualityBmaintenanceMCP server that lets an LLM see and drive any running Windows app: attach a window, screenshot it, read its UI Automation tree, and send clicks, typed text, and key presses with pixel coordinates.-