proton-mcp-server
Provides read-only access to Proton Mail, allowing listing of folders and messages, searching emails, and reading full messages via Proton Mail Bridge.
Click on "Deploy 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-mcp-serverfind emails from my boss about the project"
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
Read-only access to Proton Mail for AI agents (such as Hermes) over the Model Context Protocol (stdio transport).
Mail is read from Proton Mail Bridge, which runs a local IMAP server. The MCP server wraps that IMAP server and exposes a small set of tools. Multiple Proton accounts are supported and selected by name on each tool call.
Read-only by design: listing folders/messages, searching, and reading a message. Sending or moving/deleting mail is intentionally out of scope.
How it works
+----------+ stdio/stdin+stdout +---------------------+ IMAP (local) +---------------------+
| Agent | <---------------------> | proton-mcp-server | <------------> | Proton Mail Bridge |
| (Hermes) | MCP (JSON-RPC) | (this package) | 127.0.0.1:1143 | (protonmail-bridge)|
+----------+ +---------------------+ +---------------------+Proton Mail Bridge must be installed, signed in, and running. In the Bridge GUI, for each account enable the IMAP/SMTP client and copy the generated password (this is not your Proton account password).
Related MCP server: ProtonMail MCP Server
Install
Requires Python 3.11+. Using uv (recommended):
git clone <this repo> && cd proton-mcp-server
uv sync # create venv + install dependenciesOr with pip into a venv of your choice: pip install .
The proton-mcp-server console script is provided.
Configure accounts
Create a config file listing each account (see config.example.toml):
mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/proton-mcp"
cp config.example.toml "${XDG_CONFIG_HOME:-$HOME/.config}/proton-mcp/config.toml"
# then edit it with your bridge username + generated passwordConfig-file lookup order (first wins):
--config PATHCLI flagPROTON_MCP_CONFIGenvironment variable$XDG_CONFIG_HOME/proton-mcp/config.toml(default~/.config/proton-mcp/config.toml)
[[accounts]] fields:
field | required | default | notes |
| yes | — | Unique label agents pass as the |
| yes | — | Your Proton address (the IMAP login name). |
| yes | — | Password generated by Proton Mail Bridge, not Proton. |
| no |
| Bridge listens on localhost. |
| no |
| Bridge IMAP port. |
| no |
|
|
Tools
tool | description |
| List configured account names. |
| List mailboxes for an account (INBOX, Sent, …). |
| List recent messages in a folder, newest first. |
| Search a folder by subject/from/to/cc/body/text. |
| Fetch and render a full message by UID. |
Run proton-mcp-server --list-accounts to smoke-test the config (this does
not require Bridge to be reachable — it only parses the file).
Use with Hermes
Add the server to your Hermes MCP configuration (stdio server):
{
"mcpServers": {
"proton-mail": {
"command": "/abs/path/to/proton-mcp-server/.venv/bin/proton-mcp-server",
"env": { "PROTON_MCP_CONFIG": "/abs/path/to/proton-mcp/config.toml" }
}
}
}(Or omit env if you use the default config path.) Then ask Hermes to read
your mail; it will discover the tools via MCP.
Develop / debug
uv sync
uv run proton-mcp-server --help
uv run proton-mcp-server --print-config-path
uv run proton-mcp-server --list-accountsTo inspect the protocol by hand, pipe a JSON-RPC initialize + tools/list
exchange into the running server over stdio.
Security notes
Config holds bridge passwords; keep it readable only by you (
chmod 600).config.tomlis git-ignored by default.The connection to Proton Mail Bridge is localhost only. The default
security = "starttls"upgrades to TLS via STARTTLS after connecting; the Bridge's local self-signed certificate is accepted with verification disabled (the connection never leaves localhost).security = "ssl"(TLS from connection start) andsecurity = "plain"(no encryption) are also available. The server never connects to a remote host with verification off — and all connection fields are configurable per account.All operations are read-only (BODY.PEEK, no STORE/EXPUNGE).
License
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Gmail, Outlook, iCloud, Fastmail and any IMAP mailbox for your agent. Scoped OAuth, no send tool.
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Your agent needs a mailbox of its own — to receive, thread, draft and send, with attachments, without borrowing your personal inbox or your company's SMTP. **What you can ask for** • "Create an inbox for this agent and tell me its address." • "Read the new messages in this thread and draft a reply." • "Send this message with the attachment and wait for the response." • "Search this inbox for everything from that domain." • "Show delivery metrics and the events on this inbox." **How to use it** Point any MCP client at https://mcp.aisa.one/mail/mcp and sign in with OAuth — there is no key to create or paste. 49 tools: create and delete inboxes, list and read messages, raw message bodies, attachments, threads, drafts and draft attachments, send and reply, message search, inbox events, metrics, and list entries — reads and writes. **Why this rather than the source** A real inbox an agent owns, rather than an SMTP credential it borrows from a human. **It is also a door to the rest** The same login reaches 26 sources and 580+ operations. Find the contact elsewhere in the catalogue, then write to them from here — without adding a second server. **What it costs** Finding and inspecting an operation is free. Running one is billed per call at API prices, with no seat and no monthly minimum, and every call takes max_price_usd so an agent cannot overspend by accident. **Where else it reaches** https://mcp.aisa.one/sales/mcp finds the person to write to.
Your IMAP mailbox as an MCP server: read, search and (if you allow it) organize mail. Open source.
Related MCP Servers
- 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.422 npm1MIT
- AlicenseAqualityAmaintenanceEnables AI agents to send, read, search, and organize emails via ProtonMail using Proton Bridge. Supports MCP-compatible clients like Claude and Cursor.1847 npm4MIT
- AlicenseAqualityBmaintenanceAn MCP server that enables AI assistants to read and search Proton Mail messages through a locally running Proton Mail Bridge. It provides tools like list_folders, list_messages, search_messages, get_message, and get_attachment.62 npmMIT
- AlicenseAqualityBmaintenanceEnables AI assistants to read and search Proton Mail inbox through Proton Mail Bridge, providing tools to list mailboxes, list messages, search messages, and fetch full message bodies. Read-only, with secure certificate pinning.417 npm1MIT