Apple MCP Server
Enables Claude to interact with Apple services including Email, Calendar, Contacts, Reminders, Notes, Messages, and Safari via AppleScript (macOS) or iCloud protocols.
README
<p align="center"> <img src="https://img.icons8.com/color/96/icloud.png" alt="iCloud Logo" width="80"/> </p>
<h1 align="center">Apple MCP Server</h1>
<p align="center"> <strong>Connect Claude to your Apple services via the Model Context Protocol</strong> </p>
<p align="center"> <a href="#features">Features</a> • <a href="#installation">Installation</a> • <a href="#configuration">Configuration</a> • <a href="#tools">Tools</a> • <a href="#architecture">Architecture</a> </p>
<p align="center"> <img src="https://img.shields.io/badge/node-%3E%3D18.0.0-brightgreen" alt="Node Version"/> <img src="https://img.shields.io/badge/license-MIT-blue" alt="License"/> <img src="https://img.shields.io/badge/MCP-compatible-purple" alt="MCP Compatible"/> <img src="https://img.shields.io/badge/macOS-AppleScript-orange" alt="macOS"/> <img src="https://img.shields.io/badge/iCloud-IMAP%20%7C%20CalDAV%20%7C%20CardDAV-lightgrey" alt="Protocols"/> </p>
Overview
This MCP server enables Claude to interact with your Apple services in two modes:
Local Mode (Default) - macOS Only
Uses AppleScript to access native macOS apps. Faster, works offline, more services.
| Service | App | Tools |
|---|---|---|
| Mail.app | 6 | |
| Calendar | Calendar.app | 5 |
| Contacts | Contacts.app | 5 |
| Reminders | Reminders.app | 7 |
| Notes | Notes.app | 5 |
| Messages | Messages.app | 1 |
| Safari | Safari.app | 4 |
Cloud Mode - Works Anywhere
Uses iCloud protocols (IMAP, CalDAV, CardDAV). Requires app-specific password.
| Service | Protocol | Endpoint |
|---|---|---|
| IMAP / SMTP | imap.mail.me.com / smtp.mail.me.com |
|
| Calendar | CalDAV | caldav.icloud.com |
| Contacts | CardDAV | contacts.icloud.com |
Features
- 31 Tools in local mode (17 in cloud mode)
- Dual Mode - switch between local (fast) and cloud (remote access)
- 7 Services - Email, Calendar, Contacts, Reminders, Notes, Messages, Safari
- Secure Authentication - AppleScript permissions or app-specific passwords
- Full CRUD - create, read, update, delete across services
Installation
# Clone the repository
git clone https://github.com/MrGo2/icloud-mcp.git
cd icloud-mcp
# Install dependencies
npm install
# Configure (optional for local mode)
cp .env.example .env
Configuration
Local Mode (Default)
No configuration needed! Just run:
npm start
On first use, macOS will prompt for access to each app. Grant permission in System Settings > Privacy & Security > Automation.
Cloud Mode
-
Generate an App-Specific Password
- Go to appleid.apple.com
- Sign in → Security → App-Specific Passwords → Generate
- Name it
iCloud MCPand copy the 16-character password
-
Configure
.envUSE_LOCAL_MODE=false ICLOUD_EMAIL=your-email@icloud.com ICLOUD_APP_PASSWORD=xxxx-xxxx-xxxx-xxxx
Add to Claude Desktop
Add to your Claude Desktop MCP settings (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"apple": {
"command": "node",
"args": ["/path/to/icloud-mcp/index.js"]
}
}
}
Tools
Authentication (2)
| Tool | Description |
|---|---|
about |
Server information |
check-auth-status |
Verify credentials |
Email (6)
| Tool | Description |
|---|---|
list-emails |
List emails from a folder |
read-email |
Read full email content |
send-email |
Compose and send email |
search-emails |
Search by criteria |
mark-as-read |
Mark read/unread |
list-folders |
List mail folders |
Calendar (5)
| Tool | Description |
|---|---|
list-events |
List upcoming events |
list-calendars |
List all calendars |
create-event |
Create new event |
update-event |
Update existing event |
delete-event |
Delete an event |
Contacts (5)
| Tool | Description |
|---|---|
list-contacts |
List contacts |
search-contacts |
Search by name/email |
read-contact |
Get contact details |
create-contact |
Create new contact |
delete-contact |
Delete a contact |
Reminders (7) - Local Only
| Tool | Description |
|---|---|
list-reminder-lists |
List all reminder lists |
list-reminders |
List reminders from a list |
create-reminder |
Create new reminder |
update-reminder |
Update reminder |
complete-reminder |
Mark as complete |
delete-reminder |
Delete reminder |
search-reminders |
Search reminders |
Notes (5) - Local Only
| Tool | Description |
|---|---|
list-note-folders |
List note folders |
list-notes |
List notes |
read-note |
Read note content |
create-note |
Create new note |
search-notes |
Search notes |
Messages (1) - Local Only
| Tool | Description |
|---|---|
send-message |
Send iMessage/SMS |
Safari (4) - Local Only
| Tool | Description |
|---|---|
list-safari-tabs |
List open tabs |
get-current-safari-url |
Get current tab URL |
open-safari-url |
Open URL in new tab |
close-safari-tab |
Close a tab |
Architecture
icloud-mcp/
├── index.js # MCP server (mode switching)
├── config.js # Configuration
├── auth/ # Credential management
├── email/
│ ├── imap-client.js # Cloud: IMAP
│ ├── smtp-client.js # Cloud: SMTP
│ ├── local-client.js # Local: Mail.app
│ └── index.js
├── calendar/
│ ├── caldav-client.js # Cloud: CalDAV
│ ├── local-client.js # Local: Calendar.app
│ └── index.js
├── contacts/
│ ├── carddav-client.js # Cloud: CardDAV
│ ├── local-client.js # Local: Contacts.app
│ └── index.js
├── reminders/ # Local only
├── notes/ # Local only
├── messages/ # Local only
├── safari/ # Local only
└── utils/
├── applescript.js # AppleScript executor
├── date-utils.js
└── error-handler.js
Usage Examples
List Reminders
"Show me my reminders for today"
Create a Reminder
"Create a reminder to buy milk tomorrow at 5pm"
Send a Message
"Send an iMessage to +34612345678 saying I'll be there in 10 minutes"
Check Safari Tabs
"What tabs do I have open in Safari?"
Send Email
"Send an email to john@example.com with subject 'Meeting Tomorrow'"
Mode Comparison
| Feature | Local Mode | Cloud Mode |
|---|---|---|
| Speed | Fast (~100ms) | Slower (~500ms+) |
| Works offline | ✅ | ❌ |
| Remote access | ❌ | ✅ |
| Services | 7 | 3 |
| Tools | 31 | 17 |
| Requirements | macOS | App-specific password |
Limitations
| Feature | Status | Reason |
|---|---|---|
| Read Messages | ❌ | macOS security limitation |
| Edit Notes | ⚠️ Limited | AppleScript limitation |
| iCloud Drive | ❌ | Requires CloudKit |
| Find My | ❌ | Internal API only |
Troubleshooting
| Issue | Solution |
|---|---|
| Permission denied | Grant access in System Settings > Privacy & Security > Automation |
| App not responding | Make sure the app (Mail, Calendar, etc.) is running |
| Authentication failed (cloud) | Use app-specific password, not Apple ID password |
| IMAP timeout (cloud) | iCloud servers can be slow - retry |
Development
# Run in local mode (default)
npm start
# Run in cloud mode
USE_LOCAL_MODE=false npm start
# Test with MCP Inspector
npm run inspect
License
MIT © Carlos Lorenzo
<p align="center"> <sub>Built for use with <a href="https://claude.ai">Claude</a> and the <a href="https://modelcontextprotocol.io">Model Context Protocol</a></sub> </p>
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。