MacOS MCP logo

MacOS MCP

Automates macOS apps, windows, input, desktops, shell commands, AppleScript, and webpage extraction through MCP.

Install MacOS MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "macos-mcp": {
      "command": "uvx",
      "args": [
        "macos-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio macos-mcp -- uvx macos-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx macos-mcp

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

macOS-MCP connects MCP-compatible agents to macOS through the Accessibility API, allowing them to control applications, windows, pointer input, keyboard shortcuts, and virtual desktops. Its tools also run shell commands or AppleScript, extract webpage content as Markdown, and pause between actions. It runs with Python 3.11+ on macOS 12 or later over stdio, SSE, or streamable HTTP. Reach for it when an agent needs to operate native macOS interfaces rather than only call web APIs.

Use cases

  • Automate native macOS applications
  • Switch, resize, and reposition application windows
  • Run shell commands or AppleScript from an agent
  • Create Mission Control virtual desktops
  • Convert webpage content into Markdown

Key features

  • Accessibility API desktop control
  • Mouse, keyboard, scrolling, and drag actions
  • Application and window management
  • Mission Control Space creation
  • Shell and AppleScript execution
  • stdio, SSE, and streamable HTTP transports

Tools10

What MacOS MCP lets your agent do. Expand a tool for its parameters.

Self-reported~177 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

34/38 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · macos-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars259Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed10Callable tools this server registers over MCP.
Directory activity20 viewsConfig copies, upvotes, and views on AllMCPs.

How MacOS MCP works

What macOS-MCP does

macOS-MCP gives MCP clients access to macOS desktop automation through the Accessibility API. Agents can launch applications, switch between them, move or resize windows, click at screen coordinates, type text, scroll, drag, and send keyboard shortcuts. Application operations accept either visible app names or bundle identifiers.

The server also supports creating a new Mission Control Space and checking that the desktop count increased. A shell tool can execute command-line commands or AppleScript, with AppleScript selected explicitly through its osascript mode. Webpage content can be extracted and converted to Markdown, and a wait operation can pause an automation sequence for a specified duration.

How it works

The default transport is stdio, which lets a local MCP client start the server directly. Network use is available through Server-Sent Events or streamable HTTP, with configurable host and port values. Streamable HTTP is useful when one persistent server should serve multiple local client sessions; Claude Desktop can reach such a server through the mcp-remote stdio-to-HTTP bridge.

macOS accessibility permissions are central to UI interaction. The terminal, Python runtime, or UV executable that launches the server may need approval in System Settings under Privacy & Security > Accessibility. The server can request consent when it starts, including for some UV-managed interpreter paths. Screen Recording permission is needed for screenshot capture functionality.

Setup and configuration

macOS-MCP requires macOS 12 or newer, Python 3.11 or newer, and UV. A direct stdio launch uses:

sh
uvx macos-mcp serve

For network access, select a transport and bind address, for example:

sh
uvx macos-mcp serve --transport streamable-http --host localhost --port 8000

The macos-mcp install command creates a launchd user agent that starts at login and can run with the selected transport. Its launch agent is stored under ~/Library/LaunchAgents, while server and error logs are written beneath ~/.macos-mcp. Run macos-mcp uninstall to remove the background service.

Claude Desktop can use the stdio command directly in its MCP configuration. Gemini CLI uses an equivalent uvx command in ~/.gemini/settings.json, and Claude Code can add the server through project configuration or its MCP marketplace integration. When binding an HTTP server beyond localhost, an authentication key can be configured and passed as a bearer token.

Tools and capabilities

  • Click: Performs left-click, right-click, or double-click actions at coordinates.
  • Type: Enters text at the current cursor location and can clear existing text first.
  • Scroll: Scrolls vertically or horizontally in a focused window or region.
  • Move: Moves the pointer or drags it to a destination.
  • Shortcut: Sends keyboard combinations such as Command-C or Command-Tab.
  • App: Launches apps, switches between them, and moves or resizes their windows.
  • Desktop: Creates a Mission Control Space and verifies the resulting space count.
  • Shell: Runs shell commands or AppleScript.
  • Scrape: Converts webpage content to Markdown.
  • Wait: Delays the workflow for a defined period.

Limitations and notes

UI automation depends on the macOS Accessibility permission state of the process that launches the server. Coordinates, focused windows, application state, and desktop layout can affect the result of pointer and keyboard actions. Screen capture requires a separate Screen Recording permission. The HTTP transports expose the server over a network address, so authentication should be used when binding beyond localhost.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MacOS MCP

macOS-MCP is an MCP server that connects AI agents to macOS through the Accessibility API. Its main tools control clicks, typing, scrolling, pointer movement, keyboard shortcuts, applications, windows, Mission Control Spaces, shell commands, AppleScript, webpage extraction, and timed waits.

Install UV and run `uvx macos-mcp serve` for a direct server process. macOS-MCP requires Python 3.11 or later and macOS 12 or later. To run it at login, use `macos-mcp install`; use `macos-mcp uninstall` to remove its launchd agent.

Yes, macOS-MCP can connect to Cursor through its default stdio transport. Configure Cursor to launch the server command, typically `uvx` with arguments for `macos-mcp serve`, and grant the launching terminal or Python process the required macOS Accessibility permission.

macOS-MCP needs Accessibility permission for UI interaction, granted to the terminal, Python runtime, or UV process that launches it. Screen Recording permission is also needed for screenshot capture. After changing these permissions, restart the relevant terminal or server process.

Yes, macOS-MCP supports both SSE and streamable HTTP transports. Start it with `--transport`, `--host`, and `--port`; use an authentication key when binding to a non-localhost address. Claude Desktop can connect through `mcp-remote` because its direct configuration uses stdio entries.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMacOS MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/macos-mcp?style=directory)](https://allmcps.com/mcp/macos-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/macos-mcp"><img src="https://allmcps.com/api/badge/macos-mcp?style=directory" alt="MacOS MCP on AllMCPs" /></a>