MCP Apple Mail
Provides comprehensive Apple Mail integration with tools for managing emails, accounts, and mailboxes - including reading, searching, sending, marking as read, and deleting emails across configured accounts.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Apple Mail Desktop Extension
A desktop extension for Claude that provides seamless Apple Mail integration through the Model Context Protocol (MCP) using JXA (JavaScript for Automation).
Features
✨ No String Parsing - Uses JXA to return native JavaScript objects 🎯 Type-Safe - Full TypeScript support with interfaces 📧 Complete Mail Support - Read, search, send, manage emails 🔐 Account-Specific Sending - Send from any configured account 📁 Hierarchical Mailboxes - Full mailbox tree structure support
Related MCP server: Apple Mail MCP Server
Installation
As a Desktop Extension (Recommended)
Download the
apple-mail.mcpbextension packageDouble-click to install in Claude Desktop
Configure your preferences in the Claude Desktop settings
Manual Installation
For development or manual setup:
# Clone the repository
git clone https://github.com/LionSR/mcp-apple-mail
cd mcp-apple-mail
# Install dependencies
npm install
# Build the extension
npm run build
# Create the MCPB package
npm run packThen add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"apple-mail": {
"command": "node",
"args": ["/path/to/mcp-apple/dist/index.js"],
"env": {
"MAIL_ENABLED_ACCOUNTS": "${user_config.enabled_accounts}",
"MAIL_DISABLED_ACCOUNTS": "${user_config.disabled_accounts}",
"MAIL_SEARCH_DEFAULT_LIMIT": "${user_config.search_limit}",
"MAIL_PRIORITY_MAILBOXES": "${user_config.priority_mailboxes}",
"MAIL_JXA_TIMEOUT": "${user_config.jxa_timeout}",
"MAIL_MAX_MAILBOXES_CHECK": "${user_config.max_mailboxes_check}",
"MAIL_MESSAGES_PER_MAILBOX": "${user_config.messages_per_mailbox}"
}
}
}
}Configuration
When installed as a desktop extension, you can configure the following settings through the Claude Desktop UI:
Setting | Description | Default |
Enabled Accounts | Comma-separated list of account names to enable | All accounts |
Disabled Accounts | Comma-separated list of account names to disable | None |
Search Limit | Default number of results for search operations | 20 |
Priority Mailboxes | Comma-separated list of priority mailbox names | INBOX, Sent Messages, Sent, Drafts |
JXA Timeout | Timeout for JXA operations (ms) | 30000 |
Max Mailboxes | Maximum mailboxes to check in operations | 10 |
Messages per Mailbox | Messages to check per mailbox | 50 |
Note: If both MAIL_ENABLED_ACCOUNTS and MAIL_DISABLED_ACCOUNTS are specified, only accounts in the enabled list will be active.
Available Tools
mail_get_accounts
Get all configured email accounts.
mail_get_mailboxes
Get mailbox hierarchy for a specific account.
mail_get_unread
Get unread emails (with configurable limit).
mail_search
Search emails by text content.
mail_get_latest
Get latest emails from a specific account.
mail_send
Send email from a specific account.
mail_mark_read
Mark emails as read by ID.
mail_delete
Delete emails by ID.
Technical Details
JXA Implementation
This implementation uses JavaScript for Automation (JXA) instead of traditional AppleScript, which provides:
Direct JavaScript object returns (no parsing!)
Clean error handling
Type safety with TypeScript
ISO date formats
Proper arrays and nested structures
Example Response
// getAccounts() returns:
[
{
name: "Work",
emailAddresses: ["user@company.com"],
enabled: true,
id: "ABC-123-DEF"
},
// ...
]
// No string parsing needed!Development
# Run in development mode
npm run dev
# Run tests
npm run test
# Build for production
npm run build
# Create MCPB package
npm run packRequirements
macOS (for Apple Mail access)
Node.js 16+ and npm
Apple Mail configured with at least one account
License
MIT
Credits
Clean implementation without string parsing, built with JXA for maximum reliability and performance.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…
Connect Gmail, iCloud Mail, Outlook, Yahoo Mail, Fastmail and other IMAP inboxes to ChatGPT, Claude and compatible AI assistants. Find emails by meaning across languages with semantic search. Ask AI to find customer conversations, summarize deadlines and draft follow-ups. Give a sales rep access to a shared outreach inbox or bring email into a compatible CRM. Share an iCloud custom-domain inbox with teammates without their own Apple ID or iCloud+ plan. Search results may be incomplete or stale; separate permissions control mail actions.
Connect any mailbox to Claude, ChatGPT & AI: read, send, reply, schedule & search emails.
Email for AI agents: read, search and send from your Gmail, Outlook, Yahoo, iCloud or IMAP inbox.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables using Apple Mail accounts to search, read, manage, draft, and send messages from Codex or Claude Code locally.MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to read, search, send, and manage email on macOS through programmatic access to Apple Mail.29MIT
- AlicenseAqualityBmaintenanceEnables macOS users to programmatically read, send, search, and manage Apple Mail messages, including drafts, mailboxes, attachments, rules, and templates.25MIT
- AlicenseNot gradedqualityBmaintenanceEnables controlling Apple Mail on macOS through JavaScript for Automation, using already-configured accounts without passwords. Supports listing accounts and mailboxes, searching and reading messages, managing folders and message state, handling drafts and attachments, and moving, trashing, or sending mail.21 npmMIT