mcp-control
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., "@mcp-control Open Safari and go to github.com"
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.
mcp-control
MCP server that gives Claude Code full mouse, keyboard, and app control on macOS. Tell Claude what to do and watch it operate your computer.
Pair with mcp-screen for vision + control.
Setup
Add to ~/.claude/settings.json:
{
"mcpServers": {
"control": {
"command": "npx",
"args": ["mcp-control"]
}
}
}Restart Claude Code. Done.
Related MCP server: computer-use-mcp
Usage
Just tell Claude what to do:
"Open Safari and go to github.com"
"Click the search box and type my query"
"Fill in this form - name is Andre, email is..."
"Switch to Slack and send a message"
"Scroll down on this page"
Tools
Mouse
Tool | Description |
| Move cursor to (x, y) |
| Click at (x, y) with left/right, single/double/triple |
| Drag from one point to another |
| Scroll up/down/left/right |
| Get current cursor coordinates |
Keyboard
Tool | Description |
| Type a string into the focused field |
| Press a key combo (e.g. cmd+c, tab, enter) |
App Control
Tool | Description |
| Get focused app name and bundle ID |
| Bring an app to the front |
| List all visible windows with positions and sizes |
Batch
Tool | Description |
| Execute a sequence of actions in one call - click, type, press keys, switch apps |
The run_actions tool is the key for speed. Instead of one tool call per action (each with Claude think time), it batches everything into a single round-trip.
How It Works
Uses macOS Core Graphics events via JXA (JavaScript for Automation) and AppleScript. Zero external dependencies - just built-in macOS tools.
Mouse control: CGEvent API (sub-millisecond)
Keyboard: AppleScript keystroke (handles Unicode)
Key combos: CGEvent with modifier flags
App control: AppleScript
Permissions
Your terminal needs Accessibility permission:
System Settings > Privacy & Security > Accessibility - enable your terminal app.
Requirements
macOS
Node.js >= 18
Author
License
MIT
Available Tools
11 toolsfocus_appB
Bring an application to the front by name.
Inputs: name (required).
get_cursor_positionB
Get the current mouse cursor position on screen.
Inputs: no named parameters.
get_frontmost_appA
Get the name and bundle ID of the currently focused application.
Inputs: no named parameters.
list_windowsA
List all visible windows with their app, title, position, and size.
Inputs: no named parameters.
mouse_clickB
Click the mouse at screen coordinates (x, y). Supports left/right click and multi-click (double, triple).
Inputs: x (required), y (required), button, clicks.
mouse_dragC
Click and drag from one point to another.
Inputs: endX (required), endY (required), startX (required), startY (required).
mouse_moveB
Move the mouse cursor to screen coordinates (x, y).
Inputs: x (required), y (required).
mouse_scrollC
Scroll the mouse wheel in a direction.
Inputs: amount, direction.
press_keyB
Press a key or key combination. Use for shortcuts (cmd+c), navigation (tab, enter, escape, arrows), or function keys.
Inputs: key (required), modifiers.
run_actionsA
Run a sequence of actions in rapid succession. Use this for multi-step interactions like: click a field, type text, press tab, type more. Much faster than individual tool calls since all actions execute in one round-trip.
Inputs: actions (required).
type_textB
Type text as if using the keyboard. Works with any focused input field.
Inputs: text (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool maps to a distinct desktop-control action: pointer movement, clicking, dragging, scrolling, typing, key presses, app/window introspection, focus, or batched execution. The only meta-tool, run_actions, is clearly described as a batch alternative to individual calls rather than an overlapping primitive.
All names use snake_case, and the mouse_* group is internally consistent while the remaining tools mostly follow verb_noun patterns like get_cursor_position and press_key. The mixed resource-first vs action-first style is a minor deviation, not a readability problem.
Eleven tools is well-scoped for a desktop-control server. Each tool covers a meaningful primitive, and the batch run_actions tool is a useful efficiency addition rather than unnecessary surface area.
Core desktop interactions are covered: mouse movement, clicking, dragging, scrolling, typing, key presses, app focus, cursor position, window listing, and batch actions. Minor gaps remain around screen capture/vision and direct window manipulation, but agents can still accomplish the main control workflows.
Related MCP Connectors
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
Give your Grok Bot a phone: an MCP server to see and use your phone. Also works with Claude.
Remote desktop MCP: let AI see, click, type and run terminal commands on your own Windows or Mac.
Hosted X (Twitter) MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceAn MCP server that lets Claude Desktop and Claude Code control your PC — take screenshots, click, type, manage windows, and more.MIT
- AlicenseNot gradedqualityBmaintenanceMCP server that enables Claude to control your computer, similar to Anthropic's computer use but easy to set up locally.2,669 npm411MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that lets Claude operate your real computer by moving the actual mouse, clicking, typing, and reading the actual screen, working with your own logged-in sessions in any application.44 PyPI1MIT
- AlicenseNot gradedqualityBmaintenanceMCP server for AI agents to control a Mac via screen and mouse/keyboard, supporting Anthropic Claude and OpenAI for task automation.236 npmApache 2.0