# mcp-mac-control [Health: Active]

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

## Description
Full macOS control — drive a Mac like a human: shell, AppleScript, files, and human-like GUI.

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

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

## Documentation

## What mcp-mac-control does

mcp-mac-control exposes macOS control through the Model Context Protocol. Its capabilities span desktop observation, GUI interaction, shell and AppleScript execution, file operations, application management, clipboard access, and process control.

The GUI tools are intended to work like a person operating a Mac. An agent can inspect a screenshot, determine the screen or window state, then move the pointer, click, drag, scroll, enter text, or send key combinations. Application tools can activate or quit apps and open paths or URLs. File and process tools cover reading and writing files, listing directories, viewing processes, and terminating processes.

## How it works

A typical interaction follows an observe-and-act cycle: take a screenshot, inspect the desktop state, perform an action, and capture another screenshot. The server also provides screen dimensions, window listings, the frontmost application, installed application information, system details, and clipboard contents for inspection.

Shell commands run through `run_command`; the command is not automatically wrapped in a shell unless one is explicitly requested. `run_applescript` accepts AppleScript or JXA for controlling scriptable applications. Mouse control relies on `cliclick`, while macOS privacy permissions govern screen capture, accessibility, and automation access.

## Setup and configuration

The package can be launched with:

```bash
npx -y @dockndevai/mcp-mac-control
```

It runs on macOS only. Install the mouse-control dependency with `brew install cliclick`. The host application may need Screen Recording permission for screenshots, Accessibility permission for GUI input and window listing, and Automation permission for AppleScript or application control.

Claude Code can register it with:

```bash
claude mcp add mac-control -- npx -y @dockndevai/mcp-mac-control
```

By default, the server starts in `admin` mode with command execution, deletion, and GUI input enabled. `MACCTL_SAFE_MODE=true` switches to read-only behavior with guarded operations requiring confirmation. Other controls can select `read-only`, `read-write`, or `admin` mode; allow or deny execution, deletion, and input; restrict file roots and executable names; protect paths from modification; enable dry-run behavior; and write JSON audit records to stderr.

An optional local `laya-guard` daemon can inspect commands, AppleScript, and deletion requests. In enforcement mode it can add confirmation requirements or block an operation, but it cannot expand the permissions granted by the deterministic policy.

## Tools and capabilities

The server provides 26 tools across these groups:

- Observation: screenshots, screen size, windows, frontmost app, applications, system information, directories, files, processes, and clipboard.
- GUI operation: pointer movement, left/right/double clicks, dragging, scrolling, text entry, key combinations, app activation, app quitting, opening paths, clipboard updates, notifications, and file writing.
- Privileged operation: command execution, AppleScript or JXA execution, moving paths to Trash, and killing processes.

## Limitations and notes

Full-control defaults make this suitable only for agents and content the operator trusts. Data displayed in web pages, emails, or files could contain instructions that cause the agent to execute commands or alter the Mac. Use safe mode, allowlists, protected paths, confirmation settings, or the optional guard when reducing this risk.

Some capabilities depend on macOS privacy approvals and the host application's permissions. Confirmation settings rely on MCP elicitation support; with human approval required, guarded actions are refused if the client cannot provide elicitation. The server is macOS-specific.

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

