mac-mail-mcp
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., "@mac-mail-mcpshow unread counts for all accounts"
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.
email-cli
Read Apple Mail.app email from the command line, straight from the local store. No OAuth, no API keys, no scripting the app — Mail keeps all envelope metadata in a SQLite database and the message bodies as .emlx files, and this reads both directly. Works with every account Mail.app is configured with (Gmail, Exchange, iCloud, IMAP), offline, and is read-only by design: it cannot send, move, or delete anything.
Same shape as things
and tt: a small
data layer, a rich-rendered CLI over the top.
email inbox
email search "invoice" --from stripe --since 2026-07-01
email show 39751Install
uv tool install "git+https://github.com/IsakRein/Productivity.Email-CLI"For development:
uv sync --extra dev
uv run pytestThe terminal needs Full Disk Access (System Settings > Privacy &
Security) to read ~/Library/Mail. email doctor tells you if it
doesn't have it.
Related MCP server: apple-mail-mcp
Commands
Command | What |
| accounts and unread summary |
| inbox messages across accounts |
| unread messages everywhere |
| subject/sender search |
| one message in full, with its body |
| every message in a conversation |
| Mail.app accounts |
| folders with message counts |
| verify the store is readable end to end |
Every read takes --json; lists take --limit N (default 25). Message
ids are Mail's own ROWIDs, shown in every table. --account accepts an
account name, username, or id prefix.
How it works
~/Library/Mail/V*/MailData/Envelope Index— SQLite with messages, subjects, addresses, mailboxes, recipients, attachments. Opened read-only.~/Library/Mail/V*/<account>/<Folder>.mbox/.../Messages/<id>.emlx— one file per downloaded message: a byte count, the raw RFC 822 message, then an Apple flags plist. Parsed with the stdlibemailpackage, preferring text/plain and falling back to stripped HTML.~/Library/Accounts/Accounts4.sqlite— account display names ("Google", "Exchange"). Optional; UUIDs are shown when unreadable.
email_cli/
db.py — Envelope Index queries, account names, dataclasses
emlx.py — locate + parse .emlx bodies
cli.py — commands + rich renderingLimitations
Read-only — no sending, moving, or deleting.
Bodies exist only for messages Mail.app has downloaded locally.
Mail.app must be (or have been) configured with the accounts.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Read, send, file and search email in any Gmail, Microsoft 365 or IMAP mailbox, plus its calendar.
- mailOAuthcom.anymailmcp
Read, send, organize, watch email on any IMAP mailbox: Gmail, iCloud, OVH, Zoho, Fastmail + CalDAV.
1 Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables integration with Apple Mail on macOS using JavaScript for Automation (JXA). Supports reading, searching, sending, and managing emails across multiple accounts with full mailbox hierarchy support.5-
- AlicenseNot gradedqualityDmaintenanceA read-only MCP server for Apple Mail on macOS that enables searching and reading emails directly from the local SQLite database, with fast SQL-level filtering and pagination.1MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that drives macOS Mail: read, search, send, organise.1MIT
- 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
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/IsakRein/Productivity.Email-CLI'
If you have feedback or need assistance with the MCP directory API, please join our Discord server