# AppleScript MCP server

> Lets an AI client run AppleScript on a Mac to control apps, files, reminders, calendars, messages, and shell commands.

- Repository: https://github.com/peakmojo/applescript-mcp
- Page: https://hostedmcp.org/servers/peakmojo/applescript-mcp
- Transport: stdio
- Stars: 468
- License: MIT

## Install

### Claude Code

```sh
claude mcp add applescript-mcp -- npx -y @peakmojo/applescript-mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "applescript-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@peakmojo/applescript-mcp"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "applescript-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@peakmojo/applescript-mcp"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"applescript-mcp","type":"stdio","command":"npx","args":["-y","@peakmojo/applescript-mcp"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "applescript-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@peakmojo/applescript-mcp"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add applescript-mcp -- npx -y @peakmojo/applescript-mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.applescript-mcp]
command = "npx"
args = ["-y", "@peakmojo/applescript-mcp"]
```

### Gemini CLI

```sh
gemini mcp add -s user applescript-mcp npx -- -y @peakmojo/applescript-mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "applescript-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@peakmojo/applescript-mcp"
      ]
    }
  }
}
```

## FAQ

### What can the AppleScript MCP server do on my Mac?

It runs AppleScript code to interact with Mac applications and data, including Notes, Calendar, Contacts, Messages, files, and shell commands.

### How do I install the AppleScript MCP server with Claude Desktop?

Add it as an MCP server using npx with the package @peakmojo/applescript-mcp, or run the Python version with uvx from the git repo.

### Can it work from inside a Docker container?

Yes, using the host.docker.internal hostname plus remote host, user, and password arguments, with SSH enabled on the Mac.

### Does it support remote execution?

Yes, remote execution is supported via SSH with a remote host, user, and password.

### Which command-line tool does the Python version need?

The Python version runs via uv, which can be installed with Homebrew.
