Proton Mail MCP Server
Connects to a Proton account through the Proton Bridge (IMAP + SMTP on localhost) so an agent can operate the mailbox end to end — folders/labels, reading, searching, organizing and sending mail.
Full email management over Proton Bridge: list/create/rename/delete folders and labels, list and read messages, snippet previews, multi-folder search, threads, sender summaries and inbox digests, change detection since a timestamp, move/label/trash single or batched messages (up to 500, with dry-run and post-verified counts), flag management, sender-based routing suggestions, plus sending email via SMTP (HTML, CC/BCC, reply threading) and downloading or text-extracting attachments.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Proton Mail MCP Server
An MCP (Model Context Protocol) server that connects to ProtonMail via Proton Bridge, giving AI agents full email management capabilities over IMAP and SMTP.
Prerequisites
Proton Bridge — must be installed, logged in, and running
Node.js >= 18
A Proton Mail account (any paid plan — Bridge requires it)
Related MCP server: Proton Mail MCP Server
Setup
1. Install dependencies
npm install2. Configure environment
cp .env.example .envEdit .env with your Bridge credentials:
PROTON_BRIDGE_IMAP_HOST=127.0.0.1
PROTON_BRIDGE_IMAP_PORT=1143
PROTON_BRIDGE_SMTP_HOST=127.0.0.1
PROTON_BRIDGE_SMTP_PORT=1025
PROTON_BRIDGE_USERNAME=you@proton.me
PROTON_BRIDGE_PASSWORD=your-bridge-generated-passwordFinding your Bridge password: Open Proton Bridge > click your account > "Mailbox details" > copy the password. This is NOT your Proton account password.
3. Build
npm run build4. Add to your MCP client
Add to your Claude Desktop claude_desktop_config.json or Claude Code settings:
{
"mcpServers": {
"protonmail": {
"command": "node",
"args": ["/absolute/path/to/proton-mcp-server/dist/index.js"]
}
}
}Tools
Folder Management
Tool | Description |
| List all folders and labels |
| Create a new folder (supports nesting with |
| Delete a folder (supports |
| Rename or move a folder |
| Get total/unread counts for all folders |
Reading Messages
Tool | Description |
| Paginated message list with metadata |
| Full message content by UID |
| Message list with body preview snippets |
| Search by sender, subject, date, body text — across multiple folders |
| Get all messages in a conversation thread |
| Messages grouped by sender with counts and UIDs |
| One-call overview: folder stats + top senders + counts |
| Quick unread count for a single folder |
| Stateless: returns new messages since an ISO 8601 timestamp |
Organizing Messages
Tool | Description |
| Move a message to a different folder |
| Copy a message to a label folder |
| Remove a label from a message |
| Move a message to Trash |
| Move up to 500 messages at once |
| Label up to 500 messages at once |
| Trash up to 500 messages at once |
| Move messages from multiple source folders to one destination |
| Move all messages from a specific sender (exact envelope-address match) |
| Move messages from up to 100 senders in one call over a single connection |
| Search + move in one call |
| Atomic label-and-move (avoids UID invalidation between separate calls) |
| Suggests routing rules based on historical sender→folder distribution ( |
Flags
Tool | Description |
| Toggle read status |
| Toggle star/flag |
| Bulk read/unread (up to 500) |
| Mark entire folder as read |
Sending & Attachments
Tool | Description |
| Send email via SMTP (supports HTML, CC/BCC, reply threading) |
| Download an attachment by part ID |
| Extract plain text from PDF or text/* attachments |
Batch behavior: All batch organize tools (
batch_move_messages,batch_apply_label,batch_remove_label,batch_delete_messages,cross_folder_batch_move,move_by_sender,batch_move_by_senders,move_by_search,batch_route) acceptdryRun: trueto preview UIDs that would be affected without mutating. All move/copy ops pre-validate folder paths and post-verify counts, returning{success, requested, moved|copied, failedUids?}.Exact sender matching:
move_by_senderandbatch_move_by_senderspost-filter IMAP's substringFROMsearch against the exact envelope address, sohit-reply@x.comnever grabsinmail-hit-reply@x.commail.Clean snippets: Snippets returned by
get_messages_with_snippetsare cleaned via mailparser (quoted-printable decoded, HTML stripped) and includehasUnsubscribe/unsubscribeOneClickflags when theList-Unsubscribeheader is present. FullunsubscribeMailto/unsubscribeHttpURLs are returned only withincludeUnsubscribeLinks: true(they can be very long).
Development
npm run dev # Run with tsx (no build needed)
npm run build # Compile TypeScript
npm test # Run testsSecurity Notes
Credentials are loaded from
.env(gitignored — never committed)All input is validated with Zod schemas at the MCP boundary
Batch operations are capped at 500 items
Email addresses are validated before sending
IMAP error messages are sanitized to prevent credential leakage
rejectUnauthorized: falseis used for TLS because Proton Bridge uses self-signed certificates on localhost
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect any IMAP/SMTP mailbox to Claude & ChatGPT: search, read, sort, draft. Sends only with OK.
Email for AI agents: read, search and send from your Gmail, Outlook, Yahoo, iCloud or IMAP inbox.
Connect Gmail, iCloud Mail, Outlook, Yahoo Mail, Fastmail and other IMAP inboxes to ChatGPT, Claude and compatible AI assistants. Find emails by meaning across languages with semantic search. Ask AI to find customer conversations, summarize deadlines and draft follow-ups. Give a sales rep access to a shared outreach inbox or bring email into a compatible CRM. Share an iCloud custom-domain inbox with teammates without their own Apple ID or iCloud+ plan. Search results may be incomplete or stale; separate permissions control mail actions.
Email inboxes for AI agents: read, search, reply, send, bulk send and read attachments.
1
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI agents to send, read, search, and organize emails via ProtonMail using Proton Bridge. Supports MCP-compatible clients like Claude and Cursor.1817 npm4MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to send, read, search, and organize email from Proton Mail accounts via SMTP and IMAP.MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to interact with a Proton Mail mailbox through Proton Bridge, supporting listing, searching, reading, sending, and organizing emails.-
- AlicenseBqualityDmaintenanceEnables AI assistants to read, search, send, reply, and organize ProtonMail emails through a local ProtonMail Bridge, with automatic Bridge discovery and pinned TLS verification.23LGPL 3.0