PluginBench
MCP Server
Active
Apache-2.0

io.github.cyanheads/macos-mcp-server MCP Server

io.github.cyanheads/macos-mcp-server

What is the io.github.cyanheads/macos-mcp-server MCP server?

Control macOS system settings, apps, windows, audio, displays, screenshots, and Focus mode via MCP.

How to install io.github.cyanheads/macos-mcp-server

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • MACOS_SCREENSHOT_DIR

    Default directory for screenshot files. Defaults to ~/Desktop when empty.

  • MACOS_DISPLAY_LAYOUTS

    JSON object mapping layout names to displayplacer argument strings for apply_layout.

  • MCP_LOG_LEVEL

    Minimum log level for output: debug, info, notice, warning, error.

  • MCP_HTTP_HOST

    The hostname for the HTTP server.

  • MCP_HTTP_PORT

    The port to run the HTTP server on.

  • MCP_HTTP_ENDPOINT_PATH

    The endpoint path for the MCP server.

  • MCP_AUTH_MODE

    Authentication mode: none, jwt, or oauth.

Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "macos-mcp-server": {
      "command": "node",
      "args": [
        "-y",
        "@cyanheads/macos-mcp-server",
        "run",
        "start:stdio"
      ],
      "env": {
        "MACOS_SCREENSHOT_DIR": "<YOUR_MACOS_SCREENSHOT_DIR>",
        "MACOS_DISPLAY_LAYOUTS": "<YOUR_MACOS_DISPLAY_LAYOUTS>",
        "MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>",
        "MCP_HTTP_HOST": "<YOUR_MCP_HTTP_HOST>",
        "MCP_HTTP_PORT": "<YOUR_MCP_HTTP_PORT>",
        "MCP_HTTP_ENDPOINT_PATH": "<YOUR_MCP_HTTP_ENDPOINT_PATH>",
        "MCP_AUTH_MODE": "<YOUR_MCP_AUTH_MODE>"
      }
    }
  }
}
Cursor
~/.cursor/mcp.json
{
  "mcpServers": {
    "macos-mcp-server": {
      "command": "node",
      "args": [
        "-y",
        "@cyanheads/macos-mcp-server",
        "run",
        "start:stdio"
      ],
      "env": {
        "MACOS_SCREENSHOT_DIR": "<YOUR_MACOS_SCREENSHOT_DIR>",
        "MACOS_DISPLAY_LAYOUTS": "<YOUR_MACOS_DISPLAY_LAYOUTS>",
        "MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>",
        "MCP_HTTP_HOST": "<YOUR_MCP_HTTP_HOST>",
        "MCP_HTTP_PORT": "<YOUR_MCP_HTTP_PORT>",
        "MCP_HTTP_ENDPOINT_PATH": "<YOUR_MCP_HTTP_ENDPOINT_PATH>",
        "MCP_AUTH_MODE": "<YOUR_MCP_AUTH_MODE>"
      }
    }
  }
}
Windsurf
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "macos-mcp-server": {
      "command": "node",
      "args": [
        "-y",
        "@cyanheads/macos-mcp-server",
        "run",
        "start:stdio"
      ],
      "env": {
        "MACOS_SCREENSHOT_DIR": "<YOUR_MACOS_SCREENSHOT_DIR>",
        "MACOS_DISPLAY_LAYOUTS": "<YOUR_MACOS_DISPLAY_LAYOUTS>",
        "MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>",
        "MCP_HTTP_HOST": "<YOUR_MCP_HTTP_HOST>",
        "MCP_HTTP_PORT": "<YOUR_MCP_HTTP_PORT>",
        "MCP_HTTP_ENDPOINT_PATH": "<YOUR_MCP_HTTP_ENDPOINT_PATH>",
        "MCP_AUTH_MODE": "<YOUR_MCP_AUTH_MODE>"
      }
    }
  }
}
VS Code
.vscode/mcp.json
{
  "servers": {
    "macos-mcp-server": {
      "type": "stdio",
      "command": "node",
      "args": [
        "-y",
        "@cyanheads/macos-mcp-server",
        "run",
        "start:stdio"
      ],
      "env": {
        "MACOS_SCREENSHOT_DIR": "<YOUR_MACOS_SCREENSHOT_DIR>",
        "MACOS_DISPLAY_LAYOUTS": "<YOUR_MACOS_DISPLAY_LAYOUTS>",
        "MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>",
        "MCP_HTTP_HOST": "<YOUR_MCP_HTTP_HOST>",
        "MCP_HTTP_PORT": "<YOUR_MCP_HTTP_PORT>",
        "MCP_HTTP_ENDPOINT_PATH": "<YOUR_MCP_HTTP_ENDPOINT_PATH>",
        "MCP_AUTH_MODE": "<YOUR_MCP_AUTH_MODE>"
      }
    }
  }
}
Claude Code
claude mcp add macos-mcp-server --env MACOS_SCREENSHOT_DIR=<YOUR_MACOS_SCREENSHOT_DIR> --env MACOS_DISPLAY_LAYOUTS=<YOUR_MACOS_DISPLAY_LAYOUTS> --env MCP_LOG_LEVEL=<YOUR_MCP_LOG_LEVEL> --env MCP_HTTP_HOST=<YOUR_MCP_HTTP_HOST> --env MCP_HTTP_PORT=<YOUR_MCP_HTTP_PORT> --env MCP_HTTP_ENDPOINT_PATH=<YOUR_MCP_HTTP_ENDPOINT_PATH> --env MCP_AUTH_MODE=<YOUR_MCP_AUTH_MODE> -- node -y @cyanheads/macos-mcp-server run start:stdio

Related MCP servers

Read, write, search, and surgically edit Obsidian vault notes, tags, and frontmatter via MCP.

611
TypeScript
Apache-2.0
View repository →

Comprehensive Git MCP server with 28 tools for clone, commit, branching, merging, and advanced workflows.

226
TypeScript
Apache-2.0
View repository →

Agent-native TypeScript framework for building MCP servers with declarative definitions.

145
TypeScript
Apache-2.0
View repository →

TypeScript template for building MCP servers with declarative tooling, observability, and auth.

145
TypeScript
Apache-2.0
View repository →

Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms.

116
TypeScript
Apache-2.0
View repository →

Search ClinicalTrials.gov — find studies, retrieve results, match patients to eligible trials.

81
TypeScript
Apache-2.0
View repository →