Apple Mail MCP Server
A Model Context Protocol (MCP) server that enables AI assistants like Claude to read, send, search, and manage emails in Apple Mail on macOS.

Note: This is the npm/Node.js package — install with npx or npm. There is an unrelated Python project of the same name on PyPI (imdinu/apple-mail-mcp) installed via pipx/uvx. If you're using uvx and seeing a cyclopts dependency error, you're looking for that project, not this one.
What is This?
This server acts as a bridge between AI assistants and Apple Mail. Once configured, you can ask Claude (or any MCP-compatible AI) to:
- "Check my inbox for unread messages"
- "Find emails from [email protected]"
- "Send an email to the team about the meeting"
- "Create a draft email for me to review"
- "Reply to that message"
- "Forward this to my colleague"
- "Move old newsletters to the Archive folder"
The AI assistant communicates with this server, which then uses AppleScript to interact with the Mail app on your Mac. All data stays local on your machine.
Quick Start
Using Claude Code (Easiest)
If you're using Claude Code (in Terminal or VS Code), just ask Claude to install it:
Install the sweetrb/apple-mail-mcp MCP server so you can help me manage my Apple Mail
Claude will handle the installation and configuration automatically.
Or register it deterministically in one command:
claude mcp add apple-mail -s user -- npx -y apple-mail-mcp
Using the Plugin Marketplace
Install as a Claude Code plugin for automatic configuration and enhanced AI behavior:
/plugin marketplace add sweetrb/apple-mail-mcp
/plugin install apple-mail
This method also installs a skill that teaches Claude when and how to use Apple Mail effectively.
Configuring IMAP/SMTP for a plugin install: a plugin install has no editable env block,
so supply settings via the config file at ~/Library/Application Support/apple-mail-mcp/config.json
— Method B in the IMAP / SMTP Setup Guide.
Passwords stay in the macOS Keychain; run the doctor tool to verify.
Using the Codex Marketplace
See Apple Mail in Codex for setup and diagnostics, and the
guided setup and OAuth proposal for proposed
future authorization support.
Install the same public marketplace in Codex:
codex plugin marketplace add sweetrb/apple-mail-mcp
codex plugin add apple-mail@apple-mail-mcp
The Codex package includes a portable codex/plugin.json, typed stdio server
configuration in codex/mcp.json, the Apple Mail skill, and the existing assets.
It retains codex/.codex-plugin/plugin.json and codex/.mcp.json for compatible
older hosts. Both layouts register the same apple-mail MCP identity through
npx -y apple-mail-mcp@<plugin version>. Release synchronization updates both
runtime pins and manifest metadata; tests and CI reject drift. An unreleased
candidate can be discovered locally, but its exact npm version must be
published before that pinned launcher can be installed from the registry.
For ongoing upstream updates, keep the Git marketplace configured. After a new
release is published, refresh its catalog:
codex plugin marketplace upgrade apple-mail-mcp
Install the published plugin version from the refreshed marketplace, then start
a new Codex session. The refresh does not replace the runtime pin with @latest;
the plugin and its pinned npm runtime must refer to the same available release.