Provides comprehensive integration with Apple Mail, enabling AI assistants to read, search, organize, compose, and manage emails directly through natural language commands. Supports advanced email operations including threading, attachment handling, folder management, and email analytics.
Apple Mail MCP Server
A comprehensive Model Context Protocol (MCP) server that provides AI assistants with natural language access to Apple Mail. Built with FastMCP, this server enables reading, searching, organizing, composing, and managing emails directly through Claude Desktop or other MCP-compatible clients.
⨠NEW: Now includes the Email Management Expert Skill - a comprehensive Claude Code skill that teaches Claude intelligent email management workflows and productivity strategies!
Features
š§ Email Reading & Search
Inbox Overview: Dashboard view with unread counts, folder structure, and recent emails
Advanced Search: Multi-criteria search (subject, sender, attachments, read status, date ranges)
Cross-Folder Search: Search across all mailboxes or specific folders
Email Content: Full content preview with configurable length
Thread View: Conversation threading across all mailboxes
Recent Emails: Quick access to latest messages per account
š Email Organization
Mailbox Management: List and navigate folder hierarchies
Move Emails: Transfer messages between folders (supports nested mailboxes)
Status Updates: Batch mark as read/unread, flag/unflag
Trash Management: Soft delete, permanent delete, and empty trash
āļø Email Composition
Compose: Send new emails with TO, CC, BCC support
Reply: Respond to messages (single or reply-all)
Forward: Forward emails with optional custom message
Draft Management: Create, list, send, and delete drafts
š Attachment Handling
List Attachments: View all attachments with names and sizes
Save Attachments: Download specific attachments to disk
š Analytics & Export
Statistics: Comprehensive email analytics (volume, top senders, mailbox distribution)
Export: Export single emails or entire mailboxes to TXT/HTML formats
š Email Management Expert Skill
NEW: This repository now includes a comprehensive Claude Code Skill that teaches Claude how to be an expert email management assistant!
What's a Skill?
A Skill is a Claude Code feature that packages expertise and workflows, teaching Claude not just what it can do (MCP tools), but how to do it effectively. It's like giving Claude a productivity consultant for email management.
MCP + Skill = Intelligent Email Management
Apple Mail MCP (this server) = The tools (18 email functions)
Email Management Skill (skill-email-management/) = The expertise (workflows, strategies, best practices)
Together, they create an intelligent assistant that knows both the capabilities and the best ways to use them.
What You Get with the Skill
š Complete Workflows:
Inbox Zero - Achieve and maintain empty inbox
Daily Email Triage - Process emails quickly (10-15 min)
Folder Organization - Structure strategies and filing systems
Advanced Search - Find any email instantly
Bulk Operations - Clean up and organize efficiently
š§ Expert Knowledge:
Industry-standard productivity methods (GTD, Inbox Zero)
Tool orchestration patterns (when to use which tool)
Safety-first approaches (backups, limits, confirmations)
Context-aware suggestions based on inbox state
š Ready-to-Use Resources:
6 detailed documents (3,500+ lines)
Copy-paste workflow templates
Comprehensive search pattern reference
Common scenarios and solutions
Installing the Skill
The skill works alongside the MCP. Install it to your Claude Code user scope:
That's it! The skill activates automatically when you mention email management topics.
Using the Skill
Once installed, just ask Claude Code about email management:
Examples:
"Help me achieve inbox zero"
"Triage my inbox"
"How should I organize my project emails?"
"Find all emails from John about the Alpha project"
"Clean up old emails from last year"
Claude will now:
ā Recognize email management requests
ā Load expert workflows and best practices
ā Use MCP tools intelligently
ā Provide actionable step-by-step guidance
What's Inside the Skill
š
Before vs. After the Skill
Before Skill | After Skill |
"Show me my emails" | "Let me analyze your inbox state and suggest an optimal workflow" |
Uses tools individually | Orchestrates multi-step workflows intelligently |
Generic responses | Expert productivity strategies and context-aware advice |
User figures out sequences | Pre-built workflows (Inbox Zero, GTD, triage, etc.) |
š” Pro Tip: The skill and MCP are designed to work together. Install both for the complete intelligent email management experience!
Installation
Prerequisites
macOS with Apple Mail configured
Python 3.7 or higher
At least one Mail account configured in Apple Mail
Claude Desktop (for MCP Bundle installation) or any MCP-compatible client
Option 1: MCP Bundle (.mcpb) - Recommended
The easiest way to install is using the pre-built MCP Bundle:
Download the latest
.mcpb
file from the Releases pageInstall in Claude Desktop:
Open Claude Desktop settings
Navigate to Developer > MCP Servers
Click Install from file
Select the downloaded
.mcpb
fileRestart Claude Desktop
Grant permissions when prompted:
Mail.app Control
Mail Data Access
Option 2: Manual Installation
Clone the repository:
Create and activate a virtual environment:
Install dependencies:
Configure Claude Desktop by adding to
~/Library/Application Support/Claude/claude_desktop_config.json
:
Restart Claude Desktop
Building Your Own .mcpb Bundle
To build a distributable MCP Bundle:
The script will create apple-mail-mcp-v{version}.mcpb
in the parent directory.
Usage Examples
Once installed, you can interact with Apple Mail using natural language in Claude:
Reading Emails
Organizing Emails
Composing & Responding
Managing Attachments
Analytics & Export
Available Tools
The MCP server provides 20 tools:
Tool | Description |
| Comprehensive dashboard with unread counts, folders, and recent emails |
| List emails from inbox with filtering options |
| Search emails with full content preview |
| Advanced search with multiple criteria |
| Quick unread count per account |
| List all configured Mail accounts |
| Recent emails from specific account |
| List folder structure with message counts |
| Move emails between folders |
| Reply to messages |
| Send new emails |
| Forward messages |
| Mark read/unread, flag/unflag |
| Delete operations (soft/hard delete, empty trash) |
| View conversation threads |
| Draft lifecycle management |
| List attachments |
| Download attachments |
| Email analytics |
| Export to TXT/HTML |
Configuration
Email Preferences (Optional)
You can configure personal email preferences that will be provided to the AI assistant when using email tools. This helps Claude understand your preferred email accounts, defaults, and workflow.
MCP Bundle Installation (.mcpb):
When installing via the .mcpb bundle, you can set preferences through Claude Desktop:
Open Claude Desktop settings
Navigate to Developer > MCP Servers
Click on the Apple Mail MCP server
Configure Email Preferences field
Example preferences:
Manual Installation:
Add the env
section to your claude_desktop_config.json
:
What to include in preferences:
Default email account name (e.g., "BCG", "Gmail", "Personal")
Preferred maximum email results
Frequently used mailboxes/folders
Any workflow preferences
These preferences are automatically injected into every tool's description, helping Claude make better decisions aligned with your workflow.
Safety Limits
Several operations include safety limits to prevent accidental bulk actions:
update_email_status
: Default max 10 updatesmanage_trash
: Default max 5 deletionsmove_email
: Default max 1 move
These limits can be adjusted via function parameters when needed.
Permissions
On first use, macOS will prompt for permissions:
Mail.app Control: Required to automate Mail operations
Mail Data Access: Required to read email content
Grant both permissions in System Settings > Privacy & Security > Automation for full functionality.
Technical Details
Framework: FastMCP - Python MCP server framework
Automation: AppleScript for Mail.app interaction
Platform: macOS only (requires Apple Mail)
Python: 3.7+
Project Structure
Troubleshooting
Mail.app Not Responding
Ensure Mail.app is running
Check that permissions are granted in System Settings
Restart Mail.app and Claude Desktop
Slow Performance
Fetching email content is slower than metadata
Use
include_content: false
when content preview isn't neededReduce
max_results
for large searches
Mailbox Not Found
Use exact folder names as they appear in Mail.app
For nested folders, use "/" separator:
"Projects/Amplify Impact"
Some accounts (Exchange) may use different mailbox names
Permission Errors
Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes:
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature
)Commit your changes (
git commit -m 'Add amazing feature'
)Push to the branch (
git push origin feature/amazing-feature
)Open a Pull Request
Roadmap
Recent additions:
⨠Email Management Expert Skill with workflows and best practices (v1.0.0)
Future enhancements under consideration:
Smart mailbox support
Rule/filter management
Email template system
Bulk operations improvements
Enhanced search operators
Multi-account operations
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Built with FastMCP by Jeremiah Lowin
Inspired by the Model Context Protocol specification
Thanks to Anthropic for Claude Desktop, MCP support, and Claude Code Skills
Email Management Expert Skill demonstrates best practices for combining MCPs with Skills
Support
Issues: GitHub Issues
Discussions: GitHub Discussions
Changelog
See CHANGELOG.md for version history and release notes.
Made with ā¤ļø for the Claude Desktop community
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Enables AI assistants to interact with Apple Mail through natural language, providing comprehensive email management including reading, searching, composing, organizing, and analyzing emails across all configured accounts. Includes an expert skill system that teaches intelligent email workflows and productivity strategies.