MCP Mac Control logo

MCP Mac Control

Controls macOS through shell, AppleScript, file, process, and GUI tools with screenshot-based interaction.

Install MCP Mac Control

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

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-mac-control": {
      "command": "npx",
      "args": [
        "-y",
        "@dockndevai/mcp-mac-control"
      ]
    }
  }
}

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

We couldn’t confirm it starts correctly

The install command didn't complete successfully in our automated test.

npx -y @dockndevai/mcp-mac-control

Unsupported platform for @dockndevai/mcp-mac-control@0.3.1: wanted {"os":"darwin"} (current: {"os":"linux"}) npm error notsup Valid os: darwin npm error notsup Actual os: linux npm notice npm notice New major version of npm available! 10.9.9 -> 12.2.2 npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.2.2 npm notice To update run: npm install -g npm@12.2.2 npm notice npm error A complete log of this run can be found in: /home/user/.npm/_logs/2026-11-12T15_19_19_337Z-debug-0.log

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

mcp-mac-control gives an AI agent broad control of a macOS desktop through shell commands, AppleScript, filesystem and process operations, and human-like GUI input. It supports a perception loop using screenshots, window information, and screen dimensions before actions such as clicking, dragging, typing, or scrolling. The server runs with full control enabled by default, but environment settings can restrict access, require approval, limit paths and commands, or enable dry runs. Use it for trusted agents that need to operate Mac applications or automate tasks across the desktop.

Use cases

  • Automate desktop applications with mouse, keyboard, and AppleScript actions
  • Inspect screenshots and windows before interacting with a Mac GUI
  • Run approved commands and manage local files or processes
  • Restrict agent actions with path, command, confirmation, and dry-run policies

Key features

  • Screenshot and window-based desktop perception
  • Mouse, keyboard, drag, scroll, and application controls
  • Shell command and AppleScript/JXA execution
  • File, clipboard, and process operations
  • Configurable permissions, allowlists, confirmations, and audit logging
  • Optional laya-guard risk checks

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.

19/19 checks healthy over the last 62d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · @dockndevai/mcp-mac-control (npm)

Adoption & maintenance

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

npm downloads393Package downloads in the last 30 days.
Last commit6d agoMost recent push to the default branch.
Install checkInconclusiveInstall command did not finish in our automated test.
Directory activity15 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Mac Control works

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:

Terminal
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:

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

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 MCP Mac Control

mcp-mac-control is an MCP server that connects an AI agent to macOS and exposes tools for shell commands, AppleScript, file and process operations, and GUI control. It supports screenshots, mouse and keyboard input, app activation, clipboard access, and window inspection, allowing agents to observe and operate a Mac desktop.

Install it with `npx -y @dockndevai/mcp-mac-control`. The server runs on macOS, requires `cliclick` for mouse control, and may need Screen Recording, Accessibility, and Automation permissions from the host application.

Yes, mcp-mac-control includes Cursor configuration guidance. Register the server using the client’s MCP settings and launch it with `npx -y @dockndevai/mcp-mac-control`.

Set `MACCTL_SAFE_MODE=true` when launching the server. Safe mode makes operation read-only by default, gates power tools, and enables confirmation behavior for guarded actions.

It needs Screen Recording for screenshots, Accessibility for GUI input and window listing, and Automation for AppleScript or application control. Permissions are granted to the host application when each capability is first used.

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 PreviewMCP Mac Control AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-mac-control?style=directory)](https://allmcps.com/mcp/mcp-mac-control)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-mac-control"><img src="https://allmcps.com/api/badge/mcp-mac-control?style=directory" alt="MCP Mac Control on AllMCPs" /></a>