Applescript

Productivity and workflow

MCP server that execute applescript giving you full control of your Mac.

Your AI app calls the Applescript MCP server, which does the productivity and workflow work and sends the result back to the chat.

About Applescript

Applescript is a community MCP server from peakmojo, filed in our directory under productivity and workflow. MCP server that execute applescript giving you full control of your Mac.

At a glance

Publisher
peakmojo (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
467

How to set up Applescript

  1. Follow the install steps in the Applescript README; it is written in Python, so have that toolchain ready.
  2. Check the Applescript README for keys or settings; the registry lists none that Applescript requires.
  3. Add Applescript to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Applescript tools to confirm the connection.
  5. Run one read-only task with Applescript first, and keep your app asking before each tool call until the results look right.

Applescript compared with similar servers

  • Airtable by domdomegg has fewer GitHub stars than Applescript (455 against 467); both are community servers, and both run locally.
  • Obsidian MCP Plugin by aaronsb has more GitHub stars than Applescript (472 against 467); both are community servers, and both run locally.
  • Scrumboy by markrai has fewer GitHub stars than Applescript (454 against 467); both are community servers, and both run locally.

Before you connect Applescript

  • Give Applescript its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Applescript tool call until you trust what it does with them.
  • Treat text that Applescript fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Applescript on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Applescript

How marketing and sales teams put Applescript to work, by company size. Pick the size closest to yours and start Applescript on one use case.

Small business

  • A busy owner can use Applescript to turn a brain dump into tasks with due dates, and get a short list of what matters today.
  • Small marketing teams can ask Applescript what slipped last week and which campaign tasks have no owner yet.
  • Applescript runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can connect Applescript to build launch checklists from a template and post status updates without a weekly meeting.
  • Team leads can use Applescript to see where work piles up across projects and move it before deadlines slip.
  • Start Applescript on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise PMOs can use Applescript to roll up status across many teams into one view for leadership, with links back to each source task.
  • Large orgs can give Applescript scoped access per workspace, so an agent helps one department without reading another's plans.
  • Applescript is a community server, so have security review the code and pin a version before Applescript touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Applescript README

From peakmojo/applescript-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

AppleScript MCP Server (Dual access: python and node.js)

Overview

A Model Context Protocol (MCP) server that lets you run AppleScript code to interact with Mac. This MCP is intentionally designed to be simple, straightforward, intuitive, and require minimal setup.

I can't believe how simple and powerful it is. The core code is <100 line of code.

https://github.com/user-attachments/assets/b85e63ba-fb26-4918-8e6d-2377254ee388

Features

  • Run AppleScript to access Mac applications and data
  • Interact with Notes, Calendar, Contacts, Messages, and more
  • Search for files using Spotlight or Finder
  • Read/write file contents and execute shell commands
  • Remote execution support via SSH

Example Prompts

Create a reminder for me to call John tomorrow at 10am
Add a new meeting to my calendar for Friday from 2-3pm titled "Team Review"
Create a new note titled "Meeting Minutes" with today's date
Show me all files in my Downloads folder from the past week
What's my current battery percentage?
Show me the most recent unread emails in my inbox
List all the currently running applications on my Mac
Play my "Focus" playlist in Apple Music
Take a screenshot of my entire screen and save it to my Desktop
Find John Smith in my contacts and show me his phone number
Create a folder on my Desktop named "Project Files"
Open Safari and navigate to apple.com
Tell me how much free space I have on my main drive
List all my upcoming calendar events for this week

Usage with Claude Desktop

Node.js
{
  "mcpServers": {
    "applescript_execute": {
      "command": "npx",
      "args": [
        "@peakmojo/applescript-mcp"
      ]
    }
  }
}
Python (uvx)

No clone needed, run directly from the git repo:

{
  "mcpServers": {
    "applescript_execute": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/peakmojo/applescript-mcp",
        "mcp-server-applescript"
      ]
    }
  }
}
Python (local development)

For local development, clone the repo and use uv to run from source:

brew install uv
git clone https://github.com/peakmojo/applescript-mcp.git
{
  "mcpServers": {
    "applescript_execute": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/your/repo",
        "run",
        "mcp-server-applescript"
      ]
    }
  }
}

Development

Setup
brew install uv
uv sync --dev
Run all checks (in parallel)
uv run check

This runs linting, formatting, type checking, and tests with 100% coverage, all in parallel.

Individual commands
uv run lint        # ruff linter
uv run format      # ruff auto-format
uv run typecheck   # pyrefly type checker
uv run test        # pytest with 100% coverage enforcement

Docker Usage

When running in a Docker container, you can use the special hostname host.docker.internal to connect to your Mac host:

Configuration
{
  "mcpServers": {
    "applescript_execute": {
      "command": "npx",
      "args": [
        "@peakmojo/applescript-mcp",
        "--remoteHost", "host.docker.internal",
        "--remoteUser", "yourusername",
        "--remotePassword", "yourpassword"
      ]
    }
  }
}

This allows your Docker container to execute AppleScript on the Mac host system. Make sure:

  1. SSH is enabled on your Mac (System Settings → Sharing → Remote Login)
  2. Your user has proper permissions
  3. The correct credentials are provided in the config

Questions about Applescript

What is the Applescript MCP server?

MCP server that execute applescript giving you full control of your Mac. Applescript is maintained by peakmojo on GitHub at peakmojo/applescript-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Applescript MCP server?

Applescript doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (peakmojo/applescript-mcp). Like most servers, Applescript ends with a command or URL you paste into your AI app's MCP config.

Does Applescript need an API key?

The registry lists no required keys for Applescript. Check the Applescript README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Applescript an official MCP server?

No. Applescript is a community server maintained by peakmojo. Community servers can be excellent; read the code and the open issues before you give Applescript access to company data.

What license is Applescript under?

Applescript is released under the MIT license, according to its GitHub repository. The license covers the code of Applescript; the service it connects to has its own terms.