Skip to main content

macOS Accessibility MCP Server — gives AI hands and eyes on macOS

Project description

macgic-mcp

macOS Accessibility MCP Server — gives AI "hands and eyes" on macOS.

An MCP server that exposes macOS Accessibility and Core Graphics APIs as tools, allowing AI systems (Claude, etc.) to fully control a Mac: clicking, typing, drawing, reading UI elements, launching apps, and taking screenshots.

Requirements

  • macOS
  • Python 3.13+
  • Accessibility permission granted to your terminal/IDE
  • Screen Recording permission (for screenshots)

Usage

Add to your MCP client config (e.g. Claude Code ~/.claude/mcp_servers.json or Claude Desktop):

{
  "mcpServers": {
    "macgic": {
      "command": "uvx",
      "args": ["macgic-mcp"],
      "type": "stdio"
    }
  }
}

Tools

Vision / Context

Tool Description
screenshot Capture full screen, specific display, or region as PNG
list_displays List connected displays with IDs, resolutions, positions
list_apps List running applications (name, bundle ID, PID)
get_ui_elements Read accessibility tree for an app (role, title, value, position, size)

Mouse Control

Tool Description
mouse_click Click at x,y (left/right, single/double)
mouse_move Move cursor to x,y
mouse_drag Drag between points with smooth interpolation (enables drawing!)
scroll Scroll at position (horizontal + vertical)

Keyboard Control

Tool Description
type_text Type a string of text character by character
key_press Press key combinations (e.g. cmd+c, cmd+shift+z, enter)

App Management

Tool Description
open_app Launch an app by name or bundle ID
activate_app Bring an app to the foreground

Permissions

Grant these in System Settings > Privacy & Security:

  1. Accessibility — required for mouse/keyboard control and reading UI elements
  2. Screen Recording — required for screenshots

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

macgic_mcp-0.1.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

macgic_mcp-0.1.0-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file macgic_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: macgic_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.5

File hashes

Hashes for macgic_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bf135a9bb9a9701ba760ce5330dc583dc53b5433bc524f94dd2296146903f89f
MD5 4d5446bb68c2fcb52b19d50439dece47
BLAKE2b-256 493cdfbeb51bd1656ba3f630793ad8ce22fe152eb4ca5b031d24194b3ea61fea

See more details on using hashes here.

File details

Details for the file macgic_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: macgic_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.5

File hashes

Hashes for macgic_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b41689c4a696a468b0b45ddd80e8a5d39891818ca667e5f5c463edead3b0e6c
MD5 19dfbef379e6f6f86775d1157e549f39
BLAKE2b-256 201f47b3a09f722579979230bf108fde39e4632161ef83e8a832e9110d20cfb6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page