Applescript (joshrutkowski)

Messaging and email

A macOS AppleScript MCP server.

Your AI app calls the Applescript (joshrutkowski) MCP server, which does the messaging and email work and sends the result back to the chat.

About Applescript (joshrutkowski)

Applescript (joshrutkowski) is a community MCP server from joshrutkowski, filed in our directory under messaging and email. A macOS AppleScript MCP server.

At a glance

Publisher
joshrutkowski (community)
Runs
See the README for setup
Written in
TypeScript
License
MIT
GitHub stars
396

How to set up Applescript (joshrutkowski)

  1. Follow the install steps in the Applescript (joshrutkowski) README; it is written in TypeScript, so have that toolchain ready.
  2. Check the Applescript (joshrutkowski) README for keys or settings; the registry lists none that Applescript (joshrutkowski) requires.
  3. Add Applescript (joshrutkowski) 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 (joshrutkowski) tools to confirm the connection.
  5. Run one read-only task with Applescript (joshrutkowski) first, and keep your app asking before each tool call until the results look right.

Applescript (joshrutkowski) compared with similar servers

  • Whatsapp (verygoodplugins) by verygoodplugins has fewer GitHub stars than Applescript (joshrutkowski) (357 against 396); both are community servers, and both run locally.
  • Clawdcursor by AmrDab has more GitHub stars than Applescript (joshrutkowski) (409 against 396); both are community servers, and both run locally.
  • Telegram (chaindead) by chaindead has fewer GitHub stars than Applescript (joshrutkowski) (355 against 396); both are community servers, and both run locally.

Before you connect Applescript (joshrutkowski)

  • Give Applescript (joshrutkowski) 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 (joshrutkowski) tool call until you trust what it does with them.
  • Treat text that Applescript (joshrutkowski) fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Applescript (joshrutkowski) on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Applescript (joshrutkowski)

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

Small business

  • A small team can have Applescript (joshrutkowski) summarize the inbox or channel each morning, so nothing from a customer waits until the afternoon.
  • Owners can draft replies and follow-ups with Applescript (joshrutkowski) and send them only after a read, keeping the personal tone customers expect.
  • Applescript (joshrutkowski) 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 teams can use Applescript (joshrutkowski) to turn long launch threads into decisions, owners and dates that land in the project tracker.
  • Sales and success teams can connect Applescript (joshrutkowski) so an agent drafts follow-ups after every customer call, ready to edit and send.
  • Start Applescript (joshrutkowski) on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can deploy Applescript (joshrutkowski) with retention and data loss rules intact, so agents summarize conversations without moving data outside policy.
  • Internal comms teams can use Applescript (joshrutkowski) to find what employees ask most across channels and answer it once, in the right place.
  • Applescript (joshrutkowski) is a community server, so have security review the code and pin a version before Applescript (joshrutkowski) 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 (joshrutkowski) README

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

README.md

applescript-mcp MCP Server

A Model Context Protocol server that enables LLM applications to interact with macOS through AppleScript. This server provides a standardized interface for AI applications to control system functions, manage files, handle notifications, and more.

Features

  • 🗓️ Calendar management (events, reminders)
  • 📋 Clipboard operations
  • 🔍 Finder integration
  • 🔔 System notifications
  • ⚙️ System controls (volume, dark mode, apps)
  • 📟 iTerm terminal integration
  • 📬 Mail (create new email, list emails, get email)
  • 🔄 Shortcuts automation
  • 💬 Messages (list chats, get messages, search messages, send a message)
  • 🗒️ Notes (create formatted notes, list notes, search notes)
  • 📄 Pages (create documents)
Planned Features
  • 🧭 Safari (open in Safari, save page content, get selected page/tab)
  • ✅ Reminders (create, get)

Prerequisites

  • macOS 10.15 or later
  • Node.js 18 or later

Available Categories

Calendar
Command Description Parameters
add Create calendar event title, startDate, endDate, calendar (optional)
list List today's events None
Examples
// Create a new calendar event
Create a calendar event titled "Team Meeting" starting tomorrow at 2pm for 1 hour

// List today's events
What events do I have scheduled for today?
Clipboard
Command Description Parameters
set_clipboard Copy to clipboard content
get_clipboard Get clipboard contents None
clear_clipboard Clear clipboard None
Examples
// Copy text to clipboard
Copy "Remember to buy groceries" to my clipboard

