About Proton Mcp
A local MCP server connecting Proton Mail to Claude Desktop and Claude Code for reading, searching, organizing, and sending email, plus calendar access. Reads use a local SQLite mirror; YAML policies and Touch ID govern writes, and calls are recorded in a redacted audit log.
Key features
- 01Read, search, and inspect email threads
- 02Organize mail and manage labels and folders
- 03Create and manage drafts
- 04Gate sends and writes with Touch ID
- 05Browse calendars and events
- 06Local SQLite mirror and audit log
Use cases
- 01Search and summarize inbox messages
- 02Move messages or mark them as read
- 03Send or reply after confirming recipients
- 04Browse calendar events by date
MCP support
Exposes 34 MCP tools for Proton Mail and calendar operations to Claude Desktop and Claude Code. YAML policies govern writes, and each send requires Touch ID approval.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEproto-mcp
Give Claude your inbox — without giving up control.
A signed, notarized, Touch-ID-gated bridge between Proton Mail and Claude, running entirely on your Mac. Claude reads, searches, organizes, drafts, and sends your mail — and reads your calendar — through 34 Model Context Protocol tools — and every message that goes out needs your fingerprint on a prompt that names the real recipient.
Nothing leaves your laptop except the mail itself.
What it feels like
You talk to Claude. Claude talks to your mailbox. You stay in the loop on anything that matters.
"What did I miss from the climbing group this week?" → Claude searches the local mirror, reads the thread, summarizes it. No prompt — reading is safe.
"File all the newsletters under Reading and mark them read." → Claude moves and marks them. Organizing is gated, but quiet.
"Reply to Alice that I'm in for Saturday, and send it." → A Touch ID prompt appears: To: [email protected] · Subject: Re: gear list. You tap. It sends. You didn't.
Every read is served from a local SQLite mirror, so it's fast and works offline. Every write is governed by a per-tool policy. Every send re-prompts, every time, showing the literal recipients — that fingerprint tap is the line between "Claude drafted it" and "Claude sent it."
Quickstart
brew tap just-an-oldsalt/proto-mcp
brew install --cask proto-mcp
protonmcp setup
That's the whole thing. setup signs you in, copies your mailbox index
into a local database, starts the background service, and connects both
Claude clients — explaining each step as it goes. Restart Claude
afterwards and the tools show up under protonmcp in /mcp.
It's safe to re-run: completed steps are skipped, so it doubles as a repair command.
Prefer to run the four steps yourself?
protonmcp login # Proton SRP password + 2FA + key unlock
protonmcp backfill # one-time: pull your message envelopes into the local mirror
protonmcp daemon install # register + start the background daemon
protonmcp install # connect it to Claude Desktop + Claude Code
Signed, notarized binaries — no Gatekeeper warning, no network listener.
Anything not working? protonmcp doctor checks every piece of the
install and tells you the one command that fixes it:
[ ok ] protonmcpd version 1.0.2
[ ok ] login session present in keychain
[ FAIL ] local mirror exists but holds no messages
[ ok ] daemon running (pid 4875), socket healthy
To fix:
local mirror
protonmcp backfill
After brew upgrade --cask proto-mcp, run protonmcp daemon restart so
the daemon picks up the new build.
Prefer to build it yourself? See Build from source.
What Claude can do
34 tools, grouped by what they touch. Reads run free; everything that changes state is deny-by-default and Touch-ID gated.
| 📖 Read & search | List, full-text search, read messages, reconstruct threads, list attachments, list labels/folders, sync. |
| 🗂️ Organize | Mark read/unread, move, label, trash. |
| 🏷️ Labels & folders | Full CRUD with colour-palette validation. |
| ✍️ Drafts | Create, update, delete, list. |
| 📤 Send | Send, reply, reply-all, forward, send-draft — each one re-prompts. |
| 📎 Attachments | Decrypt and download, save to disk. |
| 📅 Calendar | List calendars, browse/search events by date range, read full event detail. Read-only. |
Full list with descriptions: docs/cli-reference.md.
Why it's safe
proto-mcp is built so that an LLM driving your mailbox is a convenience, never a liability. The guarantees that make that true:
- 🔐 Your fingerprint on every send. Each write fires a native prompt
showing the literal recipients and subject.
mail_sendhas a TTL of zero, so it re-prompts every single time. No blanket approvals for sends. - 🛡️ Default-deny by construction. Unknown tools don't run, and the daemon refuses to start if any registered tool lacks an explicit policy entry — you can't accidentally ship an unguarded write.
- 🍎 Signed, notarized, and self-checking. Hardened-runtime, Developer-ID-signed, Apple-notarized binaries, plus a SHA-256 integrity check at startup that refuses to run a swapped daemon.
- 🔒 Locks when you walk away. Screen lock, sleep, or an idle timer zero the in-memory session; resuming takes Touch ID.
- 🧾 Honest, redacted audit log. Every call is logged — secrets
scrubbed, bodies reduced to
{sha256, bytes}, recipients kept literal so the verification chain stays truthful. - 🏠 Local-only. The daemon listens on a
0600Unix socket, never a network port. Mail content goes to Proton over TLS; nothing else leaves.
What a prompt actually looks like:
┌──────────────────────────────────────────────┐
│ Send mail_send? │
│ │
│ To: [email protected] │
│ CC: [email protected] │
│ Subject: Re: gear list │
│ │
│ [ Cancel ] [ Send & Touch ID ] │
└──────────────────────────────────────────────┘
The full threat model — including the risks proto-mcp doesn't defend against — is in docs/security.md. Read it before you point this at a live mailbox.
How it works
One background daemon holds your Touch-ID-unlocked session and serves every tool over a local socket. Claude Desktop and Claude Code each attach through a tiny forwarder, so they share one session: unlock once, use everywhere; lock once, everything locks.
Claude Desktop ─┐ ┌─ go-proton-api + GPG
Claude Code ────┼─ shim ─ socket ─ protonmcpd ┼─ SQLite mirror + FTS5
┘ (0600) └─ Touch ID + policy + audit
The full design — every binary, package, and the local mirror — is in docs/architecture.md.
Configuration
Tune per-tool policy, rate limits, allowed recipients, the idle-lock timer, and the cached-body TTL with a single YAML file. For example, to cap LLM-driven sends and restrict them to one domain:
tools:
mail_send:
decision: prompt
rate_limit: 5/hour
allowed_recipients: ["@mydomain.com"]
idle_lock_minutes: 30
Full reference, plus locking and the audit/observability commands: docs/configuration.md.
Build from source
Requires macOS 13+, Go 1.26.6+, and Xcode Command
Line Tools (for swiftc).
git clone https://github.com/just-an-oldsalt/proto-mcp.git
cd proto-mcp
make all # builds bin/* + the Swift helpers
./bin/protonmcp setup
make all builds for your own architecture. make universal builds
arm64 + x86_64 and lipos them into bin/universal/ — that's what a
release ships, so the cask works on both Apple silicon and Intel.
Source builds are ad-hoc signed by default and work fully (the Touch ID
gate, policy, audit, and lock/unlock all run the same). For a
locally-signed build, see
scripts/signing-setup.md.
Good to know
- macOS only. The keystore and biometric helpers use
Security.framework,LAContext, and AppKit. Linux builds compile for testing, but the auth flow won't work. - Be a good Proton citizen. proto-mcp currently sends Proton Bridge's
AppVersionheader while a dedicated identifier is requested from Proton (seedocs/proton-appversion-request.md). Don't rate-abuse, scrape, or run multi-account automation through it — anything that violates Proton's Terms is no less a violation for borrowing Bridge's header. - Cached bodies are plaintext-in-SQLite. Decrypted message bodies are
cached locally (TTL-bounded,
secure_deleteon). On a stolen, imaged disk that's recoverable cleartext until purged. Envelope encryption (SQLCipher) is a post-1.0 item.protonmcp purge --older-than 7d --vacuumshrinks the window now. - Personal use. Built for one person and their mailbox on their Mac.
Documentation
| Doc | Contents |
|---|---|
| docs/architecture.md | The daemon model, binaries, packages, and local mirror. |
| docs/security.md | Security layers + the full, honest threat model. |
| docs/configuration.md | Policy YAML, locking, observability, purging. |
| docs/cli-reference.md | Every CLI command and all 34 MCP tools. |
| SECURITY.md | Security policy + per-defect fix log / audit trail. |
| TESTING.md | End-to-end validation playbook. |
Issues, defects, and roadmap are tracked in Jira (project PROTO), the
source of truth. TODO.html and DEFECTS.html are retained as historical
design records from the build-out.
Contributing
PRs welcome, but please open an issue first — most architectural
direction is settled, and unsolicited big-scope PRs probably won't land.
.github/CODEOWNERS defines required reviewers for the
security-load-bearing paths (internal/redact/, internal/keystore/,
internal/policy/, internal/approval/, helpers/touchid/,
helpers/lockwatch/).
License & acknowledgements
GPLv3 — see LICENSE. proto-mcp depends transitively on
proton-bridge (also GPLv3) via go-proton-api.
- Proton AG for
proton-bridgeandgo-proton-api, on which the entire crypto + transport layer rests. - Anthropic for the Model Context Protocol and the Claude clients this server targets.
- Every defect that took the shape it did because
cmd-r,claude-review,claude-security-review, or a live testing session looked at the code more carefully than I would have alone.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.