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.
MACOS_SCREENSHOT_DIRDefault directory for screenshot files. Defaults to ~/Desktop when empty.
MACOS_DISPLAY_LAYOUTSJSON object mapping layout names to displayplacer argument strings for apply_layout.
MCP_LOG_LEVELMinimum log level for output: debug, info, notice, warning, error.
MCP_HTTP_HOSTThe hostname for the HTTP server.
MCP_HTTP_PORTThe port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATHThe endpoint path for the MCP server.
MCP_AUTH_MODEAuthentication mode: none, jwt, or oauth.
{
"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>"
}
}
}
}{
"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>"
}
}
}
}{
"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>"
}
}
}
}{
"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 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:stdioRelated MCP servers
Read, write, search, and surgically edit Obsidian vault notes, tags, and frontmatter via MCP.
io.github.cyanheads/git-mcp-server
Comprehensive Git MCP server with 28 tools for clone, commit, branching, merging, and advanced workflows.
Agent-native TypeScript framework for building MCP servers with declarative definitions.
TypeScript template for building MCP servers with declarative tooling, observability, and auth.
Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms.
Search ClinicalTrials.gov — find studies, retrieve results, match patients to eligible trials.