// Get clipboard contents
What's currently in my clipboard?

// Clear clipboard
Clear my clipboard
Finder
Command Description Parameters
get_selected_files Get selected files None
search_files Search for files query, location (optional)
quick_look Preview file path
Examples
// Get selected files in Finder
What files do I currently have selected in Finder?

// Search for files
Find all PDF files in my Documents folder

// Preview a file
Show me a preview of ~/Documents/report.pdf
Notifications

Note: Sending notification requires that you enable notifications in System Settings > Notifications > Script Editor.

Command Description Parameters
send_notification Show notification title, message, sound (optional)
toggle_do_not_disturb Toggle DND mode None
Examples
// Send a notification
Send me a notification with the title "Reminder" and message "Time to take a break"

// Toggle Do Not Disturb
Turn on Do Not Disturb mode
System
Command Description Parameters
volume Set system volume level (0-100)
get_frontmost_app Get active app None
launch_app Open application name
quit_app Close application name, force (optional)
toggle_dark_mode Toggle dark mode None
Examples
// Set system volume
Set my Mac's volume to 50%

// Get active application
What app am I currently using?

// Launch an application
Open Safari

// Quit an application
Close Spotify

// Toggle dark mode
Switch to dark mode
iTerm
Command Description Parameters
paste_clipboard Paste to iTerm None
run Execute command command, newWindow (optional)
Examples
// Paste clipboard to iTerm
Paste my clipboard contents into iTerm

// Run a command in iTerm
Run "ls -la" in iTerm

// Run a command in a new iTerm window
Run "top" in a new iTerm window
Shortcuts
Command Description Parameters
run_shortcut Run a shortcut name, input (optional)
list_shortcuts List all available shortcuts limit (optional)
Examples
// List available shortcuts
List all my available shortcuts

// List with limit
Show me my top 5 shortcuts

// Run a shortcut
Run my "Daily Note in Bear" shortcut

// Run a shortcut with input
Run my "Add to-do" shortcut with input "Buy groceries"
Mail
Command Description Parameters
create_email Create a new email in Mail.app recipient, subject, body
list_emails List emails from a mailbox mailbox (optional), count (optional), unreadOnly (optional)
get_email Get a specific email by search subject (optional), sender (optional), dateReceived (optional), mailbox (optional), account (optional), unreadOnly (optional), includeBody (optional)
Examples
// Create a new email
Compose an email to john@example.com with subject "Meeting Tomorrow" and body "Hi John, Can we meet tomorrow at 2pm?"

// List emails
Show me my 10 most recent unread emails

// Get a specific email
Find the email from sarah@example.com about "Project Update"
Messages
Command Description Parameters
list_chats List available iMessage and SMS chats includeParticipantDetails (optional, default: false)
get_messages Get messages from the Messages app limit (optional, default: 100)
search_messages Search for messages containing specific text searchText, sender (optional), chatId (optional), limit (optional, default: 50), daysBack (optional, default: 30)
compose_message Open Messages app with pre-filled message or auto-send recipient (required), body (optional), auto (optional, default: false)
Examples
// List available chats
Show me my recent message conversations

// Get recent messages
Show me my last 20 messages

// Search messages
Find messages containing "dinner plans" from John in the last week

// Compose a message
Send a message to 555-123-4567 saying "I'll be there in 10 minutes"
Notes
Command Description Parameters
create Create a note with markdown-like formatting title, content, format (optional with formatting options)
createRawHtml Create a note with direct HTML content title, html
list List notes, optionally from a specific folder folder (optional)
get Get a specific note by title title, folder (optional)
search Search for notes containing specific text query, folder (optional), limit (optional, default: 5), includeBody (optional, default: true)
Examples
// Create a new note with markdown formatting
Create a note titled "Meeting Minutes" with content "# Discussion Points\n- Project timeline\n- Budget review\n- Next steps" and format headings and lists

// Create a note with HTML
Create a note titled "Formatted Report" with HTML content "<h1>Quarterly Report</h1><p>Sales increased by <strong>15%</strong></p>"

// List notes
Show me all my notes in the "Work" folder

// Get a specific note
Show me my note titled "Shopping List"

