apple-mcp

apple-mcp

Enables AI to control Apple Mac apps like Messages, Notes, Contacts, Mail, Reminders, Calendar, and Maps through natural language commands.

Category
访问服务器

README

🍎 Apple MCP (yfysnp fork)

Apple 原生应用的 MCP 服务器——让 LLM 通过统一接口操作 Contacts、Notes、Messages、Mail、Reminders、Calendar、Maps。

License: MIT Platform: macOS

This is a maintained fork of the original dhravya/apple-mcp, refactored for clarity and continued maintenance. See Differences from upstream below.


✨ Capabilities

Tool Operations
contacts Search/list contacts by name, lookup phone numbers
notes Search / list / create notes (with folder support)
messages Send, read, schedule iMessages; check unread
mail Read unread, search, send (with CC/BCC), list mailboxes/accounts
reminders List / search / open / create reminders (per-list scoping)
calendar List / search / open / create events (across calendars)
maps Search locations, save favorites, get directions, manage guides, drop pins

Built on AppleScript / JXA under the hood; uses SQLite directly for Messages where appropriate.


📦 Installation

Requirement: macOS only. Tools that need Apple app access (Contacts, Calendar, Reminders, Mail, etc.) will require granting Automation permission to your terminal / MCP host on first use. See Permissions below.

Option A — From source (works today)

# 1. Get bun (skip if installed)
brew install oven-sh/bun/bun

# 2. Clone and build
git clone https://github.com/yfysnp/apple-mcp.git
cd apple-mcp
bun install
bun run build      # produces dist/index.js

Then add this entry to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

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

/absolute/path/to/apple-mcp 换成你 clone 出来的实际绝对路径(pwd 看一眼)。

For Cursor or other MCP hosts, point them at the same node dist/index.js command.

Restart your MCP host. The 7 tools should be available.


Option B — From GitHub Release (download pre-built bundle)

Releases ship a pre-built dist/index.js so you don't need bun/node toolchain to use it (Node 18+ runtime still required).

  1. Go to Releases and download apple-mcp-<version>.tar.gz.
  2. Extract somewhere stable, e.g.:
    mkdir -p ~/.local/share/apple-mcp
    tar -xzf apple-mcp-1.0.0.tar.gz -C ~/.local/share/apple-mcp --strip-components=1
    
  3. Add to Claude Desktop config:
    {
      "mcpServers": {
        "apple-mcp": {
          "command": "node",
          "args": ["/Users/you/.local/share/apple-mcp/dist/index.js"]
        }
      }
    }
    

🔐 Permissions

On first use of each tool, macOS will prompt for permission to control the corresponding app. If you accidentally deny, re-grant via:

System Settings → Privacy & Security → Automation → [your MCP host app] → enable [Contacts / Calendar / Mail / ...]

The MCP host (Claude Desktop, Cursor, etc.) is what asks macOS — not this binary. So make sure you're granting permission to the host process, not to node.

For Messages specifically, you also need Full Disk Access for the MCP host (Messages reads the SQLite db at ~/Library/Messages/chat.db).


🧪 Local development

bun install
bun run dev        # runs index.ts directly via bun
bun run build      # produces minified dist/index.js
bun run test       # runs integration tests (requires Apple apps available)

Architecture:

  • index.ts — entry point, eager/lazy module loading, dispatch map
  • handlers/<tool>.ts — one file per MCP tool (contacts, notes, messages, mail, reminders, calendar, maps)
  • handlers/_shared.tsToolResponse / LoadModule types + response helpers
  • utils/<tool>.ts — actual AppleScript / JXA implementations
  • tools.ts — MCP tool schemas

See docs/superpowers/plans/ for design history.


🎯 Example prompts

Send a message to mom saying I'll be late for dinner
Find all my AI research notes and email them to sarah@example.com
Create a reminder to call the dentist tomorrow at 2pm
Show my calendar for next week and create an event for coffee with Alex on Friday
Find the nearest pizza place and save it to my favorites

📝 Differences from upstream

This fork at yfysnp/apple-mcp makes the following changes vs. dhravya/apple-mcp:

  • Refactored index.ts from 1720 lines into a 277-line entry + 7 per-tool handler files under handlers/.
  • Added shared response helpers (textResponse, accessAwareError) and shared types (ToolResponse, LoadModule).
  • Removed dead utils/web-search.ts and its orphan test runner entries (was never wired into tools.ts or manifest.json).
  • Standardized error message prefixes across all 7 tools (Error with X operation: ...).
  • Fixed a latent Promise<string | undefined> type error in mail's send handler.

The upstream repo appears unmaintained. We track upstream as the upstream remote and may pull selective improvements.


📤 Cutting a release (maintainer notes)

Bump version in package.json + manifest.json, then tag and push:

git tag v1.0.1
git push origin v1.0.1

The workflow (.github/workflows/release.yml) will build dist/index.js, smoke-test it, and create a GitHub Release with apple-mcp-<version>.tar.gz attached.


📄 License

MIT — see LICENSE.

Original work © Dhravya Shah / Supermemory team. Fork maintained by @yfysnp.

推荐服务器

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

官方
精选