apple-mail-mcp
Provides read-only access to Apple Mail on macOS, including mail accounts, mailboxes, message headers and full content, unread messages, attachments, and search by subject or sender.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
@egorkurito/apple-mail-mcp
MCP server for Apple Mail on macOS. Provides read-only access to mail accounts, mailboxes, and messages through the Model Context Protocol.
Uses a two-layer architecture: TypeScript MCP server communicates with a Swift CLI binary (mail-bridge) that interfaces with Mail.app via NSAppleScript.
Requirements
macOS 13+ (Ventura or later)
Node.js 18+
Xcode Command Line Tools (
xcode-select --install)Mail.app configured with at least one account
Related MCP server: Mac Local Mail MCP
Installation
Claude Desktop / Claude Code
Add to your MCP configuration:
{
"mcpServers": {
"apple-mail": {
"command": "npx",
"args": ["-y", "@egorkurito/apple-mail-mcp"]
}
}
}Global install
npm install -g @egorkurito/apple-mail-mcpThen configure MCP:
{
"mcpServers": {
"apple-mail": {
"command": "apple-mail-mcp"
}
}
}Manual (with custom binary path)
{
"mcpServers": {
"apple-mail": {
"command": "node",
"args": ["/path/to/build/index.js"],
"env": {
"MAIL_BRIDGE_BIN": "/path/to/swift/.build/release/mail-bridge"
}
}
}
}Available Tools
Tool | Description |
| List all mail accounts (name, email, type, enabled) |
| List mailboxes with unread/message counts and nested folders |
| Get message headers from a mailbox with pagination (newest first) |
| Get full message content including body, recipients, and attachments |
| List unread messages across all accounts or filtered by account/mailbox |
| Search messages by subject or sender |
Permissions
On first run, macOS will ask you to grant automation permissions. Go to:
System Settings > Privacy & Security > Automation and allow mail-bridge (or Terminal/iTerm) to control Mail.app.
Troubleshooting
"Mail.app access denied" (-1743) Grant automation permissions in System Settings > Privacy & Security > Automation.
Empty results Make sure Mail.app is running and at least one account is connected.
Swift build fails during install
Ensure Xcode Command Line Tools are installed: xcode-select --install
Slow queries
Reduce the limit parameter or specify a specific account/mailbox to narrow the search.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect Gmail, iCloud Mail, Outlook, Yahoo Mail, Fastmail and other IMAP inboxes to ChatGPT, Claude and compatible AI assistants. Find emails by meaning across languages with semantic search. Ask AI to find customer conversations, summarize deadlines and draft follow-ups. Give a sales rep access to a shared outreach inbox or bring email into a compatible CRM. Share an iCloud custom-domain inbox with teammates without their own Apple ID or iCloud+ plan. Search results may be incomplete or stale; separate permissions control mail actions.
Your mailboxes in ChatGPT and Claude: Gmail, iCloud, Fastmail, any IMAP. Passwords stay yours.
Mac & Windows: let ChatGPT, Claude & Cursor use your email, calendar, iMessage, Teams, files.
Mail, Calendar, Messages, Notes, Contacts, Slack on your Mac for AI. Remote needs Pro or free trial.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables using Apple Mail accounts to search, read, manage, draft, and send messages from Codex or Claude Code locally.MIT
- AlicenseNot gradedqualityDmaintenanceEnables MCP clients to search, read, and inspect Apple Mail on macOS, including conversations and attachments. It can create new, reply, reply-all, or forward drafts, but cannot send or modify existing messages.MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to read, search, send, and manage email on macOS through programmatic access to Apple Mail.29MIT
- AlicenseAqualityBmaintenanceEnables searching and reading email across permitted accounts and mailboxes on macOS, plus optionally saving drafts for review, without sending or deleting messages.5MIT