orchard-mcp

orchard-mcp

MCP server for Apple Calendar, Mail, Reminders, and Files on macOS using native frameworks.

Category
访问服务器

README

orchard-mcp

Orchard MCP

MCP server for Apple Calendar, Mail, Reminders, and Files on macOS using native frameworks.

Gives any MCP-compatible client (Warp, Claude Desktop, Claude Code, Cursor) structured access to your local Apple Calendar, Apple Mail, Apple Reminders, and filesystem through native macOS frameworks. No cloud dependencies, no OAuth setup -- all data stays local.

How it works

orchard-mcp reads from the local macOS data stores (EventKit for Calendar/Reminders, AppleScript for Mail) which are already populated by accounts configured in System Settings > Internet Accounts. The OS handles all authentication with Google, Microsoft, iCloud, etc. natively. orchard-mcp never communicates with any remote service and requires no OAuth client IDs, redirect URIs, or token management.

Privacy note: orchard-mcp itself sends no data anywhere. However, the MCP client (e.g. Claude, Cursor) that invokes tools will receive the returned data (calendar events, emails, reminders, file contents) and send it to its LLM provider as part of the conversation context. Be mindful of what you ask the LLM to access.

The only permissions needed are macOS TCC grants (e.g. "Allow access to Calendars"), triggered automatically on first run.

Status

  • Phase 1 (Calendar + System) -- complete
  • Phase 2 (Reminders read + write) -- complete
  • Phase 3 (Mail read + create_draft) -- complete
  • Phase 4a (Setup Wizard) -- complete
  • Phase 4b (Distribution) -- complete

See docs/PRD.md for the full roadmap.

Requirements

  • macOS 14+ (Sonoma or later)
  • Node.js 18+

Install

npm install -g @l22-io/orchard-mcp
orchard-mcp setup

If Xcode Command Line Tools are installed (xcode-select --install), postinstall builds apple-bridge from source — the strongest install-time guarantee. Otherwise the package falls back to the shipped prebuilt universal binary (arm64 + x86_64) and verifies its SHA-256 against the manifest published inside the tarball.

The setup wizard verifies prerequisites, triggers macOS permission prompts, and generates MCP client configuration.

From source (development)

See CONTRIBUTING.md for building from source.

MCP Client Configuration

Warp

Add as an MCP server in Warp settings with:

{"command": "npx", "args": ["@l22-io/orchard-mcp"]}

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "orchard": {
      "command": "npx",
      "args": ["@l22-io/orchard-mcp"]
    }
  }
}

Claude Code

claude mcp add --scope user orchard -- npx @l22-io/orchard-mcp

Cursor

Add to your MCP settings:

{"command": "npx", "args": ["@l22-io/orchard-mcp"]}

Available Tools

Calendar

  • calendar.list_calendars -- List all calendars with account, type, color
  • calendar.list_events -- Events in a date range (recurring events expanded)
  • calendar.today -- Today's events across all calendars
  • calendar.search -- Search events by title/notes/location

Mail

  • mail.list_accounts -- List all mail accounts with mailboxes (including nested) and unread counts
  • mail.unread_summary -- Unread count per account with recent message headers
  • mail.search -- Search messages by subject, sender, body, or all fields. Supports cross-mailbox (mailbox: "all") and cross-account (account: "all") search with pagination
  • mail.read_message -- Get message content by ID with configurable body truncation (default: 4000 chars)
  • mail.flagged -- List flagged messages across all accounts with pagination
  • mail.create_draft -- Create a draft email (opens compose window for review)
  • mail.save_attachment -- Save an email attachment to disk by message ID and index

Reminders

  • reminders.list_lists -- List all reminder lists with account, color, item count
  • reminders.list_reminders -- Reminders from a list with filters (incomplete, completed, overdue, dueToday)
  • reminders.today -- Incomplete reminders due today + overdue across all lists
  • reminders.create_list -- Create a new reminder list
  • reminders.create_reminder -- Create a reminder with optional due date, priority, notes
  • reminders.complete_reminder -- Mark a reminder as completed
  • reminders.delete_reminder -- Delete a reminder
  • reminders.delete_list -- Delete a reminder list

Files

  • files.list -- List directory contents with metadata
  • files.info -- Get detailed file metadata including Spotlight attributes
  • files.search -- Search files using macOS Spotlight
  • files.read -- Read/extract text from files (plain text, PDF, images via OCR, .docx/.rtf/.pages)
  • files.move -- Move or rename files and folders (supports batch operations)
  • files.copy -- Copy a file or folder
  • files.create_folder -- Create a new directory
  • files.trash -- Move a file or folder to Trash (reversible)

System

  • system.doctor -- Check permissions, list accessible accounts

Architecture

Two-layer design:

  1. TypeScript MCP server (src/) -- handles MCP protocol via stdio, Zod schemas, tool routing
  2. Swift CLI (swift/) -- native binary (apple-bridge) using EventKit for Calendar/Reminders, AppleScript for Mail

The TypeScript layer calls the Swift binary via child_process.execFile and parses JSON responses. All subcommands return a {"status": "ok"|"error", "data": ..., "error": ...} envelope.

Swift CLI subcommands

apple-bridge calendars              List all calendars
apple-bridge events                 Events in a date range (--start, --end, --calendar)
apple-bridge search                 Search events by text (--start, --end)
apple-bridge reminder-lists          List all reminder lists
apple-bridge reminders               Reminders with filters (--list, --filter, --limit)
apple-bridge reminders-today         Due today + overdue reminders
apple-bridge reminder-create-list    Create a new reminder list (--name)
apple-bridge reminder-create         Create a reminder (--list, --title, --due, --priority, --notes)
apple-bridge reminder-complete       Mark a reminder as completed (--id)
apple-bridge reminder-delete         Delete a reminder (--id)
apple-bridge reminder-delete-list    Delete a reminder list (--id, --force)
apple-bridge mail-accounts           List mail accounts and mailboxes
apple-bridge mail-unread             Unread summary per account (--limit)
apple-bridge mail-search             Search messages (--query, --account, --mailbox, --limit, --search-in, --offset)
apple-bridge mail-message            Full message content (--id, --max-body-length)
apple-bridge mail-flagged            Flagged messages (--limit, --offset)
apple-bridge mail-create-draft       Create a draft email (--to, --subject, --body, --cc, --bcc, --account)
apple-bridge doctor                  Check permissions and accessible resources

Environment Variables

  • APPLE_BRIDGE_BIN -- Override path to the Swift binary

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选