# macOS-MCP [Health: Active]

**Category:** 📂 Browser Automation  
**Repository:** https://github.com/Jeomon/macos-mcp  
**GitHub Stars:** 259  
**Views:** 20  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/macos-mcp

## Description
MCP server for macOS desktop automation via the Accessibility API.

## Tools
Capabilities this server exposes over MCP:

- **Click** — Click at coordinates with support for left, right, and double-click
- **Type** — Type text at cursor position, optionally clearing existing text
- **Scroll** — Scroll vertically or horizontally in focused window or regions
- **Move** — Move mouse pointer or drag to coordinates
- **Shortcut** — Press keyboard shortcuts (Cmd+C, Cmd+Tab, etc.)
- **App** — Launch applications, manage windows (resize/move), switch between apps. Supports app names and bundle IDs
- **Desktop** — Create a new Mission Control Space (virtual desktop) via Accessibility, verifying the space count increased
- **Shell** — Execute commands or AppleScript. Use `mode='osascript'` for AppleScript
- **Scrape** — Extract and convert webpage content to Markdown format
- **Wait** — Pause execution for a defined duration

## Claude Desktop Quick Installation
Install path inferred — verify against the README before running it. Uses `uvx` (confidence: medium):

```json
"mcpServers": {
  "macos-mcp": {
    "command": "uvx",
    "args": ["macos-mcp"]
  }
}
```

## Documentation

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

_Full upstream README: https://allmcps.com/mcp/macos-mcp/readme_

