proton-mail-mcp
Provides tools for managing a Proton Mail mailbox, including listing, searching, reading, sending, and moving emails, via Proton Bridge's IMAP/SMTP interface.
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-mail-mcplist my last 5 unread emails"
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 Mail MCP Server
An MCP server exposing a Proton Mail mailbox to Claude — list, search, read, send, and file messages.
Proton Mail has no third-party REST API. Everything in a Proton mailbox is end-to-end encrypted, and the only supported way for an external program to reach it is Proton Bridge, which signs in to the account, performs all OpenPGP encryption and decryption locally, and re-exposes the decrypted mailbox as an ordinary IMAP/SMTP server on loopback.
This server therefore talks IMAP and SMTP to Bridge. There is no Proton protocol code here at all — no SRP, no key handling, no PGP — which is deliberate: those are the parts that break when Proton changes something.
Claude.ai
│
▼ (authentik forward-auth at the reverse proxy)
proton-mail-mcp FastMCP, HTTP on 127.0.0.1:8000/mcp
│ IMAP 127.0.0.1:1143 (STARTTLS)
│ SMTP 127.0.0.1:1025 (STARTTLS)
▼
Proton Bridge SRP login + OpenPGP, Proton's own code
│
▼
ProtonBridge requires a paid Proton plan (Mail Plus or higher).
Tools
Tool | What it does |
| Recent messages in a folder, newest first, with optional date window and unread filter |
| Search by sender, recipient, subject, body, free text, date range or attachments |
| One message in full, with the body flattened to text |
| Send a message, optionally as a threaded reply |
| The mailbox's system folders, user folders and labels, with counts |
| Mark a message read or unread |
| Move a message to another folder (moving to |
| What this server is |
| Whether the mailbox is reachable through Bridge right now |
Listing, searching and reading never mark mail as read — the IMAP fetches use
BODY.PEEK. read_email can opt in with mark_as_read=true.
Message IDs
Tools return IDs of the form <folder>:<uid>, e.g. INBOX:4821 or
Folders/Work:77. IMAP UIDs are per-folder, so an ID is only valid while the
message stays where it was found; after move_email the old ID is dead and the
tool says so.
Folder names
Bridge puts Proton's system folders at the top level (INBOX, Sent, Drafts,
Archive, Spam, Trash, All Mail) and namespaces user-created ones under
Folders/ (exclusive) and Labels/ (non-exclusive). Tools accept any
reasonable spelling: inbox, junk → Spam, bin → Trash, all mail, a
plain leaf name like Work → Folders/Work, or the full path. Search a whole
mailbox with folder="all mail".
Related MCP server: ProtonMail MCP Server
Setup
1. Proton Bridge
Install Bridge and sign in once, out of band. Headless:
protonmail-bridge --cli
>>> login
>>> info # prints the address, ports, and the generated passwordThe password Bridge prints is not the Proton account password — it is generated per install for mail clients, and it is what goes in the config below.
2. Configure
cp .env.example .env
# fill in PROTON_BRIDGE_USER and PROTON_BRIDGE_PASSWORDVariable | Default | Notes |
| required | Your Proton address |
| required | Bridge's generated mail-client password |
|
| |
|
| |
|
| |
|
| or |
|
| or |
|
| Bridge's cert is self-signed by its own CA |
| = | From header, if sending as another address |
|
| Seconds |
|
|
|
|
| HTTP transport only |
3. Install and run
python -m venv venv
venv/bin/pip install -r requirements.txt
venv/bin/python main.pyCheck it can see the mailbox by calling the check_auth_status tool, which
reports the account and INBOX counts, or names the specific problem if not.
Local use with Claude Code / Desktop
{
"mcpServers": {
"proton-assistant": {
"command": "/path/to/proton-mail-mcp/venv/bin/python",
"args": ["/path/to/proton-mail-mcp/main.py"]
}
}
}Credentials come from .env; keep them out of the client config.
Hosted deployment
Runs on a Proxmox LXC behind a reverse proxy with authentik forward-auth,
deployed by a GitHub Actions self-hosted runner on push to main. Two
independent auth layers, neither of which is this server's code:
Connector auth — authentik decides who may use the connector, enforced at the proxy. The server binds to loopback and has no auth code by design.
Mailbox auth — Bridge holds the Proton credentials, signed in once.
Signing in to the connector does not grant mailbox access; they are unrelated.
See HANDOFF.md for the deployment runbook.
Tests
venv/bin/python -m pytestThe suite is fully offline — no Bridge, no credentials, no network. Message
handling is tested against real imap_tools objects parsed from raw RFC822
bytes, so parsing, filtering, sorting and rendering are exercised for real.
Limitations
Search is literal. IMAP
SEARCHdoes case-insensitive substring matching, not ranked relevance. There is no stemming and no scoring.Date filters are day-granular on the server. IMAP
SINCE/BEFOREcompare whole dates, so a time-of-day bound is applied client-side after fetching.Attachment filtering happens after the fetch, because IMAP cannot search on it. Summaries infer attachments from
Content-Type: multipart/mixed.No attachment download. Attachments are listed by name and size only.
Bridge must be running. If it isn't, every tool says so plainly rather than failing obscurely.
This server cannot be installed
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.8MIT
- AlicenseAqualityBmaintenanceEnables AI agents to send, read, search, and organize emails via ProtonMail using Proton Bridge. Supports MCP-compatible clients like Claude and Cursor.17313MIT
- Alicense-qualityCmaintenanceEnables AI assistants to send, read, search, and organize email from Proton Mail accounts via SMTP and IMAP.91MIT
- Alicense-qualityCmaintenanceEnables AI assistants to send, read, search, and organize Proton Mail email via SMTP and IMAP through the Model Context Protocol.MIT
Related MCP Connectors
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…
AI email inbox and sending tools with attachments, search, live events, and webhooks.
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/graememeyer/proton-mail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server