Apple Mail

v0.1.2β€’Communicationβ€’stable

🐍 🏠 🍎 - Fast MCP server for Apple Mail β€” 87x faster email fetching via batch JXA and FTS5 search

apple-mailautomationclaudeemailfts5
Share:
26
Stars
0
Downloads
0
Weekly
0/5

What is Apple Mail?

Apple Mail is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 🐍 🏠 🍎 - fast mcp server for apple mail β€” 87x faster email fetching via batch jxa and fts5 search

🐍 🏠 🍎 - Fast MCP server for Apple Mail β€” 87x faster email fetching via batch JXA and FTS5 search

This server falls under the Communication category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • MCP protocol support

Use Cases

Send emails through Apple Mail application. Access mail templates and signatures. Manage mail composition and delivery.
imdinu

Maintainer

LicenseGPL 3.0
Languagepython
Versionv0.1.2
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

PIP

pip install apple-mail-mcp

Manual Installation

pip install apple-mail-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Apple Mail

Apple Mail MCP is a fast MCP server for reading and searching Apple Mail on macOS, achieving up to 87x faster email fetching compared to naive AppleScript approaches by using batch JXA (JavaScript for Automation) execution and an FTS5 full-text search index built from your local mail database. It exposes eight tools covering account listing, mailbox enumeration, email retrieval with filters, full-text search across subject/sender/body/attachments, link extraction, and attachment reading β€” all without requiring any external email API credentials. Developers and power users on macOS use it to give Claude deep access to their local email archive for research, summarization, and triage.

Prerequisites

  • macOS with Apple Mail application installed and configured
  • Python 3.10 or later installed
  • pipx recommended for isolated installation
  • Full Disk Access granted to Terminal (or your MCP client) in System Settings β†’ Privacy & Security β†’ Full Disk Access β€” required to build the search index
1

Install apple-mail-mcp

Install using pipx for an isolated environment (recommended), or pip.

pipx install apple-mail-mcp
# or:
pip install apple-mail-mcp
2

Grant Full Disk Access

Go to System Settings β†’ Privacy & Security β†’ Full Disk Access and add your Terminal application (or the application running your MCP client). This is required for the FTS5 index builder to access the Mail database.

3

Build the search index

Run the index build command to create the FTS5 full-text search index from your Apple Mail database. This may take a few minutes on first run depending on mailbox size.

apple-mail-mcp index --verbose
4

Add to Claude Desktop configuration

Add the server to your Claude Desktop config file at ~/Library/Application Support/Claude/claude_desktop_config.json.

{
  "mcpServers": {
    "apple-mail": {
      "command": "apple-mail-mcp",
      "args": []
    }
  }
}
5

Restart Claude Desktop and test

Restart Claude Desktop to load the server, then ask Claude to list your email accounts or search for a recent email.

Apple Mail Examples

Client configuration

Example claude_desktop_config.json for Apple Mail MCP. The command is the installed apple-mail-mcp binary from pipx/pip.

{
  "mcpServers": {
    "apple-mail": {
      "command": "apple-mail-mcp",
      "args": [],
      "env": {
        "APPLE_MAIL_DEFAULT_ACCOUNT": "[email protected]"
      }
    }
  }
}

Prompts to try

Example prompts to use with Claude once Apple Mail MCP is connected.

- "List all my email accounts configured in Apple Mail."
- "Show me my 10 most recent unread emails."
- "Search my email for messages about the quarterly budget report."
- "Find all emails from [email protected] in the last 7 days."
- "Get the full content of email ID 12345 including attachments."
- "Extract all links from my most recent email from the newsletter."
- "Search my email body for mentions of the project Prometheus."

Troubleshooting Apple Mail

Index build fails with permission denied errors

Full Disk Access must be granted to the Terminal app (or whichever app runs apple-mail-mcp index). Go to System Settings β†’ Privacy & Security β†’ Full Disk Access, click the + button, and add your terminal application. Then re-run apple-mail-mcp index --verbose.

Search returns no results despite emails existing

The FTS5 index must be built before search works. Run apple-mail-mcp index to create or refresh the index. If the index is stale (new emails not appearing), re-run the index command to update it.

apple-mail-mcp command not found after installation

If installed with pipx, ensure the pipx bin directory is in your PATH: run pipx ensurepath and restart your terminal. If installed with pip, check that the pip scripts directory is in your PATH. You can find the binary location with: python -m site --user-scripts

Frequently Asked Questions about Apple Mail

What is Apple Mail?

Apple Mail is a Model Context Protocol (MCP) server that 🐍 🏠 🍎 - fast mcp server for apple mail β€” 87x faster email fetching via batch jxa and fts5 search It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Apple Mail?

Install via pip with: pip install apple-mail-mcp. Then configure your AI client to connect to this MCP server.

Which AI clients work with Apple Mail?

Apple Mail works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Apple Mail free to use?

Yes, Apple Mail is open source and available under the GPL 3.0 license. You can use it freely in both personal and commercial projects.

Browse More Communication MCP Servers

Explore all communication servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "apple-mail-mcp": { "command": "pip", "args": ["install", "apple-mail-mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide β†’

Ready to use Apple Mail?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides