Native Swift macOS automation MCP β 63 tools: AX, browser, capture, OCR, Spotlight, windows.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
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:
Requires macOS 14.0+. Three options, in order of simplicity:
The server is published as an MCP Bundle β a zip with a manifest.json that Claude Desktop reads directly:
.mcpb file. Claude Desktop opens an install dialog.mac-control-mcp and available immediately in new chats.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".
If you don't use Claude Desktop or want manual control:
MacControlMCP.app to ~/Applications/.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:
For contributors or if you want to tweak the code. Requires Swift 6 / Xcode 16+:
Produces ~/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:
| Category | Tools |
|---|---|
| Permissions | permissions_status, request_permissions |
| Accessibility | find_element(s), query_elements, list_elements, get_ui_tree, get_element_attributes, set_element_attribute, read_value, perform_element_action, wait_for_element, scroll_to_element |
| App lifecycle | list_apps, launch_app, activate_app, quit_app, force_quit_app, wait_for_app, focused_app |
| Windows | list_windows, focus_window, move_window, resize_window, set_window_state, wait_for_window, move_window_to_display |
| Input | click, mouse_event, drag_and_drop, scroll, type_text, press_key, press_key_sequence, key_down, key_up, convert_coordinates |
| Menus | click_menu_path, list_menu_paths, list_menu_titles |
| Browser | browser_list_tabs, browser_get_active_tab, browser_navigate, browser_new_tab, browser_close_tab, browser_eval_js |
| Screen | capture_screen, capture_window, capture_display, ocr_screen |
| Clipboard | clipboard_read, clipboard_write, clipboard_clear |
| Spotlight | spotlight_search, spotlight_open_result |
| System | set_volume, set_dark_mode, list_displays |
| File dialogs | file_dialog_set_path, file_dialog_select_item, file_dialog_confirm, file_dialog_cancel, wait_for_file_dialog |
Total: 63 tools.
capture_*, ocr_screen) validate output_path via a strict allow-list β only the user-scoped temp dir (NSTemporaryDirectory()) and ~/Desktop, ~/Documents, ~/Downloads, ~/Pictures are accepted. Symlinks at the target path are rejected to prevent redirection. /tmp is deliberately excluded because it's shared across users and opens a TOCTOU window.browser_eval_js wraps user code in (0, eval)(β¦) via JSON.stringify, so quotes/newlines/unicode can't break out of the wrapper.| 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, spctl reports source=Notarized Developer ID |
| Gatekeeper flow | Extracted + launched with the com.apple.quarantine xattr set; no right-click-open needed |
| MCP Registry | Published as io.github.AdelElo13/mac-control-mcp v0.2.6 β distributed as an .mcpb bundle for one-click install |
| Architectures | Universal binary (arm64 + x86_64). Intel slice compiles cleanly but has not been runtime-verified on actual Intel hardware |
move_window_to_display | Skipped β requires a 2+ display setup |
If you run into an untested path, please open an issue with the reproduction β happy to fix fast.
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.Info.plist make the consent dialogs show up with a clear reason, but you still need to click Allow in System Settings once.MIT β see LICENSE.
Issues and pull requests welcome. Adversarial reviews especially β prior releases went through 11 rounds of external review before shipping.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mac-control-mcp)<a href="https://allmcps.com/mcp/mac-control-mcp"><img src="https://allmcps.com/api/badge/mac-control-mcp?style=directory" alt="Mac Control Mcp on AllMCPs" /></a>