proton-bridge-mcp
This server provides read-only access to a Proton Mail inbox via Proton Mail Bridge, enabling listing, searching, and retrieving messages. It can list all mailboxes/folders (e.g., INBOX, Archive, Sent), list recent messages from a specified mailbox (default INBOX, configurable limit up to 100), search messages by sender, subject, or body text with configurable result limit, and fetch the full parsed content (text/HTML) of a specific message by UID. Note: no sending, deleting, or modifying messages is possible.
Provides tools for reading and searching Proton Mail inbox through Proton Mail Bridge, including listing mailboxes, listing messages, searching by sender/subject/body, and fetching full message contents.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@proton-bridge-mcpsearch my inbox for unread emails from my manager"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
proton-bridge-mcp
An MCP server that lets AI assistants (Claude Code, Claude Desktop, and other MCP clients) read and search your Proton Mail inbox through Proton Mail Bridge.
Unofficial, community project. Not affiliated with or endorsed by Proton AG.
Why Bridge, and why this exists
Proton Mail doesn't expose a public IMAP/SMTP API directly — Proton Mail Bridge runs locally, decrypts your mail, and re-exposes it as standard IMAP/SMTP on 127.0.0.1. That's the only supported way to speak IMAP to a Proton Mail account programmatically.
Bridge's local IMAP/SMTP listener uses a self-signed TLS certificate generated per install. Most quick-start IMAP MCP servers handle this by disabling certificate verification (rejectUnauthorized: false) — which defeats the purpose of TLS. This server instead pins the exact certificate Bridge presents at setup time and validates every connection against it, so a certificate swap (e.g. from another process impersonating Bridge on your machine) is still detected and rejected.
Related MCP server: mcp-imap-server
Features
list_mailboxes— list all folders/labelslist_messages— list recent messages in a mailboxsearch_messages— search by sender, subject, or body textget_message— fetch the full parsed body of a message by UID
Read-only. There is intentionally no send_message tool in this version.
Prerequisites
A Proton Mail plan that supports Bridge (Unlimited, Business, or legacy Professional/Visionary — Bridge requires a paid plan)
Proton Mail Bridge installed, running, and logged in
Node.js 18+
An MCP client: Claude Code, Claude Desktop, or any other MCP-compatible client
Setup
1. Install
git clone https://github.com/alpharomercoma/proton-bridge-mcp.git
cd proton-bridge-mcp
npm install(Once published to npm, this step will be optional — see Using via npx below.)
2. Run the setup wizard
npm run setupYou'll be asked for:
Bridge IMAP host/port (defaults:
127.0.0.1/1143)Your Proton Mail address
Your Bridge password — this is a Bridge-generated password shown in the Bridge app under your account, not your normal Proton account password
The wizard then:
Connects to Bridge and performs the real IMAP
STARTTLSupgrade to fetch its certificate (noopenssldependency — a portable Node-native handshake)Prints the certificate's SHA-256 fingerprint for your own awareness
Verifies login actually works, validated strictly against that same pinned certificate
Writes
~/.config/proton-bridge-mcp/credentials.jsonandbridge-ca.pem, bothchmod 600, inside achmod 700directory
Nothing is written until login has been verified.
3. Register with your MCP client
Claude Code:
claude mcp add proton-mail -s user -- node /path/to/proton-bridge-mcp/bin/proton-bridge-mcp.mjs(Use -- npx -y @alpharomercoma/proton-bridge-mcp instead — see Using via npx below.)
Claude Desktop / other MCP clients — add to your MCP config file:
{
"mcpServers": {
"proton-mail": {
"command": "node",
"args": ["/path/to/proton-bridge-mcp/bin/proton-bridge-mcp.mjs"]
}
}
}Using via npx
Published on npm as @alpharomercoma/proton-bridge-mcp — skip the local clone entirely:
npx -y -p @alpharomercoma/proton-bridge-mcp proton-bridge-mcp-setup
claude mcp add proton-mail -s user -- npx -y @alpharomercoma/proton-bridge-mcpCodex CLI:
Tested end-to-end against Codex CLI 0.146.0 (codex mcp add, real Bridge connection, real tool calls). Two things are Codex-specific and easy to miss:
Codex's MCP support is behind an under-development feature flag as of 0.146.0. Enable it once:
codex features enable mcp_2026_07_28Register the server with an exact, pinned version — not a bare
npx -y @alpharomercoma/proton-bridge-mcp:codex mcp add proton-mail -- npx -y @alpharomercoma/proton-bridge-mcp@1.0.3Reason: if you've ever run
npm install -g @alpharomercoma/proton-bridge-mcpon the same machine, an unpinnednpxinvocation will silently prefer that stale global install over fetching the current version from the registry — no error, it just quietly runs old code. Pinning the version sidesteps this entirely. Bump the pinned version here when you upgrade.
Once registered, codex mcp get proton-mail should show enabled: true, and the tools (list_mailboxes, list_messages, search_messages, get_message) work in both the interactive codex session and non-interactive codex exec runs without triggering an approval prompt — they're all read-only IMAP calls, tagged with readOnlyHint annotations for exactly this reason.
Configuration reference
By default, config lives at ~/.config/proton-bridge-mcp/. Override the location or individual values with environment variables (useful for multiple accounts or containers):
Variable | Purpose | Default |
| Config directory |
|
| Bridge IMAP host | value from |
| Bridge IMAP port | value from |
| Proton Mail address | value from |
| Bridge password | value from |
| Path to pinned cert PEM |
|
Environment variables always take precedence over the credentials file.
Security model
No disabled TLS verification. The server validates every connection against the certificate pinned during setup (
tls.ca), notrejectUnauthorized: false.Trust-on-first-use, like SSH. The one moment we can't validate against anything is fetching the certificate itself during setup — the same bootstrap problem SSH solves by showing you a host-key fingerprint on first connect. Bridge only listens on
127.0.0.1, so this step can't be intercepted over the network; only another process already running as you on the same machine could tamper with it, and at that point your credentials file is equally exposed regardless of TLS.Credentials never touch the MCP client's own config. Rather than passing
-e PROTON_BRIDGE_PASSWORD=...toclaude mcp add(which lands in~/.claude.jsonand your shell history), the password lives only incredentials.json,chmod 600, outside any repo or synced config.Rotate the Bridge password if it's ever been pasted into a chat, terminal share, or committed by accident. Bridge passwords are cheap to regenerate (Bridge app → account → "Generate new password") and don't touch your actual Proton account password.
Troubleshooting
Missing Proton Bridge "host" / "user" / "password" — run npm run setup (or npx -p @alpharomercoma/proton-bridge-mcp proton-bridge-mcp-setup) first, or set the PROTON_BRIDGE_* env vars.
No pinned Bridge certificate found — same as above; the setup wizard writes bridge-ca.pem alongside the credentials.
Login fails during setup — double check you're using the Bridge-generated password (visible in the Bridge app), not your Proton account password. Also confirm Bridge is running and unlocked.
Certificate fingerprint changes unexpectedly — this happens if you reinstall Bridge or reset its config (it regenerates its cert). Re-run npm run setup to re-pin. If you didn't reinstall Bridge and the fingerprint changed anyway, treat that as suspicious and investigate before continuing.
Contributing
Issues and PRs welcome. Keep changes scoped and avoid adding write/send capabilities without discussion — this project intentionally stays read-only for now.
License
MIT — see LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceEnables AI clients to interact with ProtonMail accounts through the Proton Bridge using SMTP and IMAP protocols. Provides email management capabilities via secure local bridge connections.Last updated24MIT
- Flicense-qualityDmaintenanceEnables LLMs to read, search, and manage emails via IMAP with secure, read-only access to email accounts.Last updated6
- AlicenseAqualityDmaintenanceA read-only MCP server that connects to Proton Mail via Proton Bridge, enabling AI assistants to search, list, and read emails securely without leaving your machine.Last updated4311MIT
- AlicenseAqualityBmaintenanceEnables AI agents to send, read, search, and organize emails via ProtonMail using Proton Bridge. Supports MCP-compatible clients like Claude and Cursor.Last updated17203MIT
Related MCP Connectors
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
AI email inbox and sending tools with attachments, search, live events, and webhooks.
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/alpharomercoma/proton-bridge-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server