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.
mac-mail-mcp
MCP server that reads your Apple Mail.app data directly from the local SQLite database. No OAuth, no API keys — just local file access.
Works with any email account configured in Mail.app (Gmail, Outlook/Exchange, iCloud, IMAP).
Tools
Tool | Description |
| List all email accounts configured in Mail.app |
| List mailbox folders with message counts |
| Search by subject, sender, date range, folder |
| Get full email with body (from .emlx files) |
| Get all messages in a conversation |
| Unread counts per folder/account |
Related MCP server: apple-mail-mcp
Setup
cd /path/to/mac-mail-mcp
npm install
npm run buildGlobal (all Claude Code sessions)
Add to ~/.claude.json:
{
"mcpServers": {
"mac-mail": {
"command": "node",
"args": ["/path/to/mac-mail-mcp/dist/index.js"]
}
}
}Project-only
Add a .mcp.json in your project root:
{
"mcpServers": {
"mac-mail": {
"command": "node",
"args": ["/path/to/mac-mail-mcp/dist/index.js"]
}
}
}How it works
Mail.app stores all email metadata in a SQLite database at ~/Library/Mail/V*/MailData/Envelope Index and message bodies as .emlx files. This server reads both to give you full access to your email.
Requirements
macOS with Mail.app configured
Node.js 18+
Full Disk Access may be required for the process reading the database
Limitations
Read-only — cannot send, move, or delete emails
Message bodies are only available for emails Mail.app has downloaded locally
Mail.app must be configured with the accounts you want to access
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 Servers
- Flicense-qualityDmaintenanceEnables 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.Last updated5
- AlicenseAqualityAmaintenanceEnables AI assistants to read, send, search, and manage emails in Apple Mail on macOS.Last updated2598MIT
- Alicense-qualityDmaintenanceEnables AI agents to fetch emails from local Apple Mail accounts and mailboxes, and parse Google Scholar alert emails to extract paper titles and links.Last updatedMIT
- Alicense-qualityDmaintenanceA 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.Last updatedMIT
Related MCP Connectors
Explore your Messages SQLite database to browse tables and inspect schemas with ease. Run flexible…
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
Read your own DMARC aggregate and forensic reports: sources, alignment, alerts, CSV export.
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