desktop-automation-mcp
Windows desktop automation MCP server supporting mouse, keyboard, screenshot, and image recognition, with native CJK text input via clipboard.
README
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.txt
For locate_on_screen (image recognition), also install OpenCV:
pip install opencv-python
Claude 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 |
|---|---|
screenshot |
Capture full screen or region |
click |
Click at (x, y), any mouse button |
double_click |
Double-click at (x, y) |
right_click |
Right-click at (x, y) |
move |
Smoothly move cursor to (x, y) |
drag |
Click-drag from A to B |
type_text |
Type text (clipboard for CJK, keystrokes for ASCII) |
press_key |
Press a single key (enter, tab, escape, f1-f12, etc.) |
hotkey |
Key combination (ctrl+c, alt+tab, win+r, etc.) |
scroll |
Scroll wheel up/down, optionally at a position |
get_position |
Get current cursor position |
get_screen_size |
Get screen dimensions |
locate_on_screen |
Find an image template on screen |
alert |
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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.