mac-control-mcp
Offers comprehensive macOS automation including window control, app lifecycle, input simulation, screen capture, OCR, clipboard, system settings, and accessibility tree access.
Provides browser automation for Safari: list and navigate tabs, execute JavaScript, and manage tab lifecycle.
Enables searching the macOS Spotlight index and launching results from the search.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mac-control-mcpTake a screenshot of the current window"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mac-control-mcp
Native Swift MCP server for full macOS automation. 63 tools in one signed .app bundle — no Python, no Node runtime, no Electron.
Gives any MCP-compatible client (Claude Desktop, Claude Code, Cursor, etc.) the ability to:
Read and mutate the Accessibility tree of any running app
Drive Safari and Chrome (tabs, navigation, JS eval)
Capture the screen, a display, or a specific window (ScreenCaptureKit)
OCR what's on screen
Click, type, scroll, drag, send key events
Control windows (move / resize / fullscreen / minimize / main)
Manage the clipboard
Launch / activate / quit apps
Search Spotlight's index (NSMetadataQuery) and launch results
Toggle dark mode, volume, list displays, inspect menus
Install
Requires macOS 14.0+. Three options, in order of simplicity:
1. One-click install (Claude Desktop, recommended)
The server is published as an MCP Bundle — a zip with a manifest.json that Claude Desktop reads directly:
Download mac-control-mcp-v0.2.6.mcpb from the release page.
Double-click the
.mcpbfile. Claude Desktop opens an install dialog.Click Install. The server is registered under the name
mac-control-mcpand available immediately in new chats.First tool call triggers the macOS TCC consent prompts (Screen Recording, Accessibility, Apple Events). Grant all three once — the bundle is Developer-ID signed and notarized, so grants persist across updates.
It's also listed on the official MCP Registry as io.github.AdelElo13/mac-control-mcp, so any MCP client that supports the registry will find it by searching for "mac-control".
2. Download the prebuilt app
If you don't use Claude Desktop or want manual control:
Extract and move
MacControlMCP.appto~/Applications/.Point your MCP client at the binary inside:
{
"mcpServers": {
"mac-control-mcp": {
"type": "stdio",
"command": "/Users/you/Applications/MacControlMCP.app/Contents/MacOS/MacControlMCP"
}
}
}Add that block to ~/Library/Application Support/Claude/claude_desktop_config.json (Claude Desktop) or ~/.claude.json → mcpServers (Claude Code).
Verify the download with the published SHA-256:
shasum -a 256 MacControlMCP-v0.2.6-macos-universal.tar.gz
# should match MacControlMCP-v0.2.6-macos-universal.sha256 on the release3. Build from source
For contributors or if you want to tweak the code. Requires Swift 6 / Xcode 16+:
git clone https://github.com/AdelElo13/mac-control-mcp.git
cd mac-control-mcp
./scripts/build-bundle.shProduces ~/Applications/MacControlMCP.app/Contents/MacOS/MacControlMCP. Without a Developer ID cert in your keychain it'll fall back to ad-hoc signing (works for local use, TCC grants reset on every rebuild).
To re-sign + re-notarise an existing Apple Developer account:
# one-time: store notary credentials in keychain
xcrun notarytool store-credentials "mac-control-mcp" \
--apple-id "you@example.com" --team-id "XXXXXXXXXX"
# subsequent builds:
NOTARIZE_PROFILE=mac-control-mcp ./scripts/build-bundle.shRelated MCP server: OpenAra
Tool surface
Category | Tools |
Permissions |
|
Accessibility |
|
App lifecycle |
|
Windows |
|
Input |
|
Menus |
|
Browser |
|
Screen |
|
Clipboard |
|
Spotlight |
|
System |
|
File dialogs |
|
Total: 63 tools.
Security model
Tools that write files (
capture_*,ocr_screen) validateoutput_pathvia a strict allow-list — only the user-scoped temp dir (NSTemporaryDirectory()) and~/Desktop,~/Documents,~/Downloads,~/Picturesare accepted. Symlinks at the target path are rejected to prevent redirection./tmpis deliberately excluded because it's shared across users and opens a TOCTOU window.AppleScript string interpolation for
browser_eval_jswraps user code in(0, eval)(…)viaJSON.stringify, so quotes/newlines/unicode can't break out of the wrapper.No network calls. Everything is local system integration.
Status (verified in the current release)
Scope | State |
Unit / integration test suite | 63 tests in 11 suites, all green locally and on CI (macos-15) |
Live tool probe | 43 of the 63 tools exercised end-to-end via real MCP stdio against the running binary, all pass |
Destructive tools (volume, dark mode, force_quit_app, drag_and_drop, file_dialog_*) | Verified live in a reversible way |
Code signing | Developer ID Application (A3W973JZ49) with hardened runtime |
Apple notarization | Accepted by Apple Notary Service, ticket stapled, |
Gatekeeper flow | Extracted + launched with the |
MCP Registry | Published as |
Architectures | Universal binary (arm64 + x86_64). Intel slice compiles cleanly but has not been runtime-verified on actual Intel hardware |
| Skipped — requires a 2+ display setup |
If you run into an untested path, please open an issue with the reproduction — happy to fix fast.
Caveats
Cross-origin iframes block
browser_eval_js— same-origin policy, not a limitation of the tool. Use AX coords or synthetic CGEvents for content inside embedded iframes from other origins.First-run TCC prompts are unavoidable. macOS requires the user to grant Screen Recording, Accessibility and Apple Events the first time. The usage-description strings in
Info.plistmake the consent dialogs show up with a clear reason, but you still need to click Allow in System Settings once.
Development
# Run the test suite (63 tests in 11 suites)
swift test
# Build without packaging
swift build -c release
# Live probe the running binary via MCP stdio
python3 scripts/mcp-sweep.py # if includedLicense
MIT — see LICENSE.
Contributing
Issues and pull requests welcome. Adversarial reviews especially — prior releases went through 11 rounds of external review before shipping.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AdelElo13/mac-control-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server