mail-mcp
Provides email management capabilities for iCloud accounts configured in macOS Mail.app, including search, read, send, reply, flag, move, trash, and mailbox operations.
Click on "Install 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., "@mail-mcpsearch for unread emails from Alice"
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.
mail-mcp
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.).
Prerequisites
macOS (Mail.app required)
Node.js 20+
An MCP host: Claude Desktop, Amazon Quick, or any stdio MCP client
Installation
Claude Desktop — one-click install (recommended)
Download
mail-mcp.dxtfrom the latest releaseDouble-click the
.dxtfile — Claude Desktop installs it automaticallyGrant the required macOS permissions (see below)
Manual / Amazon Quick / other hosts
npx @p-l-ta/mail-mcpOr install globally:
npm install -g @p-l-ta/mail-mcp
mail-mcpPoint your MCP host at the mail-mcp binary (stdio transport). Example config:
{
"mcpServers": {
"mail-app": {
"command": "npx",
"args": ["@p-l-ta/mail-mcp"]
}
}
}Required macOS permissions
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.
Tools
Tool | Description |
| Search messages via the Envelope Index database with rich filters |
| Read the full body of a message by its RFC message-id |
| List all configured accounts and mailboxes with unread counts |
| List recent messages in a specific mailbox |
| Grouped summary of senders with message and unread counts |
| Send a new email from one of the configured accounts |
| Reply to an existing message by RFC message-id |
| Set read and/or flagged status on a message |
| Move a message to a different mailbox |
| Move a message to Deleted Messages |
| Create a new mailbox/folder in an account |
| Mark all messages in a mailbox and/or from a sender as read |
| Extract unsubscribe URLs from a message's headers and body |
| Delete every message in a mailbox at once (Junk, Trash, etc.) |
How it works
Search & read — queries Mail's own Envelope Index SQLite database directly for fast, structured results across all accounts
Actions (send, reply, flag, move, trash) — driven by AppleScript automation against Mail.app, so they work even for accounts where messages aren't stored as local files
Development
npm install
npm run dev # tsx watch — live reload
npm test # vitest unit tests
npm run build # compile TypeScript → dist/
npm run dxt # build Claude Desktop extension → build/mail-mcp.dxtInteractive MCP testing:
npm run build
npx @modelcontextprotocol/inspector node dist/server.jsLicense
ISC
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/p-l-ta/mail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server