Server facts
applescript-mcp
GitHub stars
467
Last commit
Feb 22, 2026
Runtime
python
License
MIT
Project
- Author
- peakmojo
- Repository
- github.com/peakmojo/applescript-mcp
- License
- MIT
- Category
- Mobile & Desktop Automation
Tech
- Runtime
- python
- Transports
- stdio
- Remote access
- No
- Authentication
- None locally; SSH credentials (--remoteUser, --remotePassword) for Docker remote mode
Activity
- GitHub stars
- 467
- Last commit
- Data as of
Tags
- Macos
- applescript
- mcp
- mcp server
Overview
Mac power users looking for a minimal `applescript mcp` bridge can give Claude Desktop direct control over scriptable macOS applications with `peakmojo/applescript-mcp`, an MIT-licensed repository whose core implementation stays compact and requires no cloud API keys. Instead of maintaining separate connectors for each Apple app, the server runs AppleScript locally over `stdio` so prompts can create Notes, schedule Calendar events, set Reminders, search Contacts, inspect recent Downloads via Finder or Spotlight, play Apple Music playlists, control Safari, check battery or free disk space, capture Desktop screenshots, read or write files, and run shell commands.
Developers can choose between dual runtimes depending on their environment: paste an `mcpServers` block launching Node.js via `npx @peakmojo/applescript-mcp`, or run the Python server (`mcp-server-applescript`) directly from GitHub with `uvx` without cloning (local contributors can also clone and run via `uv`, backed by `ruff`, `pyrefly`, and `pytest` enforcing 100% coverage under `uv run check`). For AI agents running inside Docker containers that need to control the host Mac, enabling macOS Remote Login (SSH) in System Settings -> Sharing lets `npx @peakmojo/applescript-mcp` target `host.docker.internal` with `--remoteHost`, `--remoteUser`, and `--remotePassword`.
Install & configure
Requirements
- macOS host (local Mac, or remote Mac with System Settings -> Sharing -> Remote Login SSH enabled)
- Node.js (`npx @peakmojo/applescript-mcp`) OR Python with `uv` (`brew install uv` for `uvx`)
- Appropriate macOS app automation and user permissions granted to the MCP host or SSH account
npx @peakmojo/applescript-mcpAdd `applescript_execute` under `mcpServers` in Claude Desktop using `npx @peakmojo/applescript-mcp` (Node.js) or `uvx --from git+https://github.com/peakmojo/applescript-mcp mcp-server-applescript` (Python) over `stdio`. Inside Docker, pass `--remoteHost host.docker.internal`, `--remoteUser`, and `--remotePassword`.
Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.
Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"applescript_execute": {
"command": "npx",
"args": [
"@peakmojo/applescript-mcp"
]
}
}
}Config file · Project: .cursor/mcp.json
User: ~/.cursor/mcp.json
The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"applescript_execute": {
"command": "npx",
"args": [
"@peakmojo/applescript-mcp"
]
}
}
}Config file · Workspace: .vscode/mcp.json
For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.
{
"servers": {
"applescript_execute": {
"type": "stdio",
"command": "npx",
"args": [
"@peakmojo/applescript-mcp"
]
}
}
}Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"applescript_execute": {
"command": "npx",
"args": [
"@peakmojo/applescript-mcp"
]
}
}
}Config file · Project scope: .mcp.json at the repository root
The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"applescript_execute": {
"type": "stdio",
"command": "npx",
"args": [
"@peakmojo/applescript-mcp"
]
}
}
}Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.
Use cases
- Create Apple Notes, schedule Calendar meetings, add Reminders, and retrieve phone numbers from Contacts directly inside Claude Desktop.
- Search Downloads via Finder or Spotlight, create Desktop folders, inspect battery level or free drive space, and capture screenshots.
- Control Safari navigation and launch Apple Music playlists from natural-language prompts without dedicated per-app connectors.
- Let containerized Docker MCP agents automate a host Mac safely over SSH through `host.docker.internal`.
Strengths
- Supports both Node.js (`npx`) and Python (`uvx`) runtimes out of the box without cloning or creating external API keys.
- Unlocks broad native macOS app, filesystem, Spotlight/Finder, and shell automation through a single lightweight AppleScript server.
- Includes documented Docker-to-Mac remote SSH flags (`--remoteHost`, `--remoteUser`, `--remotePassword`).
- Python development workflow enforces `ruff`, `pyrefly` type checks, and `pytest` at 100% coverage via `uv run check`.
Limitations
- Execution targets are restricted exclusively to macOS because AppleScript does not exist on Windows or Linux.
- Arbitrary AppleScript, filesystem read/write, and shell command execution grants extensive host access, requiring careful user review of prompts.
- Docker remote mode passes `--remotePassword` inside CLI arguments in config JSON, so configuration files must remain strictly private.
applescript-mcp setup notes
- applescript-mcp's stdio example needs a client that launches local processes.