apple-suite-mcp

apple-suite-mcp

Secure, opt-in MCP connector for Apple apps (Calendar, Reminders, Contacts, Notes, and more) with modular permissions, human approval, and optional remote access.

Category
访问服务器

README

apple-suite-mcp

Secure, modular, opt-in MCP connector for the Apple app suite — Calendar, Reminders, Contacts, Notes, Mail, Messages, Maps, Photos, Music, Shortcuts.

A security-focused fork and rewrite of supermemoryai/apple-mcp (MIT).

Status: 1.0.0 — all ten modules implemented, everything disabled by default. See DESIGN.md for the architecture and CLAUDE.md for development guidance.

Modules

Module Backend macOS permission Writes
Calendar Swift · EventKit Calendars create / update / delete (delete confirmed)
Reminders Swift · EventKit Reminders create / complete / delete (delete confirmed)
Contacts Swift · Contacts.framework Contacts create
Notes fixed JXA template Automation create
Mail fixed JXA template Automation send (always confirmed)
Messages sqlite child (reads) + JXA (send) Full Disk Access send (always confirmed)
Maps Swift · MapKit none —
Photos Swift · PhotosKit Photos — (metadata only)
Music fixed JXA template Automation playback controls
Shortcuts shortcuts CLI (execFile, no shell) per shortcut run (always confirmed)

Mail, Messages, and Shortcuts are never exposed over the remote transport.

Why another Apple MCP?

The popular upstream is convenient but risky: it interpolates untrusted strings into AppleScript (injection → RCE), grabs broad permissions at once, auto-updates from @latest, and has no confirmation gates. This project keeps the same feature surface with a much smaller attack surface:

upstream this project
Backend AppleScript string concat structured native helper (no script text)
Permissions all at once disabled by default, opt-in per module
Full Disk Access required together isolated to the Messages read child process
Updates @latest auto pinned versions + provenance + SBOM
Side-effects none elicitation confirmation
MCP spec — 2025-11-25 (Streamable HTTP + OAuth 2.1)

Design highlights

  • Capability model. A module that isn't enabled contributes zero tools/ resources and never triggers a macOS permission prompt.
  • Activate what you use. apple-mcp enable calendar / enable reminders --write. Changes apply on restart (deliberately, to prevent runtime coercion).
  • No injection by construction. Untrusted data is passed as structured args to a Swift/JXA helper, never concatenated into executable script text. Enforced by tests/injection/ and a CI static guard.

Install

Do not use @latest or --no-cache. Pin a version.

git clone https://github.com/HanlunWang/apple-suite-mcp.git
cd apple-suite-mcp
npm ci
npm run build          # compiles TypeScript + builds and signs the Swift helpers

Then point your MCP client at the built server (absolute path, no auto-update):

{
  "mcpServers": {
    "apple-suite": {
      "command": "node",
      "args": ["/absolute/path/to/apple-suite-mcp/dist/src/server.js"]
    }
  }
}

Nothing is exposed until you enable a module — see below. Building the Swift helpers requires the Xcode command line tools; the JXA-backed modules (notes, mail, messages send, music) need no build step.

Capability control

apple-mcp status                 # module matrix + config path
apple-mcp enable calendar        # read-only
apple-mcp enable reminders --write
apple-mcp enable messages --yes  # FDA module: requires explicit acknowledgement
apple-mcp disable mail

Changes apply on server restart (deliberate — a running session cannot be coerced into enabling capabilities). Config lives at ~/.apple-mcp/config.json, created locked-down (everything disabled) on first run.

The model can queue an enable request via the capabilities_request_enable tool, but it only becomes real when you approve it:

apple-mcp pending            # see what the model asked for
apple-mcp approve calendar   # apply it (FDA modules re-prompt for acknowledgement)
apple-mcp reject calendar    # or discard it

Remote access (optional)

The default transport is stdio (no network exposure). To serve Claude over HTTP, switch transport in the config to Streamable HTTP:

// ~/.apple-mcp/config.json
"transport": {
  "type": "http",
  "auth": "oauth2.1",              // or "apikey" (key auto-generated, 0600)
  "bind": "127.0.0.1",             // expose further only behind your own TLS proxy
  "port": 8765,
  "allowRemoteWrite": false,        // remote sessions are read-only by default
  "oauth": {
    "issuer": "https://your-authorization-server.example",
    "audience": "https://your-host.example/mcp"   // tokens for anything else are rejected
  }
}

Remote sessions always get a reduced surface: Mail and Messages are never registered over HTTP, write tools require allowRemoteWrite: true, and every request must carry a bearer token (JWT verified against the authorization server's JWKS with strict issuer + audience checks, per RFC 8414/9728).

Develop

Requires Node ≥ 22.6 to run TS directly (CI uses 24); the built dist/ runs on ≥ 20.

npm ci
npm run build          # compile TS + build the Swift eventkit-helper
npm run lint           # static injection guard
npm test               # node:test — includes the injection regression suite
npm run dev            # stdio server

Integration tests against the real EventKit stores (they trigger a macOS permission prompt and touch your default calendar/reminder list) are opt-in:

APPLE_MCP_INTEGRATION=1 npm test

Security

See SECURITY.md. Report vulnerabilities privately.

License

MIT. Retains upstream attribution — see NOTICE.

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选