MCP server giving AI assistants full access to Apple Mail - read, search, compose, organize & analyze emails via natural language
# Add to your Claude Code skills
git clone https://github.com/patrickfreyer/apple-mail-mcpGuides for using ai agents skills like apple-mail-mcp.
Last scanned: 5/30/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-30T16:20:08.714Z",
"npmAuditRan": true,
"pipAuditRan": true
}See how apple-mail-mcp compares with popular alternatives.
apple-mail-mcp is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by patrickfreyer. MCP server giving AI assistants full access to Apple Mail - read, search, compose, organize & analyze emails via natural language. It has 274 GitHub stars.
Yes. apple-mail-mcp passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/patrickfreyer/apple-mail-mcp" and add it to your Claude Code skills directory (see the Installation section above).
apple-mail-mcp is primarily written in Python. It is open-source under patrickfreyer on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh apple-mail-mcp against similar tools.
No comments yet. Be the first to share your thoughts!
From $49 · 30 days · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
An MCP server that gives AI assistants full access to Apple Mail -- read, search, compose, organize, and analyze emails via natural language. Built with FastMCP.
Prerequisites: macOS with Apple Mail configured, Python 3.10+, and uv (the plugin and uvx installs launch the server with uvx)
Two commands — gets you the MCP server, /email-management slash command, and the Email Management Expert skill:
claude plugin marketplace add patrickfreyer/apple-mail-mcp
claude plugin install apple-mail@apple-mail-mcp
Then restart Claude Code.
With uv installed (uvx available on your PATH), register the local STDIO server:
codex mcp add apple-mail -- uvx mcp-apple-mail
codex mcp list
Alternatively, add this table to ~/.codex/config.toml instead of using the CLI:
[mcp_servers.apple-mail]
command = "uvx"
args = ["mcp-apple-mail"]
The CLI, desktop app, and IDE extension share this configuration. Restart your client or start a new CLI session after adding the server. In the CLI, use /mcp to check the connection, then ask it to list your Apple Mail accounts.
If the desktop app cannot find uvx, run command -v uvx in your terminal and use that absolute path as the TOML command value. Grant the macOS Automation permission to control Mail when prompted; see Troubleshooting.
This registers the MCP server. To install the optional Email Management Expert skill too, use the npx skills method below. See the official Codex MCP documentation for more configuration options.
claude mcp add apple-mail -- uvx mcp-apple-mail
Or for Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"apple-mail": {
"command": "uvx",
"args": ["mcp-apple-mail"]
}
}
}
pip install mcp-apple-mail
claude mcp add apple-mail -- mcp-apple-mail
Installs the Email Management Expert skill via the open skills CLI. The skill does not include the MCP server, so install that too (e.g. with uvx above):
npx skills add patrickfreyer/apple-mail-mcp
claude mcp add apple-mail -- uvx mcp-apple-mail
Add -g to install the skill globally, or -a <agent> to target a specific agent.
apple-mail-mcp-vX.Y.Z.mcpb from Releases.mcpb file and grant Mail.app permissionsgit clone https://github.com/patrickfreyer/apple-mail-mcp.git
cd apple-mail-mcp/plugin
python3 -m venv venv
venv/bin/pip install -r requirements.txt
claude mcp add apple-mail -- /bin/bash $(pwd)/start_mcp.sh
| Tool | Description |
|---|---|
get_inbox_overview |
Dashboard with unread counts, folders, and recent emails |
list_inbox_emails |
List emails with account/read-status filtering and optional content preview |
get_mailbox_unread_counts |
Unread counts per mailbox or per-account summary |
list_accounts |
List all configured Mail accounts |
list_account_addresses |
Email addresses configured for each account |
search_emails |
Unified search — subject, sender, body text, dates, attachments, flag status/color, cross-account |
read_email |
Read one message by numeric id — headers, capped plain-text body and attachment metadata (text or JSON) |
get_email_thread |
Conversation thread view |
get_email_source |
Raw RFC 822 source of one message (headers, MIME parts) |
| Tool | Description |
|---|---|
list_mailboxes |
Folder hierarchy with message counts |
create_mailbox |
Create new mailboxes (supports nested paths) |
move_email |
Move/archive emails with filters (subject, sender, date, read status, dry-run) |
update_email_status |
Mark read/unread, flag/unflag (optional flag color) — by filters or message IDs |
manage_trash |
Soft delete, permanent delete, empty trash (with dry-run) |
synchronize_account |
Ask Mail.app to check the server for new mail now |
| Tool | Description |
|---|---|
compose_email |
Send new emails (plain text or HTML body) |
reply_to_email |
Reply or reply-all with optional HTML body |
forward_email |
Forward with optional message, CC/BCC; mode="draft" saves it without a window, keeping the original attachments |
manage_drafts |
Create, list, open, send, and delete drafts, by subject or draft id |
create_rich_email_draft |
Export an unsent HTML .eml preview; Mail opens it in a read-only viewer. Use compose_email(mode="draft") for a sendable draft |
| Tool | Description |
|---|---|
list_email_attachments |
List attachments with names and sizes |
save_email_attachment |
Save attachments to disk |
| Tool | Description |
|---|---|
get_awaiting_reply |
Find sent emails that haven't received a reply |
get_needs_response |
Identify emails that likely need your response |
get_top_senders |
Analyse most frequent senders by count or domain |
| Tool | Description |
|---|---|
get_statistics |
Email analytics (volume, top senders, read ratios) |
export_emails |
Export single emails or mailboxes to TXT/HTML |
inbox_dashboard |
Interactive UI dashboard (requires mcp-ui-server) |
Pass --read-only to block delivery. Nothing leaves the machine: compose_email, reply_to_email and forward_email refuse mode="send", and manage_drafts refuses action="send".
The composing tools stay registered so that mode="draft" and mode="open" keep working. Those never deliver anything, and they are the only place in the compose surface that supports attachments — manage_drafts and create_rich_email_draft cannot attach files.
{
"mcpServers": {
"apple-mail": {
"command": "/path/to/venv/bin/python3",
"args": ["/path/to/apple_mail_mcp.py", "--read-only"]
}
}
}
Set the USER_EMAIL_PREFERENCES environment variable to give the assistant context about your workflow:
{
"mcpServers": {
"apple-mail": {
"command": "/path/to/venv/bin/python3",
"args": ["/path/to/apple_mail_mcp.py"],
"env": {
"USER_EMAIL_PREFERENCES": "Default to BCG account, show max 50 emails, prefer Archive and Projects folders"
}
}
}
}
For .mcpb installs, configure this in Claude Desktop under Developer > MCP Servers > Apple Mail MCP.
Batch operations have conservative defaults to prevent accidental bulk actions:
| Operation | Default Limit |
|---|---|
update_email_status |
10 emails |
manage_trash |
5 emails |
move_email |
1 email |
Override via function parameters when needed.
By default the server can write and attach files anywhere your user account can, except a hardened denylist of locations an attacker could use for code execution or credential theft. (Attachment bytes come from whoever emailed you, and a prompt-injected email can steer tool arguments.)
Writes (save_email_attachment, export_emails, create_rich_email_draft's output_path) are refused for:
~/.zshrc, ~/.zshenv, ~/.zprofile, ~/.zlogin, ~/.bashrc, ~/.bash_profile, ~/.profile), ~/.ssh, ~/.gnupg, ~/.aws, ~/.config (incl. ~/.config/git), ~/.gitconfig, ~/.netrc, ~/.envrc, ~/.local/bin, ....git/hooks, .git/config and .envrc in any folder~/Library/LaunchAgents, ~/Library/LaunchDaemons, /Library/LaunchAgents, /Library/LaunchDaemons, ~/Library/Application Support (incl. com.apple.backgroundtaskmanagementagent), ~/Library/Application Scripts, `~/Library/Pr