Search, read, send, and manage email via macOS Mail.app across all configured accounts.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"io-github-p-l-ta-mail-mcp": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
MCP server that gives Claude (and other MCP hosts) full access to Mail.app on macOS — search, read, send, reply, flag, move, and more — across every account configured in Mail.app (iCloud, Exchange, IMAP, etc.).
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in communication
An MCP server that securely interfaces with your iMessage database via the Model Context Protocol (MCP), allowing LLMs to query and analyze iMessage conversations. It includes robust phone number validation, attachment processing, contact management, group chat handling, and full support for sending and receiving messages.
Asynchronous coordination layer for AI coding agents: identities, inboxes, searchable threads, and advisory file leases over FastMCP + Git + SQLite
MCP server for Kaseya Autotask PSA — 39 tools for companies, tickets, projects, time entries, and more
Email & SMS infrastructure for AI agents — send and receive real email and text messages programmatically
MCP Security Weekly
Get CVE alerts and security updates for io.github.p-l-ta/mail-mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
MCP server that gives Claude (and other MCP hosts) full access to Mail.app on macOS — search, read, send, reply, flag, move, and more — across every account configured in Mail.app (iCloud, Exchange, IMAP, etc.).
mail-mcp.mcpb from the latest release.mcpb file — Claude Desktop installs it automaticallynpx @p-l-ta/mail-mcp
Or install globally:
npm install -g @p-l-ta/mail-mcp
mail-mcp
Point your MCP host at the mail-mcp binary (stdio transport). Example config:
{
"mcpServers": {
"mail-app": {
"command": "npx",
"args": ["@p-l-ta/mail-mcp"]
}
}
}
Grant these to the application that runs the MCP host (Claude Desktop, Amazon Quick, etc.):
| Permission | Where to grant |
|---|---|
| Full Disk Access | System Settings → Privacy & Security → Full Disk Access |
| Automation → Mail | System Settings → Privacy & Security → Automation |
The MCP server process inherits permissions from the host application that launches it.
| Tool | Description |
|---|---|
search_emails | Search messages via the Envelope Index database with rich filters |
read_email | Read the full body of a message by its RFC message-id |
list_accounts_and_mailboxes | List all configured accounts and mailboxes with unread counts |
list_recent | List recent messages in a specific mailbox |
list_senders | Grouped summary of senders with message and unread counts |
send_email | Send a new email from one of the configured accounts |
reply_to_email | Reply to an existing message by RFC message-id |
set_message_flags | Set read and/or flagged status on a message |
move_email | Move a message to a different mailbox |
trash_email | Move a message to Deleted Messages |
create_mailbox | Create a new mailbox/folder in an account |
bulk_mark_read | Mark all messages in a mailbox and/or from a sender as read |
get_unsubscribe_link | Extract unsubscribe URLs from a message's headers and body |
empty_mailbox | Delete every message in a mailbox at once (Junk, Trash, etc.) |
npm install
npm run dev # tsx watch — live reload
npm test # vitest unit tests
npm run build # compile TypeScript → dist/
npm run mcpb # build Claude Desktop extension → build/mail-mcp.mcpb
Interactive MCP testing:
npm run build
npx @modelcontextprotocol/inspector node dist/server.js
mail-mcp is a local MCP server that runs entirely on your Mac. It has no backend, no telemetry, and makes no network requests of its own.
What it accesses:
~/Library/Mail/) — read-only, used for search queriesWhat it does NOT do:
All email data stays on your device and is only passed to the MCP host (Claude Desktop or another client) as part of normal tool responses. You control exactly which tools Claude can invoke.
MIT