Apple MCP
Enables AI agents to access iCloud Calendar, Reminders, and Mail with configurable scope and read-only modes.
README
Apple MCP
Model Context Protocol server for Apple iCloud. Gives your AI agents access to your Calendar, Reminders, and Mail — filtered through a scope engine so they only see what you want them to see.
Supports stdio and HTTP transport. Works anywhere, not just macOS. 37 tools, zero stubs.
What It Does
Connects your AI tools (Claude Desktop, Continue.dev, Cursor, or any MCP client) to your iCloud account. Three services, each independently toggleable:
- Calendar (12 tools) — list, create, update, delete events and calendars. Search by keyword, check availability, recurrence support.
- Reminders (15 tools) — full CRUD. Alarms, hashtags, URL attachments, recurrence rules, sync cursors.
- Mail (10 tools) — multi-account IMAP. Search, read, send, reply, move, flag, delete emails.
All access is gated through a scope engine. Configure which calendars, reminder lists, mail folders, and mail accounts are visible. Put a service in read-only mode if you only want your agent to see data, not change it.
Quick Start
Generate an App-Specific Password
You need an app-specific password, not your main Apple Account password.
- Go to account.apple.com
- Sign in → Sign-In and Security → App-Specific Passwords
- Click "Generate an app-specific password"
- Name it "Apple MCP" so you know what it's for
- Copy the password (format:
xxxx-xxxx-xxxx-xxxx)
You can revoke this password at any time from the same page.
Run with Docker
docker run -p 8080:8080 \
-e APPLE_ID=you@icloud.com \
-e APPLE_APP_SPECIFIC_PASSWORD=xxxx-xxxx-xxxx-xxxx \
ghcr.io/thetaroot/apple-mcp:latest
Run with pip
pip install apple-mcp
apple-mcp --transport http
Or stdio transport for local MCP clients:
apple-mcp --transport stdio
Using with Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"apple": {
"command": "python",
"args": ["-m", "apple_mcp", "--transport", "stdio"],
"env": {
"APPLE_ID": "you@icloud.com",
"APPLE_APP_SPECIFIC_PASSWORD": "xxxx-xxxx-xxxx-xxxx",
"APPLE_CALENDAR_NAMES": "Work",
"APPLE_REMINDER_LISTS": "Work Tasks",
"APPLE_MAIL_MODE": "read_only"
}
}
}
}
Using with Cursor or Continue.dev
Point your MCP client to the HTTP endpoint:
{
"mcpServers": {
"apple": {
"url": "http://localhost:8080/mcp",
"headers": {}
}
}
}
The HTTP transport uses the standard MCP Streamable HTTP protocol (spec 2025-03-26).
Configuration
All configuration via environment variables.
Authentication (required)
| Variable | Description |
|---|---|
APPLE_ID |
Your iCloud email address |
APPLE_APP_SPECIFIC_PASSWORD |
App-specific password (shared for all services) |
For better security, use per-service passwords instead:
| Variable | Description |
|---|---|
APPLE_CALENDAR_PASSWORD |
Password for calendar only |
APPLE_REMINDERS_PASSWORD |
Password for reminders only |
APPLE_MAIL_PASSWORD |
Password for mail only |
Service Toggles
| Variable | Default | Description |
|---|---|---|
APPLE_ENABLE_CALENDAR |
true |
Enable calendar tools |
APPLE_ENABLE_REMINDERS |
true |
Enable reminder tools |
APPLE_ENABLE_MAIL |
true |
Enable mail tools |
Calendar Scope
| Variable | Description |
|---|---|
APPLE_CALENDAR_NAMES |
Comma-separated calendar names to allow |
APPLE_CALENDAR_EXCLUDE |
Comma-separated calendar names to block |
APPLE_CALENDAR_MODE |
read_write (default) or read_only |
Reminder Scope
| Variable | Description |
|---|---|
APPLE_REMINDER_LISTS |
Comma-separated list names to allow |
APPLE_REMINDER_EXCLUDE |
Comma-separated list names to block |
APPLE_REMINDER_MODE |
read_write or read_only |
Mail Scope
| Variable | Description |
|---|---|
APPLE_MAIL_FOLDERS |
Comma-separated folder names to allow |
APPLE_MAIL_EXCLUDE_FOLDERS |
Comma-separated folder names to block |
APPLE_MAIL_MODE |
read_write or read_only |
External Mail Accounts
APPLE_MAIL_ACCOUNTS='[
{"type": "icloud", "email": "you@icloud.com", "folders_allow": ["INBOX", "Sent"]},
{"type": "external", "email": "luis@company.com", "imap_host": "mail.company.com",
"imap_port": 993, "smtp_host": "mail.company.com", "smtp_port": 587,
"password_env": "MAIL_PWD_WORK", "folders_allow": ["INBOX", "Sent"]}
]'
MAIL_PWD_WORK=your-external-mail-password
Tools Reference
Calendar — 12 tools
All functional, no stubs. Recurrence support via recurrence parameter (RRULE string). Change tracking via get_changes (ctag-based).
Reminders — 15 tools
All functional, no stubs. Recurrence support: create, list, and delete recurrence rules. Sync cursor support via get_changes.
Mail — 10 tools
All functional, no stubs. Reply support via SMTP with In-Reply-To headers. Full HTML body returned by get.
Health Check
curl http://localhost:8080/health
# {"status":"ok","version":"1.1.0","tools_registered":37}
Requirements
- Python 3.12 or later
- An Apple Account with two-factor authentication enabled
- An app-specific password (generated at account.apple.com)
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。