Sponsored by Deepsite.site

Applescript BB MCP Server

Created By
Charlie Garrison2 months ago
MCP server that enables LLM clients to interact with macOS applications through AppleScript. Built using the @beyondbetter/bb-mcp-server library, this server provides safe, controlled execution of predefined scripts with optional support for arbitrary script execution.
Content

BB AppleScript MCP Server

A production-ready MCP server that enables LLM clients to interact with macOS applications through AppleScript. Built using the @beyondbetter/bb-mcp-server library, this server provides safe, controlled execution of predefined scripts with optional support for arbitrary script execution.

Features

  • 🔒 Safe by Default: Arbitrary script execution disabled by default
  • 📦 Plugin Architecture: Modular design with task-focused plugins
  • 🛠️ Standard Tools: Read dictionaries, check permissions, Finder operations
  • 📝 BBEdit Integration: Create notebooks and projects
  • ⏱️ Timeout Protection: Configurable timeouts with hard limits
  • 📄 Structured Errors: Consistent error handling with LLM-friendly hints
  • 📊 Performance: Support for both compiled and template-based scripts

Use Cases

Developer Workflows

Automate BBEdit projects, manipulate files, and integrate with development tools through AI conversations.

File Management

Organize files, set labels, retrieve selections, and manage your file system with natural language.

App Automation

Control macOS applications that support AppleScript through your AI assistant.

Plugin Management

Plugin Loading Strategy

This server uses a hybrid plugin loading approach that automatically adapts to the runtime environment:

  • JSR Mode: When running from JSR (e.g., jsr:@beyondbetter/bb-applescript-mcp-server):

    • Built-in plugins (standard-tools, bbedit) are statically loaded
    • User plugins can be loaded from local directories via PLUGINS_DISCOVERY_PATHS
    • Allows users to extend the server with custom plugins
  • Local Mode: When running from a local directory:

    • Built-in plugins are statically loaded as fallback
    • Dynamic discovery enabled by default
    • Hot-reload support during development

The server automatically detects which mode it's running in and configures plugin loading appropriately. No configuration is needed - it just works!

📖 For technical details, see Plugin Loading Documentation

Adding Custom Plugins

You can add your own plugins even when running from JSR:

  1. Create a plugin directory: mkdir ~/my-applescript-plugins
  2. Add your plugin files (see plugin guide)
  3. Set environment variable: PLUGINS_DISCOVERY_PATHS=/path/to/your/plugins
  4. Restart the server

Your custom plugins will be discovered and loaded alongside the built-in plugins.

Security Considerations

  • 🔒 Arbitrary Scripts: Disabled by default. Only enable if you trust the LLM client.
  • 📁 File System: Scripts run with server process permissions.
  • 🎯 Application Control: Can control any app with granted automation permissions.
  • ⏱️ Timeout Limits: Always enforced to prevent runaway scripts.
  • 📝 Error Details: May contain system information. Review error output.

Server Config

{
  "mcpServers": {
    "bb-applescript": {
      "command": "deno",
      "args": [
        "run",
        "--allow-all",
        "--unstable-kv",
        "jsr:@beyondbetter/bb-applescript-mcp-server"
      ]
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
CursorThe AI Code Editor
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Amap Maps高德地图官方 MCP Server
Playwright McpPlaywright MCP server
ChatWiseThe second fastest AI chatbot™
Serper MCP ServerA Serper MCP Server
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
WindsurfThe new purpose-built IDE to harness magic
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Tavily Mcp
DeepChatYour AI Partner on Desktop
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.