// Search notes
Find notes containing "recipe" in my "Cooking" folder
Pages
Command Description Parameters
create_document Create a new Pages document with plain text content
Examples
// Create a new Pages document
Create a Pages document with the content "Project Proposal\n\nThis document outlines the scope and timeline for the upcoming project."

Architecture

The applescript-mcp server is built using TypeScript and follows a modular architecture:

Core Components
  1. AppleScriptFramework (framework.ts): The main server class that:

    • Manages MCP protocol communication
    • Handles tool registration and execution
    • Provides logging functionality
    • Executes AppleScript commands
  2. Categories (src/categories/*.ts): Modular script collections organized by functionality:

    • Each category contains related scripts (e.g., calendar, system, notes)
    • Categories are registered with the framework in index.ts
  3. Types (src/types/index.ts): TypeScript interfaces defining:

    • ScriptDefinition: Structure for individual scripts
    • ScriptCategory: Collection of related scripts
    • LogLevel: Standard logging levels
    • FrameworkOptions: Configuration options
Execution Flow
  1. Client sends a tool request via MCP protocol
  2. Server identifies the appropriate category and script
  3. Script content is generated (static or dynamically via function)
  4. AppleScript is executed via macOS osascript command
  5. Results are returned to the client
Logging System

The framework includes a comprehensive logging system that:

  • Logs to both stderr and MCP logging protocol
  • Supports multiple severity levels (debug, info, warning, error, etc.)
  • Provides detailed execution information for troubleshooting

Development

Setup
# Install dependencies
npm install

# Build the server
npm run build

# Launch MCP Inspector
# See: https://modelcontextprotocol.io/docs/tools/inspector
npx @modelcontextprotocol/inspector node path/to/server/index.js args...
Adding New Functionality
1. Create Category File

Create src/categories/newcategory.ts:

import { ScriptCategory } from "../types/index.js";

export const newCategory: ScriptCategory = {
  name: "category_name",
  description: "Category description",
  scripts: [
    // Scripts will go here
  ],
};
2. Add Scripts
{
  name: "script_name",
  description: "What the script does",
  schema: {
    type: "object",
    properties: {
      paramName: {
        type: "string",
        description: "Parameter description"
      }
    },
    required: ["paramName"]
  },
  script: (args) => `
    tell application "App"
      // AppleScript code using ${args.paramName}
    end tell
  `
}
3. Register Category

Update src/index.ts:

import { newCategory } from "./categories/newcategory.js";
// ...
server.addCategory(newCategory);
Advanced Script Development

For more complex scripts, you can:

  1. Use dynamic script generation:

    script: (args) => {
      // Process arguments and build script dynamically
      let scriptContent = `tell application "App"\n`;
      
      if (args.condition) {
        scriptContent += `  // Conditional logic\n`;
      }
      
      scriptContent += `end tell`;
      return scriptContent;
    }
    
  2. Process complex data:

    // Example from Notes category
    function generateNoteHtml(args: any): string {
      // Process markdown-like syntax into HTML
      let processedContent = content;
      
      if (format.headings) {
        processedContent = processedContent.replace(/^# (.+)$/gm, '<h1>$1</h1>');
        // ...
      }
      
      return processedContent;
    }
    

Debugging

Using MCP Inspector

The MCP Inspector provides a web interface for testing and debugging your server:

npm run inspector
Logging

Enable debug logging by setting the environment variable:

DEBUG=applescript-mcp* npm start
Example configuration

After running npm run build add the following to your mcp.json file:

{
  "mcpServers": {
    "applescript-mcp-server": {
      "command": "node",
      "args": ["/path/to/applescript-mcp/dist/index.js"]
    }
  }
}
Common Issues
  • Permission Errors: Check System Preferences > Security & Privacy > Privacy > Automation
  • Script Failures: Test scripts directly in Script Editor.app before integration
  • Communication Issues: Check stdio streams aren't being redirected
  • Database Access: Some features (like Messages) require Full Disk Access permission

Resources

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

MIT License - see LICENSE for details

Questions about Applescript (joshrutkowski)

What is the Applescript (joshrutkowski) MCP server?

A macOS AppleScript MCP server. Applescript (joshrutkowski) is maintained by joshrutkowski on GitHub at joshrutkowski/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 (joshrutkowski) MCP server?

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

Does Applescript (joshrutkowski) need an API key?

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

Is Applescript (joshrutkowski) an official MCP server?

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

What license is Applescript (joshrutkowski) under?

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