macos-mcp
Enables sending iMessage/Messages through the macOS Messages app using AppleScript/JXA knowledge-base scripts.
Automates macOS applications and system functions via AppleScript/JXA, including screenshots, clipboard, notifications, volume/brightness controls, dark mode, app control, and UI accessibility.
Controls and inspects Safari through AppleScript/JXA and Accessibility APIs, enabling browser automation and UI interaction.
Controls Spotify playback and related actions via AppleScript/JXA knowledge-base scripts.
Automates Xcode and iOS Simulator workflows through AppleScript/JXA knowledge-base scripts.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
macos-mcp
Python MCP server for macOS automation via AppleScript and JXA — 498-script knowledge base.
Works with any MCP client: Claude Desktop, OpenClaw, Cursor, Hermes Agent, and more.
Features
8 tools covering all macOS automation needs
498-script knowledge base — system, browsers, terminal, editors, messaging, creative apps, Xcode/iOS Simulator, and more
AppleScript & JXA — run inline scripts, execute script files, or look up pre-built scripts by ID
Placeholder substitution —
--MCP_INPUT:keyand--MCP_ARG_Npatterns for dynamic inputsAccessibility control — inspect and interact with any UI element in any app
Pydantic v2 schemas — fully typed, validated parameters with rich descriptions for LLMs
Zero extra dependencies — only
mcpandpydantic; everything else is stdlib
Related MCP server: Automation MCP
Tools
macos_run_script
Run an AppleScript or JXA script inline, from a file path, or from the 498-script knowledge base. Controls any scriptable macOS app: Safari, Messages, Mail, Finder, Calendar, Terminal, Xcode, Spotify, and more.
Parameters:
script_content— inline AppleScript or JXA source codescript_path— absolute path to a.applescriptor.jxafilekb_script_id— ID from the 498-script knowledge base (e.g.messages_send_message)language—applescript(default) orjavascript(JXA)input_data— key/value pairs substituted into--MCP_INPUT:keyplaceholdersarguments— positional args substituted into--MCP_ARG_1,--MCP_ARG_2, …timeout_seconds— max wait time (default 60, max 3600)output_format_mode—auto,human_readable,structured_error,structured_output_and_error,directinclude_executed_script_in_output— append the final script text to the responseinclude_substitution_logs— log every placeholder substitution performedreport_execution_time— include script execution duration in response
macos_scripting_tips
Fuzzy-search the 498-script AppleScript/JXA knowledge base by keyword or category, or list all categories. Use this to discover script IDs before calling macos_run_script with kb_script_id.
Parameters:
search_term— natural language search (e.g."send imessage","battery level")category— filter by slug:browsers,productivity,developer,system,terminal,editors,creative,files,advanced,as_core,jxa_core,networklist_categories— if true, return only category list with script countslimit— max results (default 10, max 100)refresh_database— force reload of knowledge base from disk
macos_screenshot
Take a full-screen screenshot and return it as a base64-encoded PNG image.
Requires Screen Recording permission in System Settings → Privacy & Security.
macos_open
Open a macOS application, file, or URL using the system open command.
Parameters:
target— app name ("Safari"), absolute file path ("/Users/me/doc.pdf"), or URL ("https://github.com")
macos_clipboard
Read from or write to the macOS system clipboard (pasteboard).
Parameters:
action—readreturns current clipboard text;writereplaces ittext— text to write (required whenactioniswrite)
macos_notify
Send a macOS system notification that appears in Notification Center and as a banner.
Parameters:
title— bold heading of the notificationmessage— body textsubtitle— optional subtitle shown between title and message
macos_system
Control macOS system settings and perform system-level actions.
Actions (action parameter):
Action | Description |
|
| Return current output volume (0–100) | — |
| Set output volume |
|
| Set display brightness |
|
| Toggle dark / light appearance | — |
| Turn off the display immediately | — |
| Lock the session | — |
| Return names of all visible running apps | — |
| Gracefully quit an app | app name |
| Speak text aloud via TTS | text to speak |
| Enable Do Not Disturb / Focus | — |
| Disable Do Not Disturb / Focus | — |
macos_accessibility_query
Inspect or interact with any UI element in any macOS application using the Accessibility framework. Use command="query" to read UI state and command="perform" to click buttons or trigger actions.
Requires the
axbinary and Accessibility permission in System Settings → Privacy & Security.
Parameters:
command—query(read elements) orperform(trigger action)locator— target element spec:app— app name or bundle ID (e.g."Safari")role— AX role (e.g."AXButton","AXTextField","AXWebArea")match— attribute filters (e.g.{"AXTitle": "Submit"})navigation_path_hint— path to narrow search (e.g.["window[1]", "toolbar[1]"])
return_all_matches— return all matching elements (default: first only)attributes_to_query— specific AX attributes to include (e.g.["AXValue", "AXTitle"])required_action_name— filter to elements supporting this action (e.g."AXPress")action_to_perform— action to execute whencommand="perform"(e.g."AXPress","AXFocus")output_format—smart(default),verbose, ortext_contentlimit— max output lines (default 500)max_elements— max elements to process (default 200)debug_logging— include debug output from the ax binaryreport_execution_time— include query duration in response
Installation
pip install macos-mcp
# or with uv:
uv add macos-mcpConfiguration
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"macos": {
"command": "uv",
"args": ["run", "--project", "/path/to/macos-mcp", "macos-mcp"]
}
}
}Or if installed via pip:
{
"mcpServers": {
"macos": {
"command": "python",
"args": ["-m", "macos_automator_mcp"]
}
}
}OpenClaw / Hermes Agent / Cursor
Same config format — replace the client config path as needed.
macOS Permissions
Grant these in System Settings → Privacy & Security:
Permission | Required for |
Automation | All AppleScript/JXA tools — macOS auto-prompts on first use per target app |
Screen Recording |
|
Accessibility |
|
Grant permissions to the application that launches the MCP server (Terminal, Claude Desktop, etc.).
Usage Examples
Run inline AppleScript
macos_run_script(script_content='tell application "Finder" to open home')Use a pre-built script with dynamic input
macos_run_script(
kb_script_id='messages_send_message',
input_data={'recipient': 'Mom', 'message': 'I will be late'}
)Execute a script file
macos_run_script(script_path='/Users/me/scripts/cleanup.applescript')Search the knowledge base
macos_scripting_tips(search_term='send imessage', limit=5)
macos_scripting_tips(category='safari', limit=10)
macos_scripting_tips(list_categories=True)Screenshot
macos_screenshot() # returns base64 PNGSystem controls
macos_system(action='volume_set', value='50')
macos_system(action='dark_mode_toggle')
macos_system(action='say', value='Hello from your AI agent')
macos_system(action='list_apps')Accessibility — read a UI element
macos_accessibility_query(
command='query',
locator={'app': 'Safari', 'role': 'AXTextField', 'match': {'AXFocused': 'true'}}
)Accessibility — click a button
macos_accessibility_query(
command='perform',
locator={'app': 'Safari', 'role': 'AXButton', 'match': {'AXTitle': 'Go'}},
action_to_perform='AXPress'
)Development
make install # install deps + pre-commit hooks
make lint # ruff check + format
make typecheck # pyright + mypy
make test # pytest
make run # start MCP serverLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP connector that lets ChatGPT list, search, and run your Apple Shortcuts via a local Mac agent
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.
EXZA Remote — AI Computer Commander Your computer. Your control. Securely connect your own macOS, Windows or Linux computer to compatible AI clients, including ChatGPT and Claude. EXZA Remote provides 59 MCP tools for authorized file management, terminal operations, system monitoring, desktop automation and email workflows. GETTING STARTED 1. Create an EXZA Remote account. 2. Install the official computer connection client. 3. Pair your device using a temporary six-digit PIN. 4. Approve the connection on your computer. 5. Connect your preferred MCP client using EXZA OAuth. MCP ENDPOINT https://remote.exza.de/mcp TRANSPORT Streamable HTTP with OAuth 2.0 KEY FEATURES • 59 MCP tool interfaces • Secure computer and file access • Terminal commands and background jobs • File search, reading and editing • System monitoring and desktop automation • macOS, Windows and Linux support • Owner-controlled permissions and approvals COMPLETE INSTALLATION & DOCUMENTATION Detailed setup instructions, terminal installation commands, all 59 tools, troubleshooting and security information: https://github.com/exzade/EXZA-Remote/blob/main/docs/GLAMA_OVERVIEW.md Official website: https://remote.exza.de EXZA Remote is an independent, OAuth-protected service. Computer access requires individual account authorization and device-owner approval.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables AI assistants to automate macOS through AppleScript and JXA by providing 44 tools for application management, window control, and UI interaction. It allows for comprehensive system control including screen capture, keyboard and mouse simulation, and system information retrieval.441MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to automate macOS desktop tasks including mouse control, keyboard input, screenshots, window management, and UI interaction.418MIT
- FlicenseBqualityDmaintenanceEnables macOS automation through 45 AppleScript-powered tools for system control, app management, calendar, reminders, notifications, clipboard, and task scheduling.45-
- AlicenseBqualityCmaintenanceA macOS automation MCP server providing 40+ tools for controlling Messages, Contacts, Notes, Reminders, Calendar, Files, Clipboard, Windows, Safari, Chrome, screenshots, and system settings via natural language.91181Apache 2.0