Skip to main content
Glama

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 --trust

Or 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 install

Then 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:

  1. mac-use-helper (built next to the Swift source)

  2. 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

mac_use_status

Platform, AX / Screen Recording, driver

get_screen_size

Main display points (origin top-left)

screenshot

PNG whose pixels match those points

mouse_move

Absolute x,y or relative dx,dy

click

HID click at points (or current cursor)

mouse_drag

Left-button drag in points

type_text

Unicode into the focused app (no clipboard)

key

Key + modifiers; destructive chords need confirmed

scroll

HID wheel at (x, y) by dy

Always screenshot after acting. Confirm before destructive actions. Do not paste secrets from chat into type_text.


Agent loop

  1. mac_use_status

  2. screenshot (or get_screen_size)

  3. One action in those points

  4. Screenshot again


Dev

cd ~/Desktop/projects/mac-use
npm install
npm run build-helper
npm test
npm start   # stdio MCP
  • Entry: server/index.js

  • Driver: server/driver-impl.js → server/helper.swift

  • Cursor: .cursor-plugin/plugin.json + mcp.json

  • Grok: plugin.json + .mcp.json

  • Skill: skills/mac-use/SKILL.md


License

MIT / Steve Derico

Available Tools

9 tools
clickB

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

    A3.9/5.0

    Scored across 9 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An 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
    • A
      license
      Not graded
      quality
      D
      maintenance
      Standalone MCP server that gives AI agents full GUI control over macOS — screenshots, mouse, keyboard, apps, clipboard, and multi-display — with zero private dependencies.
      20
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server for AI agents to control a Mac via screen and mouse/keyboard, supporting Anthropic Claude and OpenAI for task automation.
      236 npm
      Apache 2.0