proton-mcp
Provides tools to list folders, search and fetch messages and attachments, send and draft email, and manage flags, moves, and trash across Proton Mail accounts via Proton Bridge.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
proton-mcp
A local Model Context Protocol server that gives Claude Desktop access to a user's Proton Mail account(s) through the official Proton Bridge.
Each tool call takes an explicit account label so the agent can operate
across multiple Proton accounts in the same conversation.
Scope (v1):
Read: list folders, search (structured query), fetch full message, fetch attachment
Write: send, create draft
Modify: flags (\Seen, \Flagged, ...), move between folders, trash
Designed for personal local use on a single machine. Credentials live
under ~/.config/proton-mcp/. Not for hosting or sharing.
Prerequisites
macOS, Linux, or WSL
Python 3.11+
uv(recommended) orpipxA paid Proton Mail plan — Proton Bridge requires it
Proton Mail Bridge installed and signed into the account(s) you'll connect
Related MCP server: proton-bridge-mcp
Quick install (let an agent do it)
If you have an AI agent running this repo locally (Claude Desktop, Claude Code, etc.), you can ask it to install this server for you end-to-end — including the Bridge setup:
"Install this server. The runbook is in
agents/install/."
Currently supported harnesses:
Claude Desktop —
agents/install/claude-desktop.mdCodex CLI —
agents/install/codex.md
For manual setup, see below.
Manual install
1. Install Proton Mail Bridge
Download from https://proton.me/mail/bridge. Open the app, sign in with your Proton account, and let it complete the initial sync.
2. Capture Bridge credentials
In the Bridge app, open the account view. You need:
Email address (e.g.
alice@proton.me)Bridge IMAP/SMTP password (a long random string Bridge generates — not your Proton login password)
IMAP host:port (default
127.0.0.1:1143)SMTP host:port (default
127.0.0.1:1025)TLS certificate SHA-256 fingerprint — Bridge → Settings → "Show certificate" → SHA-256. The CLI shows the live fingerprint on first add; compare them character-for-character.
3. Install this server
# from a clone of this repo
uv tool install .This puts two commands on your PATH:
proton-mcp— the MCP server (started by Claude Desktop)proton-mcp-auth— manage local Bridge credentials
4. Add your first account
proton-mcp-auth add personalYou'll be prompted for the email, Bridge password, host/port pairs, and
asked to confirm the displayed certificate fingerprint matches what
Bridge shows. The CLI does a one-shot IMAP login to validate before
writing ~/.config/proton-mcp/accounts/personal.json.
To add another account, repeat with a different label:
proton-mcp-auth add workList, remove, or revalidate:
proton-mcp-auth list
proton-mcp-auth remove personal
proton-mcp-auth test personal5. Wire into Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json and
add (merging — don't clobber existing servers):
{
"mcpServers": {
"proton": {
"command": "/Users/<you>/.local/bin/proton-mcp"
}
}
}Use the absolute path — Claude Desktop launched from Finder/Dock doesn't
inherit your shell PATH. Find it with command -v proton-mcp.
Cmd+Q Claude Desktop (not just close the window) and reopen. You should see the tools listed; try:
"Search my personal Proton inbox for unread mail from this week."
Claude will call mail_search with account="personal".
Verifying your setup
Add a dedicated test account (or use your personal one if you're brave) and run the end-to-end smoke:
MCP_E2E_ACCOUNT=test-account uv run python scripts/e2e_smoke.pyThe script boots the actual MCP server as a subprocess, sends a tagged self-email, searches for it, fetches it, trashes it, then creates and trashes a draft. Takes ~10–20 seconds.
Troubleshooting
Error | What it means | Fix |
| No token file for that label |
|
| Bridge isn't running | Start Proton Mail Bridge and retry |
| Bridge regenerated its cert (reinstall, factory reset) |
|
| Wrong password, or Bridge reset its app password | Open Bridge → copy the new password → |
| Folder was rebuilt server-side | Re-search and use the new handle |
Project layout
See docs/superpowers/specs/2026-05-19-proton-mcp-design.md
and docs/superpowers/plans/2026-05-19-proton-mcp.md
for the design and step-by-step implementation history.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect any IMAP/SMTP mailbox to Claude & ChatGPT: search, read, sort, draft. Sends only with OK.
Connect any mailbox to Claude, ChatGPT & AI: read, send, reply, schedule & search emails.
Read, search and manage iCloud Mail, Calendar and Contacts from Claude and other MCP clients.
Your mailboxes in ChatGPT and Claude: Gmail, iCloud, Fastmail, any IMAP. Passwords stay yours.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI agents to send, read, search, and organize emails via ProtonMail using Proton Bridge. Supports MCP-compatible clients like Claude and Cursor.1817 npm4MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to read, organize, and send Proton Mail through the local Proton Bridge, with careful gating for sending and attachment access.252Apache 2.0
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to interact with a Proton Mail mailbox through Proton Bridge, supporting listing, searching, reading, sending, and organizing emails.-
- AlicenseNot gradedqualityCmaintenanceEnables Claude to read-only browse, search, and fetch emails from a Proton Mail inbox through Proton Bridge IMAP, with no capabilities to send, move, flag, or delete.MIT