Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Apple Mail Readonly

FreeNot checked

A local MCP server for searching and reading downloaded Apple Mail data without changing mail state.

GitHubEmbed

About

A local MCP server for searching and reading downloaded Apple Mail data without changing mail state.

README

A local MCP server for searching and reading downloaded Apple Mail data without changing mail state. It can run with any compatible MCP client and includes optional Codex plugin packaging.

Features

  • List Apple Mail accounts and mailboxes
  • Search local metadata (subject, sender, date) without reading bodies
  • Read selected downloaded message bodies with strict size limits
  • Read bounded local threads/conversations
  • List attachment metadata only (no export)
  • Full Disk Access diagnostics

Requirements

  • macOS
  • Python 3.11+
  • Apple Mail configured locally
  • Full Disk Access may be required for the launcher process

Quick Start

# Run the MCP server
bash scripts/run_mcp.sh

# Run tests
python3 -m unittest discover -s tests -v

# Static security check
python3 scripts/doctor.py --static

# Live smoke test (opt-in)
APPLE_MAIL_READONLY_RUN_LIVE=1 python3 scripts/smoke_test.py

MCP Tools (v0.1)

Tool Purpose
mail_health_check Verify server, platform, Mail store discovery
mail_permissions_check Diagnose Full Disk Access
mail_list_accounts List account coverage
mail_list_mailboxes List mailboxes/folders
mail_search_messages Search local metadata (no body read)
mail_read_message Read a selected downloaded message
mail_read_thread Read a bounded local thread
mail_list_attachments List attachment metadata

Non-Goals

This server will never:

  • Send email
  • Create drafts
  • Reply/forward
  • Move, delete, archive, mark read/unread, flag
  • Export/open/download attachments
  • Run arbitrary scripts
  • Update itself

Installation

Run scripts/run_mcp.sh from any MCP client that supports stdio servers. See docs/codex-install.md for Codex plugin installation instructions.

Privacy and Security

Mail content stays on the local machine. The server opens the Apple Mail index in SQLite read-only mode, registers no write-capable tools, makes no mail-provider API calls, and never exports attachment contents. See docs/security-model.md for the complete guarantees and limitations.

License

MIT

from github.com/hzcsj/apple-mail-readonly-mcp

Install Apple Mail Readonly in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install apple-mail-readonly-mcp

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add apple-mail-readonly-mcp -- uvx --from git+https://github.com/hzcsj/apple-mail-readonly-mcp apple-mail-readonly-mcp

FAQ

Is Apple Mail Readonly MCP free?

Yes, Apple Mail Readonly MCP is free — one-click install via Unyly at no cost.

Does Apple Mail Readonly need an API key?

No, Apple Mail Readonly runs without API keys or environment variables.

Is Apple Mail Readonly hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Apple Mail Readonly in Claude Desktop, Claude Code or Cursor?

Open Apple Mail Readonly on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Apple Mail Readonly with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All communication MCPs