Execute AppleScript from Claude to control any macOS app — Notes, Calendar, Finder, Messages, and more.
applescript-mcp gives Claude the ability to run arbitrary AppleScript on macOS, providing programmatic control over system apps and services. It can create calendar events, manage notes, search files via Spotlight, take screenshots, control media playback, and run shell commands. Available in Python and Node.js, with Docker support for remote execution via SSH.
Create calendar reminders for upcoming GitHub PR review deadlines
Check my open PR review requests on GitHub and create calendar reminders for any that are overdue.✓ Copied
Tools
What this MCP exposes
Tool
Inputs
When to call
Cost
run_applescript
script: str
Execute any AppleScript command on the connected Mac
0
Cost & Limits
What this costs to run
API quota
No external API — runs locally on macOS
Tokens per call
200–1000 tokens per script execution
Monetary
Free
Tip
Keep scripts focused on one task per call to minimize token usage from large outputs.
Security
Permissions, secrets, blast radius
Credential storage: SSH credentials needed for remote execution — store in env vars, not in config files
Data egress: All execution is local to the Mac. No external network calls unless your script makes them.
WARNING: This MCP grants full system control via AppleScript. It can read/write files, send messages, execute shell commands, and control any application. Only use with trusted prompts and review scripts before execution.
Never run this on a production machine or with access to sensitive data you wouldn't want an AI to process.
SSH remote execution exposes the target Mac to any command the AI generates. Use strong credentials and restrict network access.
Troubleshooting
Common errors and fixes
AppleScript execution failed — not authorized
Grant Terminal (or your MCP host) access in System Settings → Privacy & Security → Automation and Accessibility.
Verify: osascript -e 'tell application "Finder" to get name of every disk'
SSH connection refused
Enable Remote Login in System Settings → Sharing. Verify SSH credentials are correct.
Verify: ssh your-user@localhost 'echo ok'
Application not responding to AppleScript
Some apps have limited or no AppleScript support. Check the app's AppleScript dictionary in Script Editor.
Verify: Open Script Editor → File → Open Dictionary → select the app
Alternatives
applescript-mcp vs others
Alternative
When to use it instead
Tradeoff
filesystem MCP
You only need file read/write without controlling macOS apps
Much narrower scope but no system-level access risks