protonmail-mcp-server
Integrates with ProtonMail via the ProtonMail Bridge to provide tools for reading, searching, sending, replying, forwarding emails, and managing folders.
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., "@protonmail-mcp-serverlist my unread emails from today"
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.
protonmail-mcp-server
A Model Context Protocol server that lets Claude read, search, and send email through a locally running ProtonMail Bridge.
Requirements
ProtonMail Bridge installed and signed in
Python 3.10+
Related MCP server: outlook-mcp-server
Installation
git clone https://github.com/mattias242/protonmail-mcp-server
cd protonmail-mcp-server
uv sync
cp .env.example .envEdit .env:
PROTONMAIL_USERNAME=user@proton.me
PROTONMAIL_PASSWORD=bridge-generated-password # from the Bridge app, not your Proton passwordClaude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"protonmail": {
"command": "uv",
"args": ["run", "--directory", "/path/to/protonmail-mcp-server", "protonmail-mcp"],
"env": {
"PROTONMAIL_USERNAME": "user@proton.me",
"PROTONMAIL_PASSWORD": "bridge-password"
}
}
}
}Claude Code
claude mcp add protonmail -s user -- uv --directory /path/to/protonmail-mcp-server run protonmail-mcpThen set credentials in ~/.claude.json under the protonmail entry's env field.
Available tools (16)
Reading
Tool | Description |
| List all folders and labels (with |
| Count messages and unread in a folder |
| List emails with metadata — paginated ( |
| Fetch full email — supports |
| Fetch headers only, no body (fast) |
| Search by from/subject/date/unread — returns metadata, accepts ISO 8601 dates |
Sending
Tool | Description |
| Send an email (to, subject, body, cc, bcc, reply_to) |
| Reply — sets Re: prefix, In-Reply-To and References headers automatically |
| Forward — sets Fwd: prefix and quotes original |
Management
Tool | Description |
| Mark as read |
| Mark as unread |
| Move to another folder |
| Delete an email |
Folders
Tool | Description |
| Create a new folder |
| Delete a folder (must be empty) |
| Rename a folder |
Testing
# Unit and BDD tests (no Bridge required)
uv run pytest tests/unit/ tests/features/ -v
# Integration tests (requires running Bridge + .env)
uv run pytest tests/integration/ -m integration -vOr test interactively with the MCP Inspector:
npx @modelcontextprotocol/inspector uv run protonmail-mcpOpen http://localhost:6274 → Connect → Tools.
Configuration
All settings use the PROTONMAIL_ prefix and can be set in .env or as environment variables:
Variable | Default | Description |
| — | Your Proton email address |
| — | Bridge-generated password |
|
| IMAP host |
|
| IMAP port |
|
| SMTP host |
|
| SMTP port |
|
| Enable SSL verification |
| — | Path to Bridge cert for pinning |
Technical notes
ProtonMail Bridge v3 exposes:
IMAP on
127.0.0.1:1143— plain TCPSMTP on
127.0.0.1:1026— direct TLS with self-signed certificate
The IMAP connection is persistent (one per server session) with automatic reconnect on timeout. SMTP connects per send.
License
GNU General Public License v3.0 — see LICENSE.
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.
Latest Blog Posts
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/mattias242/protonmail-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server