Search local email archives (.mbox/.eml) entirely on your machine. No OAuth, no cloud.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An MCP server for local email archives. Point it at a Google Takeout .mbox export or a folder of .eml files and ask Claude things like:
Everything stays on your machine. No OAuth, no app passwords, no IMAP connection, no cloud. Every other email MCP server connects to a live account β this one reads the archive files you already have, which is exactly what you want for the 15 years of Gmail sitting in a Takeout export.
Claude Code
Claude Desktop β add to claude_desktop_config.json:
Then: "Open C:\Takeout\Mail\All mail Including Spam and Trash.mbox and tell me about it."
| Tool | What it does |
|---|---|
open_archive | Index an .mbox file or .eml directory: message count, date range, top senders |
search_messages | Search by keyword, sender, subject, date range β plus bounded body-text search |
get_message | Fully parse one message: decoded body, headers, attachment names/sizes |
A Takeout mbox is often multiple gigabytes with 100k+ messages. The design reads the minimum, lazily:
body_query only full-parses messages that already match your envelope filters, stops at a scan cap, and reports how many it scanned, so the model knows to narrow by sender or date first.mboxrd (body From lines are quoted as >From ), which splits cleanly. Plain mboxo archives with unquoted body From lines can over-split.Architecture: src/archive.ts (streaming indexer, header decoding, envelope filtering) and src/reader.ts (per-message MIME parsing) are pure logic; src/index.ts is the MCP wiring. The test suite includes a chunk-seam property test: indexing with pathological 17-byte chunks must produce an identical index to whole-file reads.
MIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mbox-mcp)<a href="https://allmcps.com/mcp/mbox-mcp"><img src="https://allmcps.com/api/badge/mbox-mcp?style=directory" alt="Mbox MCP on AllMCPs" /></a>