Applescript MCP logo

Applescript MCP

by @peakmojo

Run AppleScript through MCP to automate Mac apps, files, system information, and remote Mac hosts.

Install Applescript MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "peakmojo-applescript-mcp": {
      "command": "npx",
      "args": [
        "@peakmojo/applescript-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

The install command started, but didn't respond the way we expected when we tried to talk to it.

npx @peakmojo/applescript-mcp

initialize succeeded but no response to tools/list.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 15d ago.

Overview

@peakmojo/applescript-mcp MCP server executes AppleScript code so an MCP client can interact with macOS applications, files, and system data. It can be launched through Node.js with npx or through Python using uvx or a local uv checkout. Reach for it when an agent needs to create calendar entries, search files, control applications, read or write files, or run other AppleScript-supported Mac tasks. SSH-based remote execution is also available for running scripts on a Mac host.

Use cases

  • Create reminders and calendar events on macOS
  • Search files with Finder or Spotlight
  • Control Mac applications such as Safari and Music
  • Read or write files and run shell commands
  • Execute AppleScript on a remote Mac over SSH

Key features

  • AppleScript execution through MCP
  • Mac application and data access
  • Finder and Spotlight file search
  • File operations and shell command execution
  • SSH-based remote execution

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

8/8 checks healthy over the last 16d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · @peakmojo/applescript-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars466Stargazers on the source repository.
npm downloads544Package downloads in the last 30 days.
Last commit8mo agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Applescript MCP works

What @peakmojo/applescript-mcp does

@peakmojo/applescript-mcp exposes AppleScript execution through the Model Context Protocol. An MCP-compatible client can send AppleScript that interacts with macOS applications and data, including Notes, Calendar, Contacts, Messages, and Apple Music. The same approach can handle Finder or Spotlight file searches, file reads and writes, shell command execution, and system queries such as battery percentage or available disk space.

Typical tasks include creating reminders, adding calendar events, drafting notes, opening Safari at a URL, listing running applications, playing a playlist, taking a screenshot, and looking up a contact. These examples describe the kinds of operations AppleScript can perform through the server; the exact result depends on the script and the permissions granted on the Mac.

How it works

The server runs as a local MCP process and receives requests from an MCP client. In the Node.js setup, the client starts the package with npx. Python users can launch the published source directly from the Git repository with uvx, or run a local checkout with uv.

The server can also execute AppleScript remotely over SSH. In the documented Docker arrangement, the container connects to the Mac host through host.docker.internal; the Mac must have Remote Login enabled, and the supplied user credentials must have the required permissions. This gives an agent a way to send AppleScript to a Mac outside the process running the MCP client.

Setup and configuration

Claude Desktop can configure the Node.js variant with the npx command and the @peakmojo/applescript-mcp package as its argument. The Python options use either uvx --from git+https://github.com/peakmojo/applescript-mcp mcp-server-applescript or a local repository started with uv --directory /path/to/your/repo run mcp-server-applescript.

For local development, the repository documents installing uv with Homebrew, cloning the repository, and running uv sync --dev. Its checks can be run together with uv run check; separate commands are provided for linting, formatting, type checking, and tests.

A Docker configuration can pass --remoteHost, --remoteUser, and --remotePassword to target a Mac host over SSH.

Tools and capabilities

The primary capability is executing AppleScript through MCP. That enables agents to:

  • Access supported Mac applications and their data.
  • Work with Notes, Calendar, Contacts, Messages, Apple Music, Safari, and other applications through AppleScript.
  • Search for files with Spotlight or Finder.
  • Read and write file contents.
  • Execute shell commands through AppleScript workflows.
  • Query system details such as battery status and free disk space.
  • Run AppleScript on a remote Mac through SSH.

Limitations and notes

This package targets Mac automation, so it is intended for environments where AppleScript and the relevant macOS applications are available. Operations may require macOS authorization or application-specific permissions; the documented Docker setup also requires SSH access, enabled Remote Login, and suitable user permissions.

AppleScript behavior varies by application and by the script supplied by the client. The server provides the execution path rather than a fixed set of high-level workflows. Review scripts carefully before allowing an agent to run them, especially when they can modify files, control applications, execute shell commands, or access personal data.

The provided client configuration documents Claude Desktop. Other clients may require their own MCP configuration format, even though the server exposes a standard local process entry point.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Applescript MCP

@peakmojo/applescript-mcp is an MCP server that connects an MCP client to macOS through AppleScript. Its main tool executes AppleScript code, enabling interaction with Mac applications and data, file searches, file reads and writes, shell commands, and remote execution over SSH on a Mac host.

Install it by configuring your MCP client to launch `npx @peakmojo/applescript-mcp`, or use the documented Python commands with `uvx` or a local `uv` checkout. The README also provides a Claude Desktop configuration and development setup using Homebrew, Git, and uv.

Run it with the `--remoteHost`, `--remoteUser`, and `--remotePassword` options to connect over SSH. For Docker, the documented host is `host.docker.internal`; Remote Login must be enabled on the Mac, and the account must have the necessary permissions.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewApplescript MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/peakmojo-applescript-mcp?style=directory)](https://allmcps.com/mcp/peakmojo-applescript-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/peakmojo-applescript-mcp"><img src="https://allmcps.com/api/badge/peakmojo-applescript-mcp?style=directory" alt="Applescript MCP on AllMCPs" /></a>