applescript-mcp
Enables Claude to automate macOS applications, manage files, control music, send messages, and more through AppleScript.
README
š AppleScript MCP Server
Give Claude the power to control your Mac. This MCP server lets Claude automate applications, manage files, control music, send messages, and much more through AppleScript.
What Can You Do With It?
Once installed, just ask Claude things like:
- "What's playing right now?" ā Claude checks Music.app and tells you
- "Create a reminder to call Mom tomorrow at 3pm" ā Creates it in Reminders
- "Add a new note called 'Meeting Notes' with today's date" ā Creates it in Notes
- "Open my Downloads folder" ā Opens it in Finder
- "What apps are running?" ā Lists your active applications
- "Play my Chill playlist" ā Starts playback in Music
- "Get the URL of my current Safari tab" ā Returns the URL
- "Create a new Calendar event for Friday at 2pm" ā Adds it to Calendar
- "Show me what's on my clipboard" ā Displays clipboard contents
- "Send a message to John saying I'm running late" ā Sends via Messages
Claude discovers what's possible, learns what works, and handles errors gracefully.
Requirements
- macOS (AppleScript is macOS-only)
- Node.js 18+ ā Download here
- Xcode ā Install from the App Store (required for AppleScript dictionaries)
After installing Xcode, run this to verify it's set up correctly:
sdef /System/Applications/Notes.app | head -5
If you see XML output, you're good. If you get an error, run:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
Installation
Claude Code
Install via the plugin marketplace:
/plugin marketplace add adamrdrew@marketplace
/plugin install applescript-mcp@adamrdrew
Restart Claude Code or run /mcp to verify it's connected.
Claude Desktop
Add this to your config file at ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"applescript-mcp": {
"command": "npx",
"args": ["-y", "applescript-mcp"]
}
}
}
Restart Claude Desktop.
Claude Code Permissions
Claude Code will ask you every time you use an MCP server command for the first time, meaning when you start using the MCP server you will get lots of "are you sure you want to do this?" prompts, which is a pretty terrible experience. After installing the plugin you can allowlist calls to the MCP server bu adding this to your .claude/settings.json
{
"permissions": {
"allow": [
"mcp__plugin_applescript-mcp_applescript-mcp-server__*"
]
}
}
System Permissions
The first time Claude tries to control an app, macOS will ask for permission. Grant these in System Settings ā Privacy & Security:
| Permission | When It's Needed |
|---|---|
| Automation | Controlling any app (Finder, Music, Safari, etc.) |
| Accessibility | Keyboard simulation, UI automation |
| Full Disk Access | Some file operations |
When prompted, allow your terminal app (Terminal, iTerm, Warp, etc.) or Claude Desktop to control the requested application.
What Apps Work?
Claude can control any "scriptable" macOS application. Most built-in apps are scriptable:
- Finder ā File and folder operations
- Music ā Playback, playlists, library access
- Safari ā Tabs, URLs, reading lists
- Mail ā Send, read, organize emails
- Calendar ā Events and reminders
- Notes ā Create and manage notes
- Reminders ā Tasks and lists
- Messages ā Send messages
- Photos ā Albums and organization
- Contacts ā Address book access
- Keynote/Pages/Numbers ā Document automation
- Terminal ā Script execution
Many third-party apps are also scriptable (Adobe apps, BBEdit, OmniFocus, etc.).
Safety Features
The server protects you from accidental damage:
| Risk Level | What Happens | Examples |
|---|---|---|
| Low | Runs normally | Get info, read data |
| Medium | Warning shown | Sending emails, keystrokes |
| High | Blocked until you confirm | Shell commands, quit all apps |
| Critical | Blocked until you confirm | Delete all files, empty trash |
If Claude tries something risky, you'll see a warning and can decide whether to proceed.
Learning System
The server gets smarter over time:
- Remembers what works ā Successful scripts are saved for future reference
- Suggests fixes ā When something fails, it offers specific solutions
- Skill files ā Curated examples for popular apps live in
~/.applescript-mcp/skills/
Helpful Error Messages
When something goes wrong, you get actionable fixes:
ā Automation permission denied for Safari.
HOW TO FIX:
1. Open System Settings
2. Go to Privacy & Security ā Automation
3. Find your terminal app
4. Enable the toggle for "Safari"
5. Restart your terminal
Troubleshooting
"Xcode is not installed" Install Xcode from the App Store, then run:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
"Permission denied" errors Open System Settings ā Privacy & Security ā Automation and enable the app.
Commands don't work on an app
Not all apps are scriptable. Ask Claude to run list_scriptable_apps to see what's available.
Server not connecting
- For Claude Code: Run
/mcpto check status - For Claude Desktop: Restart the app after editing config
Contributing
Want to contribute, run from source, or understand the codebase? See CONTRIBUTING.md.
Want even deeper documentaiton? See the Project Documentation
License
This project is licensed under the GNU General Public License v3.0.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.