desktop-automation-mcp
desktop-automation-mcp
Windows desktop automation MCP server — screenshot, mouse, keyboard, and image recognition. Built for Claude Code and other MCP clients.
14 tools · Python 3.10+ · FastMCP · stdio transport
Features
🖱️ Mouse — click, double-click, right-click, move (smooth), drag
⌨️ Keyboard — type text, press single keys, key combinations (hotkeys)
📸 Screenshot — full screen or region capture
🔍 Image recognition — locate UI elements on screen by image template
🌐 CJK text input — Chinese/Japanese/Korean via clipboard paste
📏 Screen info — cursor position, screen resolution
⚠️ Alert — pop up desktop notification dialogs
Why this one?
Most desktop automation MCP servers are built by English-speaking developers and struggle with CJK text input. This server:
Native CJK support — non-ASCII text automatically routes through clipboard paste
Minimal & readable — 172 lines of Python, no black magic
FastMCP stdio — latest MCP protocol, clean and reliable
Install
git clone https://github.com/Lianne0106/desktop-automation-mcp.git
cd desktop-automation-mcp
pip install -r requirements.txtFor locate_on_screen (image recognition), also install OpenCV:
pip install opencv-pythonClaude Code setup
Add to ~/.claude/mcp.json:
{
"mcpServers": {
"desktop-automation": {
"command": "python",
"args": ["PATH\\TO\\desktop-automation-mcp\\server.py"],
"env": {
"PYTHONIOENCODING": "utf-8"
}
}
}
}Restart Claude Code, then try:
> 截个屏看看
> 鼠标移到屏幕中央
> 帮我输入这段中文Tools
Tool | Description |
| Capture full screen or region |
| Click at (x, y), any mouse button |
| Double-click at (x, y) |
| Right-click at (x, y) |
| Smoothly move cursor to (x, y) |
| Click-drag from A to B |
| Type text (clipboard for CJK, keystrokes for ASCII) |
| Press a single key (enter, tab, escape, f1-f12, etc.) |
| Key combination (ctrl+c, alt+tab, win+r, etc.) |
| Scroll wheel up/down, optionally at a position |
| Get current cursor position |
| Get screen dimensions |
| Find an image template on screen |
| Show a popup alert dialog |
Failsafe
Move mouse to the top-left corner to abort any running action (PyAutoGUI FAILSAFE).
Similar projects
windows-computer-use-mcp — 22 tools, UI Automation, OCR, autonomous agent
WindowsOSMCP — DPI-aware, multi-monitor, UIA element targeting
pc-control-mcp — 30+ tools, Playwright browser, notes, clipboard
License
MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Lianne0106/desktop-automation-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server