{
  "markdown": "# mail-mcp\n\nMCP server that gives Claude (and other MCP hosts) full access to **Mail.app** on macOS — search, read, send, reply, flag, move, and more — across every account configured in Mail.app (iCloud, Exchange, IMAP, etc.).\n\n## Prerequisites\n\n- macOS (Mail.app required)\n- Node.js 20+\n- An MCP host: [Claude Desktop](https://claude.ai/download), Amazon Quick, or any stdio MCP client\n\n## Installation\n\n### Claude Desktop — one-click install (recommended)\n\n1. Download `mail-mcp.mcpb` from the [latest release](https://github.com/p-l-ta/mail-mcp/releases/latest)\n2. Double-click the `.mcpb` file — Claude Desktop installs it automatically\n3. Grant the required macOS permissions (see below)\n\n### Manual / Amazon Quick / other hosts\n\n```bash\nnpx @p-l-ta/mail-mcp\n```\n\nOr install globally:\n\n```bash\nnpm install -g @p-l-ta/mail-mcp\nmail-mcp\n```\n\nPoint your MCP host at the `mail-mcp` binary (stdio transport). Example config:\n\n```json\n{\n  \"mcpServers\": {\n    \"mail-app\": {\n      \"command\": \"npx\",\n      \"args\": [\"@p-l-ta/mail-mcp\"]\n    }\n  }\n}\n```\n\n## Required macOS permissions\n\nGrant these to the application that runs the MCP host (Claude Desktop, Amazon Quick, etc.):\n\n| Permission | Where to grant |\n|---|---|\n| **Full Disk Access** | System Settings → Privacy & Security → Full Disk Access |\n| **Automation → Mail** | System Settings → Privacy & Security → Automation |\n\nThe MCP server process inherits permissions from the host application that launches it.\n\n## Tools\n\n| Tool | Description |\n|---|---|\n| `search_emails` | Search messages via the Envelope Index database with rich filters |\n| `read_email` | Read the full body of a message by its RFC message-id |\n| `list_accounts_and_mailboxes` | List all configured accounts and mailboxes with unread counts |\n| `list_recent` | List recent messages in a specific mailbox |\n| `list_senders` | Grouped summary of senders with message and unread counts |\n| `send_email` | Send a new email from one of the configured accounts |\n| `reply_to_email` | Reply to an existing message by RFC message-id |\n| `set_message_flags` | Set read and/or flagged status on a message |\n| `move_email` | Move a message to a different mailbox |\n| `trash_email` | Move a message to Deleted Messages |\n| `create_mailbox` | Create a new mailbox/folder in an account |\n| `bulk_mark_read` | Mark all messages in a mailbox and/or from a sender as read |\n| `get_unsubscribe_link` | Extract unsubscribe URLs from a message's headers and body |\n| `empty_mailbox` | Delete every message in a mailbox at once (Junk, Trash, etc.) |\n\n## How it works\n\n- **Search & read** — queries Mail's own Envelope Index SQLite database directly for fast, structured results across all accounts\n- **Actions** (send, reply, flag, move, trash) — driven by AppleScript automation against Mail.app, so they work even for accounts where messages aren't stored as local files\n\n## Development\n\n```bash\nnpm install\nnpm run dev          # tsx watch — live reload\nnpm test             # vitest unit tests\nnpm run build        # compile TypeScript → dist/\nnpm run mcpb         # build Claude Desktop extension → build/mail-mcp.mcpb\n```\n\nInteractive MCP testing:\n\n```bash\nnpm run build\nnpx @modelcontextprotocol/inspector node dist/server.js\n```\n\n## Privacy Policy\n\nmail-mcp is a **local** MCP server that runs entirely on your Mac. It has no backend, no telemetry, and makes no network requests of its own.\n\n**What it accesses:**\n- Mail.app's Envelope Index database (`~/Library/Mail/`) — read-only, used for search queries\n- Mail.app via AppleScript — to read message bodies, send mail, flag, move, and trash messages\n\n**What it does NOT do:**\n- Collect, store, or transmit any data outside your Mac\n- Connect to any external server or API\n- Log message content anywhere\n\nAll email data stays on your device and is only passed to the MCP host (Claude Desktop or another client) as part of normal tool responses. You control exactly which tools Claude can invoke.\n\n## License\n\nMIT\n",
  "bytes": 3977,
  "sha": "ab907bb41e760e36a5775ae2d6cad91eec5b9249c754a242c3e99606d6c70486",
  "repo_slug": "p-l-ta/mail-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_p_l_ta_mail_mcp_a9783510/readme"
}