Desktop Controller
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Desktop Controllercapture my screen with the grid, then click the Chrome address bar"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Desktop Controller š„ļø
A native Windows Computer-Use & Desktop Automation tool for AI Agents (Antigravity, Claude, ChatGPT, Cursor, etc.).
Unlike traditional tutoring overlays that only point at the screen, Desktop Controller gives the AI agent full interactive capabilities to control Windows directly via the Model Context Protocol (MCP) or CLI.
š Key Features
Pixel-Perfect Multi-Monitor Capture:
High-performance capture using
mss.Native Windows DPI Awareness (
user32.SetProcessDPIAware) preventing coordinate drift on 125%, 150%, or 200% displays.Background Desktop Station attachment (
OpenInputDesktop&SetThreadDesktop) ensuring screenshots never fail from subshells or background workers.
Coordinate Grid Superimposition (
--grid):Superimposes labeled 12Ć8 grid cells (e.g.,
A1,C4,L8) with their exact center pixel coordinates(X, Y)directly onto the screenshot.Allows vision models to accurately select buttons, input fields, and menus without coordinate guessing.
Full Input Automation:
Mouse: Single click, double click, right click, smooth move, drag & drop, and wheel scroll.
Keyboard: Plain text typing, individual key presses (
Enter,Tab,Esc), and hotkey combinations (Ctrl+C,Win+R,Alt+Tab).Window Management: Active window detection (HWND, PID, bounds), open window listing, and automatic window focusing by title substring.
Safety Failsafe:
Built-in
PyAutoGUIfailsafe: slam the mouse cursor into any corner of the screen (e.g.0, 0) to instantly abort runaway mouse actions.
Related MCP server: pov
š Project Structure
desktop-controller/
āāā capture.py # DPI-aware screen capture + coordinate grid overlay
āāā input_controller.py # Mouse, keyboard, and window management
āāā server.py # FastMCP stdio server exposing agent tools
āāā cli.py # Command-line testing tool
āāā screenshots/ # Auto-saved captures
āāā README.mdš ļø CLI Quick Test
You can test any action directly via terminal:
# 1. Capture screen with coordinate grid
python cli.py screenshot --grid
# 2. Get current desktop state (cursor position, screen size, active window)
python cli.py state
# 3. Move mouse to (500, 500)
python cli.py move 500 500
# 4. Click at (500, 500)
python cli.py click 500 500
# 5. Type text
python cli.py type "Hello from AI Agent"
# 6. Press hotkey (e.g. Win + R)
python cli.py hotkey win r
# 7. Focus a window by title
python cli.py focus "chrome"š Antigravity / MCP Integration
Add this entry to your mcp_config.json (~/.gemini/config/mcp_config.json):
"desktop-controller": {
"command": "python",
"args": [
"C:\\path\\to\\desktop-controller\\server.py"
],
"disabled": false
}Available Tools for AI Agent:
desktop_screenshot(with_grid, monitor_index): Captures screen and returns file path + dimensions.desktop_click(x, y, button, clicks): Clicks coordinates.desktop_double_click(x, y): Double clicks coordinates.desktop_right_click(x, y): Right clicks coordinates.desktop_move(x, y): Moves mouse cursor.desktop_drag(start_x, start_y, end_x, end_y): Drags mouse from A to B.desktop_scroll(clicks, x, y): Scrolls mouse wheel.desktop_type(text): Types text string.desktop_press_key(key): Presses a single key.desktop_hotkey(keys): Presses hotkey combination.desktop_get_state(): Returns cursor position, screen dimensions, and active window.desktop_focus_window(title_query): Brings matching window to foreground.
This server cannot be deployed
Maintenance
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
- mcpOAuthcom.screenshotink
Screenshot, diff, audit and sitemap-capture any web page ā 5 MCP tools for AI agents.
Protocol-native energy infrastructure orchestration for AI data centers. Provides 46 MCP tools across 8 grid protocols (IEC-61850, DNP3, Modbus, OCPP, OpenADR, IEEE 2030.5, IEC 60870-5-104, ICCP) with 5 core API primitives: connect, dispatch, settle, comply, and intel. Enables AI agents to programmatically interact with substations, grid interfaces, and energy assets for real-time workload-grid coordination.
Hyperion ā MCP tool marketplace for AI agents: web, OSINT, security, research via one key.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables comprehensive Windows desktop automation including screen capture, OCR text extraction, mouse/keyboard control, window management, process control, and clipboard operations through 25+ tools for AI agents.32 PyPI4MIT
- AlicenseAqualityDmaintenanceEnables LLM agents to capture screenshots, control mouse/keyboard, and manage windows on desktop platforms, primarily Windows, via an MCP server.161MIT
- AlicenseAqualityAmaintenanceAllows 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.30286 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables Windows desktop automation via MCP, allowing AI agents to control mouse, keyboard, and screen capture with the same interface as Anthropic's computer-use tool.4MIT