Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Enables Claude to automate macOS applications, manage files, control music, send messages, and more through AppleScript.

README.md

🍎 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: ``bash sdef /System/Applications/Notes.app | head -5 ``

If you see XML output, you're good. If you get an error, run: ``bash 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: ``bash 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 /mcp to 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.

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Communication servers.