# mcp-macos [Health: Active]

**Category:** 🖥️ OS Automation  
**Repository:** https://github.com/dockndevai/mcp-macos  
**GitHub Stars:** 0  
**npm Downloads (last month):** 185  
**Views:** 9  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-macos

## Description
Observe & operate a Mac — files, processes, apps, shell, AppleScript, GUI — safe by default.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mcp-macos": {
    "command": "npx",
    "args": ["-y","@dockndevai/mcp-macos"]
  }
}
```

## Documentation

## What mcp-macos does

mcp-macos exposes macOS observation and automation through the Model Context Protocol. Its read-only tools can report system information, browse and read allowlisted files, inspect processes, read the clipboard, list running applications, identify the frontmost app, and capture the screen as a PNG.

Changing the machine requires a higher operating mode. In read-write mode, an agent can create or overwrite files, update the clipboard, display notifications, and open files, URLs, or applications. Admin mode adds command execution, AppleScript or JXA execution, process termination, moving paths to the Trash, and GUI input such as typing, key presses, clicks, and mouse movement.

## How it works

The server communicates over MCP using a Node.js process launched with `npx`. It relies on built-in macOS command-line facilities, including `osascript` and `screencapture`, and does not use native add-ons. GUI clicking and mouse movement additionally depend on the `cliclick` utility.

Capability registration follows the selected `MACOS_MODE`: tools above the chosen mode are not exposed. File access can be narrowed to configured roots, while protected locations remain readable but cannot be changed. Command execution can be limited to an executable allowlist. Guarded actions produce JSON-line audit records on stderr, and dry-run mode validates and logs mutating requests without carrying them out.

High-impact actions use MCP elicitation for approval when supported. Commands, scripts, deletions, process kills, and file overwrites show the relevant arguments or target details before execution. Target version checks help prevent an approved deletion, kill, or overwrite from applying to a changed object. A prompt that receives no approval is refused.

## Setup and configuration

Run the package with:

```bash
npx -y @dockndevai/mcp-macos
```

The host must be macOS with Node.js 22 or newer. A minimal MCP client entry sets the command to `npx`, passes `-y @dockndevai/mcp-macos`, and can set `MACOS_MODE` to `read-only`, `read-write`, or `admin`. The default mode is read-only, so no environment variable is needed for the basic configuration.

Install `cliclick` with Homebrew before enabling `click` or `move_mouse`:

```bash
brew install cliclick
```

The host process or MCP client may need macOS Privacy & Security permissions. Screen Recording enables screenshots; Accessibility enables GUI input; Automation permits AppleScript and application control; and Files and Folders or Full Disk Access may be needed for locations outside the normal sandbox.

## Tools and capabilities

- `system_info` reports macOS version, hardware, memory, load, and uptime.
- `list_directory` and `read_file` inspect filesystem contents, subject to path controls.
- `list_processes`, `list_apps`, and `get_frontmost_app` inspect active system state.
- `get_clipboard` and `screenshot` read user-visible data.
- `write_file`, `set_clipboard`, `notify`, and `open` provide read-write operations.
- `run_command`, `run_applescript`, and `kill_process` are available only with admin mode and execution enabled.
- `delete_path` moves a path to the Trash when deletion is enabled.
- `type_text`, `key_press`, `click`, and `move_mouse` require admin mode and GUI input enabled.

## Limitations and notes

The server is macOS-only. Protected paths include system directories and common secret locations such as SSH, AWS, GnuPG, and Keychain data; these remain non-mutable. Deletion is implemented as moving an item to the Trash rather than permanent removal. Shell commands receive argv-style arguments without a shell, and command selection can be restricted with an allowlist. The `MACOS_REQUIRE_HUMAN_APPROVAL` setting can refuse guarded actions when the connected client cannot provide an elicitation prompt.

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

