/ Annuaire / Playground / applescript-mcp
● Communauté peakmojo ⚡ Instantané

applescript-mcp

par peakmojo · peakmojo/applescript-mcp

Execute AppleScript from Claude to control any macOS app — Notes, Calendar, Finder, Messages, and more.

applescript-mcp gives Claude the ability to run arbitrary AppleScript on macOS, providing programmatic control over system apps and services. It can create calendar events, manage notes, search files via Spotlight, take screenshots, control media playback, and run shell commands. Available in Python and Node.js, with Docker support for remote execution via SSH.

Pourquoi l'utiliser

Fonctionnalités clés

Démo en direct

Aperçu en pratique

applescript-mcp.replay ▶ prêt
0/0

Installer

Choisissez votre client

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "applescript-mcp": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/peakmojo/applescript-mcp"
      ]
    }
  }
}

Ouvrez Claude Desktop → Settings → Developer → Edit Config. Redémarrez après avoir enregistré.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "applescript-mcp": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/peakmojo/applescript-mcp"
      ]
    }
  }
}

Cursor utilise le même schéma mcpServers que Claude Desktop. La config projet l'emporte sur la globale.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "applescript-mcp": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/peakmojo/applescript-mcp"
      ]
    }
  }
}

Cliquez sur l'icône MCP Servers dans la barre latérale Cline, puis "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "applescript-mcp": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/peakmojo/applescript-mcp"
      ]
    }
  }
}

Même format que Claude Desktop. Redémarrez Windsurf pour appliquer.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "applescript-mcp",
      "command": "TODO",
      "args": [
        "See README: https://github.com/peakmojo/applescript-mcp"
      ]
    }
  ]
}

Continue utilise un tableau d'objets serveur plutôt qu'une map.

~/.config/zed/settings.json
{
  "context_servers": {
    "applescript-mcp": {
      "command": {
        "path": "TODO",
        "args": [
          "See README: https://github.com/peakmojo/applescript-mcp"
        ]
      }
    }
  }
}

Ajoutez dans context_servers. Zed recharge à chaud à la sauvegarde.

claude mcp add applescript-mcp -- TODO 'See README: https://github.com/peakmojo/applescript-mcp'

Une seule ligne. Vérifiez avec claude mcp list. Supprimez avec claude mcp remove.

Cas d'usage

Usages concrets : applescript-mcp

How to create calendar events with natural language using applescript-mcp

👤 Mac users who want to manage their calendar via Claude ⏱ ~5 min beginner

Quand l'utiliser : You want to quickly create, modify, or query calendar events without opening Calendar.app.

Prérequis
  • macOS with SSH enabled — System Settings → Sharing → Remote Login
  • applescript-mcp installed — npx -y @peakmojo/applescript-mcp or uvx applescript-mcp
Déroulement
  1. Create an event
    Create a calendar event titled 'Team Standup' for tomorrow at 10am, 30 minutes long, in my Work calendar.✓ Copié
    → Confirmation that the event was created with date and time
  2. Query upcoming events
    What events do I have this week?✓ Copié
    → List of calendar events with times and titles

Résultat : Calendar events created and queried without leaving the chat.

Pièges
  • AppleScript uses calendar names that must match exactly — List available calendars first before creating events
Combiner avec : filesystem

Search and organize files on your Mac with applescript-mcp

👤 Mac power users looking for file management automation ⏱ ~10 min intermediate

Quand l'utiliser : You need to find scattered files across your Mac and organize them.

Prérequis
  • applescript-mcp running — npx -y @peakmojo/applescript-mcp
Déroulement
  1. Search for files
    Use Spotlight to find all PDF files on my Mac modified in the last week.✓ Copié
    → List of file paths matching the criteria
  2. Organize results
    Move all those PDFs into ~/Documents/Recent-PDFs/, creating the folder if needed.✓ Copié
    → Confirmation of files moved

Résultat : Files found via Spotlight and organized into a designated folder.

Pièges
  • Spotlight index may be incomplete — Ensure Spotlight indexing is enabled for the relevant drives in System Settings
Combiner avec : filesystem

Combinaisons

Associez-le à d'autres MCPs pour un effet X10

applescript-mcp + filesystem

Use AppleScript to find files via Spotlight, then filesystem MCP to read and process their contents

Find all .md files modified today using Spotlight, then read and summarize each one.✓ Copié
applescript-mcp + github

Create calendar reminders for upcoming GitHub PR review deadlines

Check my open PR review requests on GitHub and create calendar reminders for any that are overdue.✓ Copié

Outils

Ce que ce MCP expose

OutilEntréesQuand appelerCoût
run_applescript script: str Execute any AppleScript command on the connected Mac 0

Coût et limites

Coût d'exécution

Quota d'API
No external API — runs locally on macOS
Tokens par appel
200–1000 tokens per script execution
Monétaire
Free
Astuce
Keep scripts focused on one task per call to minimize token usage from large outputs.

Sécurité

Permissions, secrets, portée

Stockage des identifiants : SSH credentials needed for remote execution — store in env vars, not in config files
Sortie de données : All execution is local to the Mac. No external network calls unless your script makes them.

Dépannage

Erreurs courantes et correctifs

AppleScript execution failed — not authorized

Grant Terminal (or your MCP host) access in System Settings → Privacy & Security → Automation and Accessibility.

Vérifier : osascript -e 'tell application "Finder" to get name of every disk'
SSH connection refused

Enable Remote Login in System Settings → Sharing. Verify SSH credentials are correct.

Vérifier : ssh your-user@localhost 'echo ok'
Application not responding to AppleScript

Some apps have limited or no AppleScript support. Check the app's AppleScript dictionary in Script Editor.

Vérifier : Open Script Editor → File → Open Dictionary → select the app

Alternatives

applescript-mcp vs autres

AlternativeQuand l'utiliserCompromis
filesystem MCPYou only need file read/write without controlling macOS appsMuch narrower scope but no system-level access risks

Plus

Ressources

📖 Lire le README officiel sur GitHub

🐙 Voir les issues ouvertes

🔍 Parcourir les 400+ serveurs MCP et Skills