What the JCAppleScript MCP server does
The JCAppleScript MCP server gives an MCP-connected AI assistant access to scriptable macOS applications. It combines a general AppleScript execution engine with an AppShortcuts registry containing commands for built-in applications. The repository lists support for Messages, Mail, Reminders, Calendar, Notes, Finder, Safari, Music, Terminal, System Settings, Xcode, and Speech Recognition.
The server supports both direct scripting and higher-level registered commands. Direct scripting is useful when an app action is not represented in the registry. Registered commands provide named operations with defined arguments, such as sending a message, creating a reminder, opening a URL, controlling Music playback, or interacting with Xcode projects.
How it works
The jcas-mcp executable exposes MCP tools to an AI client. A client starts the executable through its MCP configuration, after which the assistant can discover applications and commands or invoke an operation. The server can list currently running applications, inspect registered app definitions, search command names and descriptions, preview generated scripts, and execute commands by ID.
Three tools provide unrestricted scripting when safe mode is not enabled: execute_applescript, execute_jxa, and tell_application. AppleScript runs through macOS automation, while JXA uses JavaScript for Automation. check_script_syntax compiles AppleScript or JXA without running it, which can help validate generated code before execution.
App commands are represented by command sheets. Each command includes an identifier, description, and parameters, and produces a script for the target application. Additional command sheets can be supplied as JSON manifests at startup. Manifest arguments are sanitized before they are inserted into declarative script templates.
Setup and configuration
Build the executable with Swift Package Manager using swift build -c release; the resulting binary is located at .build/release/jcas-mcp. An MCP client can launch that binary using a command-based server configuration. Releases also include a universal macOS jcas-mcp.mcpb bundle that can be installed in Claude Desktop through its Extensions settings.
JCAS_SAFE_MODE=1 removes the arbitrary-code tools and registry commands marked as dangerous. In that mode, only pre-built sanitized registry commands remain available. Set JCAS_APP_MANIFESTS to a colon-separated list of JSON manifest paths to load extra app definitions when the server starts.
The command-line options --manifest, --version, and --help print the registry as JSON, the server version, and usage information respectively.
Tools and capabilities
The JCAppleScript MCP server exposes these tools:
- Execute AppleScript or JXA source, send a command through an application
tell block, and validate script syntax.
- List running applications and browse registered applications.
- Search registered commands and retrieve detailed information for one application.
- Preview the exact script generated by a registered command.
- Run a registered command by ID with supplied arguments.
The built-in registry covers communication, productivity, system, internet, media, and development tasks across the applications listed in the project. Developers can add support for another scriptable application by implementing the ScriptableApp protocol, registering it at runtime, or loading a compatible JSON manifest.
Limitations and notes
This tooling targets macOS application automation and depends on the target applications being scriptable and available on the machine. The material does not specify equivalent support for other operating systems.
Arbitrary AppleScript, JXA, and tell_application access is disabled in safe mode. Commands marked dangerous, including examples such as terminal command execution and Safari JavaScript execution, are also excluded there. Without safe mode, callers should treat direct script execution and dangerous registered commands as operations requiring appropriate review and macOS permissions.
The available application commands are limited to the built-in registry and any additional manifests or custom implementations supplied by the developer. Syntax checking compiles a script but does not execute it, so it does not confirm the target app will accept the operation at runtime.