Labsco
just-an-oldsalt logo

Proton Mail MCP

โ˜… 3

from just-an-oldsalt

A local-only macOS Model Context Protocol server that exposes your Proton Mail account to Claude Desktop and Claude Code via Touch-ID-gated tool calls.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

proto-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: alice@example.com ยท 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."

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 & searchList, full-text search, read messages, reconstruct threads, list attachments, list labels/folders, sync.
๐Ÿ—‚๏ธ OrganizeMark read/unread, move, label, trash.
๐Ÿท๏ธ Labels & foldersFull CRUD with colour-palette validation.
โœ๏ธ DraftsCreate, update, delete, list.
๐Ÿ“ค SendSend, reply, reply-all, forward, send-draft โ€” each one re-prompts.
๐Ÿ“Ž AttachmentsDecrypt and download, save to disk.
๐Ÿ“… CalendarList 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_send has 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. A tool with no policy entry fails to register โ€” 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 0600 Unix 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: alice@example.com                        โ”‚
โ”‚ CC: charlie@example.com                      โ”‚
โ”‚ 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.

Build from source

Requires macOS 13+, Go 1.26.4+, 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 login
./bin/protonmcp backfill
./bin/protonmcp daemon install
./bin/protonmcp install

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 AppVersion header while a dedicated identifier is requested from Proton (see docs/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_delete on). 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 --vacuum shrinks the window now.
  • Personal use. Built for one person and their mailbox on their Mac.

Documentation

DocContents
docs/architecture.mdThe daemon model, binaries, packages, and local mirror.
docs/security.mdSecurity layers + the full, honest threat model.
docs/configuration.mdPolicy YAML, locking, observability, purging.
docs/cli-reference.mdEvery CLI command and all 34 MCP tools.
SECURITY.mdSecurity policy + per-defect fix log / audit trail.
TESTING.mdEnd-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.