AppleScript MCP Server
Integrate AI with macOS using the AppleScript MCP Server for powerful automation and programmatic control of Mac apps and system features.

What does “AppleScript” MCP Server do?
The AppleScript MCP Server is a Model Context Protocol (MCP) server designed to provide AI assistants and development tools with the ability to run AppleScript code on a Mac. By acting as a bridge, it enables AI agents to access and control Mac applications and system functions, such as interacting with Notes, Calendar, Contacts, Messages, and more. The server supports tasks like searching files via Spotlight, reading and writing files, executing shell commands, and even remote execution through SSH. Its lightweight and intuitive design makes it easy to integrate, significantly enhancing automation, productivity, and the development workflow for Mac users by allowing programmatic access to a wide range of macOS features.
List of Prompts
No reusable prompt templates are documented in the repository. Only user-facing example prompts are provided.
List of Resources
No explicit MCP resources are described in the available documentation or code.
List of Tools
No detailed tool listing is provided in server.js or documentation. The server enables execution of arbitrary AppleScript, but specific tool primitives are not enumerated.
Use Cases of this MCP Server
- Mac Application Automation: Allows developers and AI agents to automate workflows involving Notes, Calendar, Contacts, Messages, and other macOS apps by executing AppleScript commands.
- File and System Management: Enables searching for files using Spotlight or Finder, reading and writing file contents, and managing folders and documents programmatically.
- System Information Retrieval: Facilitates querying system status such as battery percentage, disk space, and running applications, useful for both users and automated agents.
- Remote Execution: Supports executing AppleScript remotely via SSH, making it possible to manage a Mac from another machine or container.
- Media and Communication Control: Offers control over media playback (e.g., in Apple Music) and can interact with communication apps to automate emails, messages, or reminders.
How to set it up
Windsurf
- Ensure Node.js is installed on your system.
- Open your Windsurf configuration file.
- Add the AppleScript MCP Server to your
mcpServers
section using the JSON snippet below. - Save the configuration and restart Windsurf.
- Verify that the server is running and accessible.
{
"mcpServers": {
"applescript_execute": {
"command": "npx",
"args": [
"@peakmojo/applescript-mcp"
]
}
}
}
Claude
- Ensure Node.js is installed.
- Locate and open your Claude configuration file.
- Add the MCP server as shown in the example below.
- Save the config and restart Claude.
- Confirm the MCP server is available for use.
{
"mcpServers": {
"applescript_execute": {
"command": "npx",
"args": [
"@peakmojo/applescript-mcp"
]
}
}
}
Cursor
- Install Node.js on your system.
- Open Cursor’s configuration file.
- Insert the AppleScript MCP server entry into the
mcpServers
section. - Save and restart Cursor.
- Check that integration is successful.
{
"mcpServers": {
"applescript_execute": {
"command": "npx",
"args": [
"@peakmojo/applescript-mcp"
]
}
}
}
Cline
- Verify Node.js is installed.
- Edit the Cline configuration file.
- Add the MCP server configuration as per the example below.
- Save changes and restart Cline.
- Test to ensure the MCP server is operational.
{
"mcpServers": {
"applescript_execute": {
"command": "npx",
"args": [
"@peakmojo/applescript-mcp"
]
}
}
}
Securing API Keys and Credentials
For remote execution, sensitive information like SSH usernames and passwords can be provided via environment variables for better security. Example:
{
"mcpServers": {
"applescript_execute": {
"command": "npx",
"args": [
"@peakmojo/applescript-mcp"
],
"env": {
"REMOTE_USER": "yourusername",
"REMOTE_PASSWORD": "yourpassword"
},
"inputs": {
"remoteHost": "host.docker.internal"
}
}
}
}
How to use this MCP inside flows
Using MCP in FlowHunt
To integrate MCP servers into your FlowHunt workflow, start by adding the MCP component to your flow and connecting it to your AI agent:

Click on the MCP component to open the configuration panel. In the system MCP configuration section, insert your MCP server details using this JSON format:
{
"applescript_execute": {
"transport": "streamable_http",
"url": "https://yourmcpserver.example/pathtothemcp/url"
}
}
Once configured, the AI agent is now able to use this MCP as a tool with access to all its functions and capabilities. Remember to change “applescript_execute” to the actual name of your MCP server and replace the URL with your own MCP server URL.
Overview
Section | Availability | Details/Notes |
---|---|---|
Overview | ✅ | Provides a summary of the AppleScript MCP Server |
List of Prompts | ⛔ | No reusable prompt templates; only user-facing examples present |
List of Resources | ⛔ | No explicit MCP resources listed |
List of Tools | ⛔ | No detailed tool primitives enumerated; supports AppleScript execution |
Securing API Keys | ✅ | Environment variable example given |
Sampling Support (less important in evaluation) | ⛔ | No mention of sampling support |
Based on the above tables, AppleScript MCP Server offers a straightforward but limited integration. Its strength lies in direct control of Mac via AppleScript. However, it lacks documented prompt templates, explicit MCP resources, and detailed tool primitives. The presence of a license, moderate popularity, and clear setup instructions are positives. Overall, it’s highly useful for its niche, but documentation depth could be better.
MCP Score
Has a LICENSE | ✅ (MIT) |
---|---|
Has at least one tool | ✅ (AppleScript execution) |
Number of Forks | 32 |
Number of Stars | 270 |
Frequently asked questions
- What is the AppleScript MCP Server?
The AppleScript MCP Server is a Model Context Protocol server that allows AI agents and automation tools to execute AppleScript on macOS, enabling control over applications, files, system settings, and remote execution.
- What are the main use cases?
Use cases include Mac application automation, file and system management, system information retrieval, remote AppleScript execution via SSH, and control over media and communication apps.
- How do I add the AppleScript MCP Server to FlowHunt or my dev tool?
Add the server configuration to your tool’s mcpServers section as shown in the setup guide. Ensure Node.js is installed and follow the JSON configuration steps for your specific client.
- Is remote execution supported?
Yes, the server supports remote AppleScript execution over SSH. Use environment variables to securely provide SSH credentials.
- What are the limits or missing features?
The server lacks documented prompt templates and does not provide explicit MCP resources or detailed tool primitives. Its strength lies in direct Mac automation and integration with AI workflows.
Supercharge Your Mac Automation with AppleScript MCP Server
Enable AI-driven workflows, automate macOS tasks, and remotely control your Mac using FlowHunt’s seamless AppleScript MCP Server integration.