Macos MCP Server logo

Macos MCP Server

Control local macOS apps, windows, audio, displays, screenshots, Finder, system settings, and Focus through MCP.

Install Macos MCP Server

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": {
    "macos-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/macos-mcp-server"
      ]
    }
  }
}

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

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

macos-mcp-server exposes local macOS controls through MCP over stdio or Streamable HTTP. It can inspect system state and permissions, manage applications and windows, control volume and audio routing, change appearance, capture screenshots, work with Finder, and manage displays, notifications, system power, and Focus modes. Use it when an agent needs to automate an actively running Mac, with macOS permissions and selected command-line utilities configured as needed.

Use cases

  • Inspect the Mac’s live system state
  • Launch and arrange desktop applications
  • Switch audio devices and adjust output volume
  • Capture a display or application window
  • Manage Finder items and Focus modes

Key features

  • Application and window automation
  • Audio routing, volume, and mute control
  • Display inventory and named layout presets
  • PNG screenshots with optional JPEG previews
  • Finder, notification, and Focus controls
  • macOS permission diagnostics

Tools13

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

Verified live~5.2k 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 Today

Recent health check succeeded.

9/9 checks healthy over the last 50d

What it can do

From the 13 tools this server returned when we ran it; 13 declare their own safety hints.

Read-only tools · 13
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age155 days
Maintainers1

Observed 2026-10-27 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · @cyanheads/macos-mcp-server (npm)

Adoption & maintenance

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

GitHub stars4Stargazers on the source repository.
npm downloads1.3kPackage downloads in the last 30 days.
Last commit8d agoMost recent push to the default branch.
Tools exposed13Callable tools this server registers over MCP.

How Macos MCP Server works

What macos-mcp-server does

macos-mcp-server connects an MCP client to the local macOS system. Its tools cover system inspection, application lifecycle operations, window arrangement, audio output and device routing, appearance, notifications, display layouts, screenshots, Finder actions, screen locking, display sleep, and Focus mode.

The server reads live system information such as battery and charging state, power source, Wi-Fi association, hostname, macOS version, uptime, and connected display count. It can also report the macOS permissions relevant to its operations before an agent attempts an action.

How it works

The practical deployment model is local stdio: run the package on the Mac and configure an MCP client to launch it. Streamable HTTP is also supported. The host must be running macOS because the tools operate on the local machine.

Many operations use Apple automation or accessibility APIs. Window operations require Accessibility permission, window screenshots require Screen Recording permission, and several Finder operations require Automation permission for Finder. Permission checks are read-only and do not trigger prompts. Results report unavailable or unknown fields rather than filling failed probes with guessed values.

Some capabilities use external command-line tools. Audio device routing depends on SwitchAudioSource, while display inventory and named layout application depend on displayplacer.

Setup and configuration

Install the package through an MCP client using the npm package @cyanheads/macos-mcp-server, commonly with npx -y @cyanheads/macos-mcp-server. The project also identifies Bun 1.4 or newer as a supported runtime. Configure the client for stdio, or use the Streamable HTTP transport where appropriate.

Install optional command-line dependencies when using their related tools:

  • brew install switchaudio-osx for audio device listing and switching.
  • brew install displayplacer for display inventory and layout operations.

Set MACOS_SCREENSHOT_DIR to choose the default directory for screenshot PNG files. When unset, screenshots are written to the Desktop. Set MACOS_DISPLAY_LAYOUTS to a JSON object mapping layout names to displayplacer argument strings. Display changes accept only these named presets, not raw command arguments.

Grant macOS permissions to the process that runs the server. macos_check_permissions identifies the process name and reports Accessibility, Screen Recording, and Automation permissions when macOS can determine their state.

Tools and capabilities

  • Inspect battery, power, Wi-Fi, hostname, version, uptime, and displays with macos_get_info.
  • Check operation-related macOS permissions with macos_check_permissions.
  • Launch, activate, quit, force-quit, hide, show, and inspect running applications.
  • List, focus, move, resize, minimize, restore, fullscreen, and close windows.
  • Read or set output volume and mute state, and switch default input or output devices.
  • Read or change light and dark appearance, send notifications, lock the screen, or sleep the display.
  • Capture displays, app windows, or pixel regions as PNG files, with an optional JPEG preview.
  • Inspect displays and apply configured layouts.
  • Read Finder paths and selections, reveal or open paths, and move items to Trash.
  • Read or set Focus modes through a user-created Shortcuts shortcut named Set Focus.

Limitations and notes

The server is macOS-only. Force-quitting uses SIGKILL and does not provide an opportunity to save work. Setting volume to zero is not the same as explicitly muting. Window operations require Accessibility even for listing windows, while screenshots of windows require Screen Recording.

Finder trash operations are recoverable because items go to Trash rather than being permanently deleted. Focus changes require a Set Focus shortcut in the Shortcuts library, and its mode names must match the configured Focus names exactly. Focus state reads can return unknown when the state file cannot be read or parsed. Screenshot files are timestamped by default and are not replaced unless overwrite is enabled.

Reviews

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

Frequently Asked Questions about Macos MCP Server

macos-mcp-server is an MCP server that connects an MCP client to a local macOS system. Its main tools inspect system state and permissions, manage apps and windows, control audio and displays, capture screenshots, operate Finder, change appearance, send notifications, lock or sleep the Mac, and manage Focus modes.

Install it through an MCP client with `npx -y @cyanheads/macos-mcp-server`. Configure the client to launch the package over stdio, or use its Streamable HTTP transport. The host must be running macOS, and Bun 1.4 or newer is also identified as a supported runtime.

The required permission depends on the operation. Window management and some app actions need Accessibility, window screenshots need Screen Recording, and Finder path, selection, and Trash operations need Automation permission for Finder. Use `macos_check_permissions` to inspect these states without triggering prompts.

Install SwitchAudioSource with `brew install switchaudio-osx`, then use `macos_control_audio` to list devices, inspect defaults, or switch the default input or output. Device matching is case-insensitive and supports partial names; volume changes use the separate volume tool.

Set `MACOS_DISPLAY_LAYOUTS` to a JSON mapping of preset names to displayplacer arguments, and install displayplacer with Homebrew for display operations. Set `MACOS_SCREENSHOT_DIR` to change the default screenshot directory; otherwise new PNG files go to the Desktop.

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