apple-mail-mcp
Reads and manages email in Apple's Mail.app: lists accounts, mailboxes and messages, searches across accounts and mailboxes by subject/sender/body with date, unread and flagged filters, fetches full message content and attachment lists, marks messages read/unread, flags, junks, moves or trashes them, and composes new mails and replies (as drafts or sent immediately).
Drives the scriptable macOS Mail.app through JavaScript for Automation (JXA), exposing every account configured in Mail (iCloud, Gmail, Outlook/Exchange, QQ, 163, etc.) as tools for listing, searching, reading and managing mail without needing passwords or OAuth, including flag/move/trash operations and draft creation or sending.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@apple-mail-mcpsearch my inbox for unread emails from Sarah about the project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
apple-mail-mcp
An MCP server that lets Claude (or any MCP client) read and manage email in macOS Mail.app. It talks to Mail through JavaScript for Automation (JXA), so every account you have added to Mail works: iCloud, Gmail, Outlook/Exchange, QQ, 163, school accounts, and so on. You don't need passwords, API keys, or OAuth.
Tools
Tool | What it does |
| All accounts with their addresses and mailboxes (message and unread counts) |
| Messages newest first; omit the account to read the unified inbox |
| Search across all accounts and mailboxes by subject, sender or body, with date / unread / flagged filters |
| Full message: recipients, attachments list, plain-text body, optional raw headers |
| Mark read/unread, flag/unflag, mark junk, move to another mailbox or account |
| Move to the account's trash (recoverable) |
| New email. Saved as a draft and opened in Mail by default; |
| Reply / reply all. Also draft-by-default |
Messages are addressed by account + mailbox + id, all of which are returned by the list and search tools.
Related MCP server: mcp-mail-macos
Requirements
macOS with Mail.app set up
Node.js 18+
Install
git clone https://github.com/KristianLi/apple-mail-mcp.git
cd apple-mail-mcp
npm ciClaude Code
claude mcp add --scope user apple-mail -- node /absolute/path/to/apple-mail-mcp/server.jsClaude Desktop
Add this to ~/Library/Application Support/Claude/claude_desktop_config.json, then restart Claude:
{
"mcpServers": {
"apple-mail": {
"command": "node",
"args": ["/absolute/path/to/apple-mail-mcp/server.js"]
}
}
}If Claude can't find node, use its absolute path (which node), for example /opt/homebrew/bin/node.
Permissions
The first time a tool runs, macOS asks whether the app may control Mail. Allow it. You can change this later in System Settings → Privacy & Security → Automation.
Notes
Mail.app is launched automatically if it isn't running.
Gmail labels show up as mailboxes in Mail, so one message can appear in several of them (INBOX, All Mail, Important…).
Mail doesn't allow editing the body of a received message. "Editing" means flags, moves, trash, drafts and replies.
Mail's own scripted
replycommand drops the body text, soreplybuilds the reply itself (recipients,Re:subject, quoted original). Clients that thread strictly byIn-Reply-Tomay not group it with the original.Searching by
contentacross every mailbox can be slow on large mailboxes; narrow it withaccount,mailboxorsince.
License
中文说明
一个 MCP 连接器,让 Claude 通过 macOS「邮件」App 读取和管理邮件。Mail 里添加的所有账户(iCloud、Gmail、Outlook、QQ、163、学校邮箱等)都能用,不需要任何密码或授权。
功能:列出账户和文件夹、按时间列邮件(不填账户就是统一收件箱)、跨所有邮箱搜索、读取全文和附件列表、标记已读或旗标、移动、移到废纸篓、写新邮件和回复。新邮件和回复默认只存草稿并在 Mail 中打开,设置 send: true 才会直接发送。
安装:按上面的步骤 git clone 后运行 npm ci,再用 claude mcp add 或修改 claude_desktop_config.json 注册。第一次使用时,macOS 会询问是否允许控制「邮件」,点"允许"即可。
This server cannot be deployed
Maintenance
Related MCP Connectors
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Your IMAP mailbox as an MCP server: read, search and (if you allow it) organize mail. Open source.
Hosted email MCP for your own Gmail, Outlook.com, Microsoft 365, iCloud or IMAP inbox: read, search, draft, reply in thread, forward and file mail. It moves or flags up to 500 messages in one call, and a send leaves exactly one copy in Sent. A calendar is a separate connection, and connecting one adds diary and scheduling tools.
MCP server for Nylas — read email, calendars, events and contacts, and send email or create events.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server that gives Claude and other MCP hosts full access to Mail.app on macOS — search, read, send, reply, flag, move, and more across all accounts configured in Mail.app.2436 npm1MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that drives macOS Mail: read, search, send, organise.MIT
- AlicenseNot gradedqualityBmaintenanceEnables 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
- AlicenseNot gradedqualityBmaintenanceProvides MCP servers to interact with Apple's Mail, Notes, Reminders, and Calendar apps on macOS, enabling search, read, and write operations with configurable permissions and a single Full Disk Access grant.5MIT