mac-use
Enables control of the local macOS desktop, providing tools for screenshots, mouse movement and clicking, dragging, scrolling, typing text, and sending keyboard shortcuts with modifiers.
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., "@mac-use Take a screenshot of my screen and describe what you see."
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.
Mac Use
Local Mac desktop control for Grok and Cursor via a bundled stdio MCP server.
HID input matches Dottie: CGEvent posted on .cghidEventTap. Coordinates are screen points (main display, origin top-left). Screenshots are resized to that size, so image pixels and clicks share one space.
What it is
Surface | Use when |
Mac Use (this plugin) | Native Mac apps, Finder, system UI on the user Mac |
Browser Use | The task is primarily a website |
Remote Linux desktop | Work on a box desktop — not this plugin |
Prefer the smallest surface that fits.
Related MCP server: macinput
Install
Grok
grok plugin install /path/to/mac-use --trustOr add the folder under ~/.grok/plugins/ (auto-trusted) and enable it.
Cursor
mkdir -p ~/.cursor/plugins/local
ln -s /path/to/mac-use ~/.cursor/plugins/local/mac-use
cd ~/.cursor/plugins/local/mac-use && npm installThen Developer: Reload Window. Call mac_use_status.
First input/screenshot compiles server/helper.swift with swiftc (Xcode or CLT).
macOS permissions
Grant Accessibility and Screen Recording to:
mac-use-helper(built next to the Swift source)The host that launched the MCP server (Grok, Cursor, or Terminal)
mac_use_status requests the TCC prompt and opens the matching Settings pane when a grant is missing. After you flip the toggle, quit and reopen Grok.
Tools
Tool | Purpose |
| Platform, AX / Screen Recording, driver |
| Main display points (origin top-left) |
| PNG whose pixels match those points |
| Absolute |
| HID click at points (or current cursor) |
| Left-button drag in points |
| Unicode into the focused app (no clipboard) |
| Key + modifiers; destructive chords need |
| HID wheel at |
Always screenshot after acting. Confirm before destructive actions. Do not paste secrets from chat into type_text.
Agent loop
mac_use_statusscreenshot(orget_screen_size)One action in those points
Screenshot again
Dev
cd ~/Desktop/projects/mac-use
npm install
npm run build-helper
npm test
npm start # stdio MCPEntry:
server/index.jsDriver:
server/driver-impl.js→server/helper.swiftCursor:
.cursor-plugin/plugin.json+mcp.jsonGrok:
plugin.json+.mcp.jsonSkill:
skills/mac-use/SKILL.md
License
MIT / Steve Derico
Available Tools
9 toolsclickB
HID click at screen points (x, y), or at the current cursor if x/y omitted. Same coordinates as the screenshot.
Inputs: x, y, button, clicks.
get_screen_sizeA
Return main display width/height in screen points (origin top-left). Same space as screenshot and click.
Inputs: no named parameters.
keyB
Key event to the focused app. direction press (default), down, or up. Destructive chords (cmd+q, cmd+w, cmd+delete) require confirmed=true.
Inputs: key (required), confirmed, direction, modifiers.
mac_use_statusA
Report platform, Accessibility / Screen Recording, and Mac Use readiness.
Inputs: no named parameters.
mouse_dragA
Left-button HID drag from (fromX, fromY) to (toX, toY) in screen points.
Inputs: toX (required), toY (required), fromX (required), fromY (required).
mouse_moveA
Move the cursor. Absolute: x and y (global points, origin top-left). Relative: dx and/or dy. Returns position and display size.
Inputs: x, y, dx, dy.
screenshotA
Capture the main display as PNG. Image pixels match screen points — click those coordinates.
Inputs: no named parameters.
scrollB
HID scroll wheel at (x, y). dy>0 scrolls down. Optional dx.
Inputs: x (required), y (required), dy (required), dx.
type_textA
Type unicode into the focused app (HID). Click the field first. No clipboard. For shortcuts use key.
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 9 tools
Each tool serves a distinct purpose: status, screen info, capture, cursor movement, clicking, dragging, typing, key events, and scrolling. There is no overlap in function; even mouse_move and click are clearly separated by action type.
Most tools follow a verb_noun pattern like get_screen_size, mouse_move, type_text, but a few are single verbs (click, key, scroll) or nouns (screenshot, mac_use_status). All use consistent snake_case, so the minor deviations are acceptable.
Nine tools is a well-scoped set for GUI automation on macOS, covering the essential input and display actions without redundancy. The count is within the ideal 3-15 range and each tool earns its place.
The set provides comprehensive coverage of mouse, keyboard, screen capture, and status checking. Minor gaps include no explicit right-click or double-click, and no clipboard interaction (though type_text covers typing), but these are workable limitations.
Related MCP Connectors
Give your Grok Bot a phone: an MCP server to see and use your phone. Also works with Claude.
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
Hosted X (Twitter) MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server that allows AI tools like Claude Desktop, Claude Code, and Cursor to visually interact with macOS applications by capturing screenshots and controlling the mouse and keyboard.14-
- AlicenseNot gradedqualityDmaintenanceAn MCP server for macOS that enables AI agents to control the desktop GUI through keyboard input, mouse actions, and screen captures. It provides stable low-level primitives for UI automation and agent-driven desktop workflows.MIT
- AlicenseNot gradedqualityDmaintenanceStandalone MCP server that gives AI agents full GUI control over macOS — screenshots, mouse, keyboard, apps, clipboard, and multi-display — with zero private dependencies.20MIT
- 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