Protonmail MCP Server
Connects to Protonmail through Protonmail Bridge to manage a Protonmail account: browse and search emails, mark read/unread, flag messages, move to spam/trash/folders, send emails, manage drafts and folders, download attachments, perform bulk actions, extract contacts and calendar events, apply email templates and auto-rules, and export an offline HTML mailbox archive.
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., "@Protonmail MCP Server check my inbox and show me unread emails from this week"
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 free, open-source Model Context Protocol (MCP) server that lets AI assistants like Claude manage your Protonmail inbox. Clean up emails, mark as read, flag spam, send messages, sync offline, and more -- all through natural language.
Built and maintained by Jag Journey, LLC.
What It Does
This MCP server connects Claude Desktop (or any MCP-compatible client) to your Protonmail account through Protonmail Bridge. It gives your AI assistant the ability to:
Read & browse your inbox, sent mail, drafts, and custom folders
Search emails by sender, subject, date, body text, or read/flagged status
Mark as read/unread to triage your inbox
Flag/star important emails
Move to Spam or Trash unwanted messages
Move emails between any folders or labels
Send emails with plain text or HTML, CC/BCC, and reply threading
Manage drafts -- save, update, and organize draft emails
Download attachments from any email
Bulk operations -- apply actions to hundreds of emails at once
Extract contacts from your inbox and sent folders
Email templates -- save, manage, and send from reusable templates
Auto-rules -- create rules to automatically categorize and sort emails
Calendar events -- extract meeting invites and ICS data from emails
Offline sync -- export your entire mailbox as browsable HTML files
Get mailbox stats for a quick overview of your account
Manage folders -- create, rename, and delete folders
Launch the Protonmail Desktop App
Related MCP server: Proton Mail MCP Server
Prerequisites
Protonmail paid plan (Mail Plus, Proton Unlimited, etc.)
Protonmail Bridge installed and running on your PC
Node.js 18+
Quick Start
Option A: Use with npx (no install needed)
The fastest way -- just add this to your Claude Desktop config and go:
Edit %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"protonmail": {
"command": "npx",
"args": ["-y", "protonmail-mcp"],
"env": {
"PROTONMAIL_USER": "your-email@proton.me",
"PROTONMAIL_PASS": "your-bridge-password"
}
}
}
}Restart Claude Desktop and you're ready to go. That's it.
Option B: Install globally via npm
npm install -g protonmail-mcpThen use in your Claude Desktop config:
{
"mcpServers": {
"protonmail": {
"command": "protonmail-mcp",
"env": {
"PROTONMAIL_USER": "your-email@proton.me",
"PROTONMAIL_PASS": "your-bridge-password"
}
}
}
}Option C: Clone and build from source
git clone https://github.com/jagjourney/protonmail-mcp.git
cd protonmail-mcp
npm install
npm run buildThen use in your Claude Desktop config:
{
"mcpServers": {
"protonmail": {
"command": "node",
"args": ["/path/to/protonmail-mcp/dist/index.js"],
"env": {
"PROTONMAIL_USER": "your-email@proton.me",
"PROTONMAIL_PASS": "your-bridge-password"
}
}
}
}Where Do I Get the Bridge Password?
Open Protonmail Bridge on your PC
Click your account in the sidebar
Under Mailbox details, find the Password field
Copy it -- this is your
PROTONMAIL_PASS(it's different from your regular Protonmail login)
See the full Installation Guide for detailed steps with screenshots.
Documentation
Installation Guide -- Step-by-step setup instructions
Usage Guide -- How to use with Claude Desktop, all available tools
Why Use This? -- Benefits and use cases
Available Tools (36)
Reading & Browsing
Tool | Description |
| List all folders with message counts |
| Browse emails in any folder (paginated) |
| Read full email content |
| Search by sender, subject, body, dates, status |
| Mailbox overview with counts |
Email Actions
Tool | Description |
| Mark emails as read |
| Mark emails as unread |
| Star/flag emails |
| Remove star/flag |
| Report and move to Spam |
| Move to Trash |
| Move between any folders |
| Permanently delete (irreversible) |
Sending & Drafts
Tool | Description |
| Send email with text/HTML, CC/BCC |
| Save a new draft email |
| Update an existing draft |
Folder Management
Tool | Description |
| Create a new email folder/label |
| Rename an existing folder |
| Delete an empty folder |
Attachments
Tool | Description |
| List all attachments on an email |
| Download a specific attachment (base64) |
Batch Operations
Tool | Description |
| Apply actions to all emails matching a filter |
Contacts
Tool | Description |
| Build a contact list from recent emails |
Email Templates
Tool | Description |
| Save a reusable email template with {{variables}} |
| List all saved templates |
| Delete a template |
| Render and send from a template |
Auto-Categorization Rules
Tool | Description |
| Create an auto-sort rule (by sender, subject, etc.) |
| List all rules |
| Delete a rule |
| Execute all enabled rules against a folder |
Calendar
Tool | Description |
| Find and parse meeting invites from emails |
Offline Sync
Tool | Description |
| Set the directory for your offline email archive |
| Export emails as browsable HTML files |
| Check sync status and last sync time |
Utilities
Tool | Description |
| Open the Protonmail Desktop App |
Offline Email Sync
Export your entire Protonmail inbox as a beautiful, browsable offline archive. The offline viewer features:
Dark-themed inbox UI that mirrors the Protonmail look and feel
Folder navigation with unread badges
Full email rendering with HTML support
Attachment downloads saved alongside emails
Incremental sync -- only exports new emails on re-run
Search and filter within each folder
Works completely offline -- just open
index.htmlin any browser
How to use
Tell Claude: "Set my offline mailbox directory to C:\Users\Me\Documents\Mailbox"
Then: "Sync my emails offline"
Open the generated
index.htmlin your browser to browse your archive
You can also set the PROTONMAIL_DATA_DIR environment variable to customize where sync settings are stored.
Performance Benchmark
Real-world offline sync test — full mailbox export to browsable HTML with all attachments:
Metric | Result |
Emails exported | 173,352 |
Attachments saved | 169,592 |
Folders processed | 22 |
Total time | 40 minutes 35 seconds |
Throughput | ~71 emails/second |
Test machine:
Component | Spec |
OS | Windows 11 Pro |
CPU | Intel Core i7-14650HX (16 cores / 24 threads) |
RAM | 64 GB DDR5 |
GPU | NVIDIA GeForce RTX 5060 Laptop |
Storage | 2TB NVMe SSD (WD Black SN850X) |
All data is read from Protonmail Bridge's local cache on localhost — no internet download required. The bottleneck is MIME parsing + file writing, not bandwidth. Subsequent syncs are incremental (only new emails), completing in seconds.
Security & Privacy
All email data stays on your local machine
Connects only to
127.0.0.1(Protonmail Bridge on localhost)Protonmail's end-to-end encryption is handled by Bridge
Credentials are stored locally in
.envor Claude Desktop config (never committed to git)No telemetry, no external services, no data collection
Issues & Support
Found a bug or have a feature request? Open an issue at: github.com/jagjourney/protonmail-mcp/issues
License
MIT License -- see LICENSE for details.
Credits
Built by Jag Journey, LLC
This is a community project and is not affiliated with or endorsed by Proton AG.
Available Tools
36 toolsbulk_actionB
Apply an action to all emails matching a filter in a folder. Use for bulk cleanup operations like marking all newsletters as read or moving all emails from a sender.
Inputs: action (required), filter (required), folder, destination.
create_folderC
Create a new email folder/label
Inputs: path (required).
create_ruleC
Create an auto-categorization rule. Conditions use case-insensitive substring matching.
Inputs: name (required), actions (required), conditions (required), enabled, +1 more.
delete_folderB
Delete an email folder/label (must be empty)
Inputs: path (required).
delete_ruleB
Delete an auto-categorization rule by ID
Inputs: id (required).
delete_templateC
Delete a saved email template by ID
Inputs: id (required).
download_attachmentA
Download a specific attachment from an email. Returns the attachment as a base64-encoded string.
Inputs: uid (required), part_index (required), folder.
extract_calendar_eventsA
Find and parse calendar events (meeting invites, etc.) from emails. Looks for ICS/iCalendar attachments and inline calendar data.
Inputs: limit, since, folder.
extract_contactsB
Extract email addresses from recent emails to build a contact list. Scans INBOX and Sent folders by default.
Inputs: limit, filter, folders.
flag_emailB
Flag/star one or more emails
Inputs: uids (required), folder.
get_email_statsA
Get a quick summary of your mailbox: total messages, unread count across all folders
Inputs: no named parameters.
launch_protonmail_appB
Launch the Protonmail Desktop application on Windows
Inputs: no named parameters.
list_attachmentsB
List all attachments of a specific email. Returns filename, content type, size, and part index for each attachment.
Inputs: uid (required), folder.
list_emailsB
List emails in a folder. Returns subject, from, date, read/flagged status.
Inputs: page, limit, folder.
list_foldersA
List all email folders/mailboxes with message counts
Inputs: no named parameters.
list_rulesB
List all auto-categorization rules
Inputs: no named parameters.
list_templatesB
List all saved email templates
Inputs: no named parameters.
mark_as_readC
Mark one or more emails as read (seen)
Inputs: uids (required), folder.
mark_as_unreadB
Mark one or more emails as unread (unseen)
Inputs: uids (required), folder.
move_emailC
Move one or more emails to a specific folder
Inputs: uids (required), source_folder (required), destination_folder (required).
move_to_spamC
Move one or more emails to the Spam folder
Inputs: uids (required), folder.
move_to_trashC
Move one or more emails to the Trash folder
Inputs: uids (required), folder.
offline_syncA
Export emails as browsable HTML files with a full inbox-style offline viewer. Reads from Protonmail Bridge's local cache and writes HTML pages + attachments to your configured offline mailbox directory. Supports incremental sync — only exports new emails on re-run. If no directory is configured yet, ask the user where they want to store their Offline Mailbox and use set_offline_sync_dir first.
Inputs: limit, folders, batch_size, output_dir.
offline_sync_statusA
Check the status of your offline email archive. Shows synced folder counts, last sync times, and the configured directory.
Inputs: output_dir.
permanently_deleteA
Permanently delete one or more emails (cannot be undone). Use move_to_trash for reversible deletion.
Inputs: uids (required), folder (required).
read_emailA
Read the full content of a specific email by its UID. Returns subject, body, headers, and attachment info.
Inputs: uid (required), folder.
rename_folderC
Rename an existing email folder/label
Inputs: path (required), new_path (required).
run_rulesB
Execute all enabled auto-categorization rules against recent emails in a folder
Inputs: limit, folder.
save_draftB
Save a new draft email to the Drafts folder. The draft can be edited later or sent from the Protonmail app.
Inputs: to (required), subject (required), cc, bcc, +2 more.
save_templateC
Save a reusable email template with optional variable placeholders (use {{variable}} syntax)
Inputs: name (required), subject (required), cc, to, +3 more.
search_emailsC
Search emails in a folder by sender, recipient, subject, body text, date range, or read/flagged status
Inputs: to, body, from, seen, +6 more.
send_emailB
Compose and send an email via Protonmail. Supports plain text and HTML, CC/BCC, and reply threading.
Inputs: to (required), subject (required), cc, bcc, +4 more.
send_from_templateB
Render an email template with variables and send it. Overrides to/cc/bcc if provided.
Inputs: template_id (required), cc, to, bcc, +1 more.
set_offline_sync_dirA
Set where your offline email archive is stored. Ask the user: 'Where would you like to store your Offline Mailbox?' This must be configured before running offline_sync for the first time.
Inputs: directory (required).
unflag_emailB
Remove flag/star from one or more emails
Inputs: uids (required), folder.
update_draftB
Update an existing draft email by replacing it with new content. The old draft is deleted and a new one is saved.
Inputs: to (required), uid (required), subject (required), cc, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 36 tools
Most tools target clearly distinct actions and resources: read/list/search/send, folder CRUD, flagging, moves, drafts, templates, rules, attachments, and offline sync are each separate. A few boundaries are soft, such as bulk_action overlapping mark_as_read/move_email and offline_sync vs offline_sync_status vs set_offline_sync_dir, but descriptions clarify the distinctions.
The set overwhelmingly uses snake_case and verb-first names (read_email, move_to_trash, create_folder, delete_rule), making behavior predictable. Minor deviations exist, including noun-style names like offline_sync, offline_sync_status, bulk_action, and the adverb-first permanently_delete, but these are still readable and not confusing.
At 36 tools the surface is heavy for an email MCP server, even accounting for templates, rules, offline HTML export, calendar extraction, and app launching. Many capabilities are legitimate, but the set exceeds the 25+ threshold where tool selection and maintenance become unwieldy.
Core email workflows are well covered: reading, searching, sending, drafts, folder lifecycle, flags, moves, spam/trash/permanent deletion, attachments, templates, rules, and stats. Minor gaps remain around full contact CRUD, calendar event creation/management, and conversation/thread-level operations, but agents can work around these.
Maintenance
Related MCP Connectors
Email inboxes and calendars for AI agents: send, receive, search, draft and schedule.
Email inboxes and calendars for AI agents: send, receive, search, draft and schedule.
Email for AI agents: read, search and send from your Gmail, Outlook, Yahoo, iCloud or IMAP inbox.
Connect any IMAP/SMTP mailbox to Claude & ChatGPT: search, read, sort, draft. Sends only with OK.
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
- AlicenseAqualityCmaintenanceEnables 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.438 npm2MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to read, organize, and send Proton Mail through the local Proton Bridge, with careful gating for sending and attachment access.252Apache 2.0