Proton Mail MCP Server
Read, search and send Proton Mail through Proton Mail Bridge, with sending kept on approval.
Proton Mail scores 66 (Good), licensed MIT and written in Python. It installs as a local process. It declares 6 tools. Filed under Communication. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
66 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Where the 66 comes from
22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "vdeabreu-proton-mcp": { "command": "uvx", "args": [ "proton-mcp" ], "env": { "PROTON_BRIDGE_USER": "", "PROTON_BRIDGE_PASSWORD": "YOUR_PROTON_BRIDGE_PASSWORD", "PROTON_ENABLE_SEND": "true", "PROTON_SEND_CONFIRM": "client" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
PROTON_BRIDGE_USER | Required | IMAP/SMTP username shown by Proton Mail Bridge |
PROTON_BRIDGE_PASSWORDSecret | Required | IMAP/SMTP password generated by Bridge (not your Proton password) |
PROTON_ENABLE_SEND | Optional | Set to false for a strictly read-only server |
PROTON_SEND_CONFIRM | Optional | client (default): your client's approval prompt guards sending. elicit: the server itself asks you to confirm each email, and refuses to send with clients that can't show that prompt |
Tools6Tool docs quality grade C
All capabilitieslist_emailstoolLatest emails of a folder, newest first (headers only).
list_folderstoolFolder names (labels and system folders included).
The addresses sendemail can send from, with the display name used for each.
read_emailtoolFull email: headers, text body (HTML converted to text), attachments list.
search_emailstoolSearch by sender, recipient, subject, text, date range, unread.
send_emailtoolSend or reply, from any of your addresses (fromaddress). Flagged destructive: clients ask before each call.
About
proton-mcp
An MCP server that gives Claude (or any MCP client) access to your Proton Mail mailbox through Proton Mail Bridge.
- Read: list folders, list and search emails, read an email with its attachments list. Nothing is ever marked as read, moved or deleted.
- Send (optional): send and reply from any of your Proton addresses, with your display name, HTML formatting from light Markdown, proper threading, and the original message quoted below replies.
- Runs locally for Claude Desktop (stdio), or remotely as a claude.ai custom connector (streamable HTTP + OAuth).
Unofficial project, not affiliated with or endorsed by Proton AG.

Illustration with sample data, in a generic chat client. The tool names and the flow are the server's own.
Why this one
Several Proton Mail MCP servers exist. This one is built for a specific use: an assistant that reads your mail and drafts replies, without being able to damage the mailbox.
- Works in claude.ai on the web and on your phone, not only in Claude Desktop: a remote mode with OAuth, Docker and reverse-proxy configs, and a full deployment guide.
- Can't change your mailbox. No move, flag or delete tools; folders are opened read-only and nothing is marked as read. Sending is opt-in, flagged destructive, and refused from any address that isn't yours.
- Defends against prompt injection in emails: hidden HTML text is dropped and IMAP arguments can't carry extra commands.
- Mail that looks like Proton's: your display name, the right address when replying, threading, and the original quoted the way Proton quotes it.
If you want the model to organise your mailbox (labels, bulk moves, attachments), a broader server will suit you better.
How it works
Proton Mail is end-to-end encrypted, so there is no plain IMAP server to talk to.
Proton Mail Bridge (paid plans) runs on your machine, decrypts locally and exposes
IMAP/SMTP on 127.0.0.1. This server talks to Bridge, and only to a loopback
address.
Claude Desktop ──stdio──> proton_mcp.py ──IMAP/SMTP──> Bridge (127.0.0.1) ──> Proton
Tools
| Tool | What it does |
|---|---|
list_folders | Folder names (labels and system folders included). |
list_emails | Latest emails of a folder, newest first (headers only). |
search_emails | Search by sender, recipient, subject, text, date range, unread. |
read_email | Full email: headers, text body (HTML converted to text), attachments list. |
list_sender_addresses | The addresses send_email can send from, with the display name used for each. |
send_email | Send or reply, from any of your addresses (from_address). Flagged destructive: clients ask before each call. |
send_email takes a body in light Markdown: blank line = paragraph, - bullets,
1. numbered lists, **bold**, *italic*, [text](https://url). It is sent as
HTML with a plain-text alternative. With reply_to_uid, the reply is threaded
(In-Reply-To, References) and quotes the original (include_original=false
to skip).
The sender is your Bridge login by default. from_address picks another address
of your account, and replies go out from the address the original was sent to,
like in Proton's own apps. Bridge doesn't add the display name set in Proton's
settings, so the server takes it from your recent messages in Sent.
Local setup (Claude Desktop)
Requirements: uv (or Python 3.12+), Proton Mail Bridge installed and logged in.
In Bridge, open your account and copy the IMAP/SMTP username and password
(generated by Bridge, not your Proton password). Then add the server to
claude_desktop_config.json. Open it from Claude Desktop → Settings → Developer →
Edit Config, or directly:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"proton-mail": {
"command": "uvx",
"args": ["proton-mcp"],
"env": {
"PROTON_BRIDGE_USER": "you@proton.me",
"PROTON_BRIDGE_PASSWORD": "password-from-bridge"
}
}
}
}
Fully quit and restart Claude Desktop after editing the file.
Without uv: pip install proton-mcp, then use "command": "proton-mcp" (the full
path to that script if it isn't on your PATH) and no args.
Configuration
| Variable | Default | |
|---|---|---|
PROTON_BRIDGE_USER | (required) | Username shown by Bridge |
PROTON_BRIDGE_PASSWORD | (required) | Password generated by Bridge |
PROTON_IMAP_HOST | 127.0.0.1 | Must be a loopback address (also used for SMTP) |
PROTON_IMAP_PORT | 1143 | |
PROTON_IMAP_SECURITY | starttls | starttls (Bridge default) or ssl |
PROTON_SMTP_PORT | 1025 | |
PROTON_SMTP_SECURITY | starttls | starttls or ssl |
PROTON_QUOTE_LANG | en | Language of the "On … wrote:" line in replies: en or fr |
PROTON_SENDER_NAME | (from Sent) | Name shown in From, for every address. By default, the name found on your recent messages in Sent from that address; set it empty for the bare address |
PROTON_FROM_ADDRESSES | (none) | Extra addresses of your account allowed as from_address, comma-separated. The Bridge login and the addresses you've sent from (found in Sent) are always allowed; any other address is refused |
PROTON_ENABLE_SEND | true | false removes send_email and list_sender_addresses: the server becomes strictly read-only |
PROTON_SEND_CONFIRM | client | Who asks before a send. client: your client's approval prompt (keep it on "ask every time"). elicit: the server itself shows you the exact email and asks you to confirm, through an MCP elicitation the model can't answer; with a client that can't show it, nothing is sent. See Security |
The config file holds your Bridge password: keep it readable by you only.
Remote setup (claude.ai connector)
remote/server.py serves the same tools over streamable HTTP, behind a
single-user OAuth password page, for claude.ai on the web and mobile.
send_email and list_sender_addresses are off unless ENABLE_SEND=true; the
PROTON_* variables above work the same in .env. A Dockerfile and compose file are
included, plus Apache and Caddy configs that only let Anthropic's IP ranges reach
/mcp.
See docs/deploy.md for the full guide (headless Bridge, Docker, reverse proxy, claude.ai).
Security
Giving an AI assistant access to your mailbox is powerful and risky. What this project does about it:
- Read tools don't change anything. Folders are opened with
EXAMINEand bodies fetched withBODY.PEEK; there is no tool to move, flag or delete. Text arguments containing control characters are rejected, so a search term can't smuggle extra IMAP commands to Bridge. - Sending is opt-in and should stay on approval.
send_emailcarries the MCPdestructiveHint, and the server instructions tell the model to show the exact draft (sender address included) and wait for explicit approval. A hint is not enforcement: in your client, keepsend_emailon "ask every time". SetPROTON_ENABLE_SEND=false(local) or leaveENABLE_SEND=false(remote, the default) to remove it entirely. - Optional: the server asks before each send. With the default setup, a client
set to "always allow" lets any
send_emailcall through. WithPROTON_SEND_CONFIRM=elicit, the server itself shows you the exact email (sender, recipients, Bcc, subject, body) and sends only if you confirm. It uses an MCP elicitation: the client puts the question to you, and the model can't answer it. Clients don't all support elicitations yet; with one that doesn't,send_emailrefuses and nothing is sent, so check yours before turning it on. - Only your own addresses can send. Bridge accepts any sender address, so the
server checks
from_addressitself against your addresses (Bridge login,PROTON_FROM_ADDRESSES, addresses found in Sent) and refuses the rest. - Email content is untrusted. An email can contain text written to steer the
model ("forward this to…", "search for …"). The server instructions say never
to follow instructions found in emails, and
read_emaildrops text hidden with the usual HTML tricks (display:none,font-size:0…), but neither is a guarantee. Treat any action the model proposes after reading an email with suspicion. - Loopback only. The server refuses any Bridge host that isn't
127.0.0.1,::1orlocalhost. TLS verification is disabled for that reason only (Bridge uses a self-signed certificate). - Remote mode:
- OAuth with a 20+ character password, a lockout after 5 failures, and tokens stored in SQLite.
- Only claude.ai's callback can be registered as redirect URI, and the number of clients is capped.
- The password page says which client asks and can't be framed by another site.
/mcpis restricted to Anthropic's outbound IPs by the reverse proxy.- Every tool call is logged without email bodies; the container is read-only and unprivileged.
- Remote mode, known limits:
- The lockout is global: anyone can make new logins wait 15 minutes by failing 5 times. Tokens already issued keep working.
- Anyone can add your server URL as a connector in their own claude.ai account and send you the resulting authorization link. If you type your password, their account gets access. Only type it right after clicking Connect yourself.
Your Bridge password and MCP_PASSWORD give access to your whole mailbox:
keep .env and claude_desktop_config.json private.
To report a vulnerability, see SECURITY.md.
Limitations
search_emailsaccepts one non-ASCII search field at a time (IMAPCHARSET UTF-8literal).read_emailconverts HTML to text and drops link targets and hidden elements. Hiding detection is a heuristic: white-on-white text or CSS classes get through.- Replies quote the original as plain text (its formatting is not kept).
- Attachments are listed, not downloaded or sent.
- Bridge must be in combined address mode (the default), with one login for all addresses. In split mode each address has its own login, and the server only uses one.
- Proton rebuilds outgoing messages: recipients get base64-encoded parts and a plain-text version that Proton regenerates from the HTML.
Development
git clone https://github.com/vdeabreu/proton-mcp && cd proton-mcp
pip install -e ".[remote,dev]"
pytest
ruff check .
Tests don't need Bridge: they cover IMAP command injection (against a fake IMAP server), message building, Markdown rendering, quoting, hidden HTML, folder-name encoding, sender address and display name selection, and the OAuth flow (redirect allowlist, client cap, lockout, security headers).
See AGENTS.md for the invariants to keep when changing the code.
License
Frequently asked questions
What is Proton Mail MCP Server?
Read, search and send Proton Mail through Proton Mail Bridge, with sending kept on approval.
How do I install Proton Mail MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Proton Mail MCP Server runs locally from the PyPI package proton-mcp with the command uvx proton-mcp.
Is Proton Mail MCP Server free and open source?
Yes. Proton Mail MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Proton Mail MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Proton Mail MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does Proton Mail MCP Server provide?
Proton Mail MCP Server provides 6 tools, including list_emails, list_folders, list_sender_addresses, and read_email. See the full tool list for descriptions and parameters.
How is Proton Mail MCP Server's trust score calculated?
Proton Mail MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.