Skip to main content
Glama
Protonmail MCP Server

Protonmail MCP Server

by jagjourney

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

  1. Protonmail paid plan (Mail Plus, Proton Unlimited, etc.)

  2. Protonmail Bridge installed and running on your PC

  3. 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-mcp

Then 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 build

Then 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?

  1. Open Protonmail Bridge on your PC

  2. Click your account in the sidebar

  3. Under Mailbox details, find the Password field

  4. 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

Available Tools (36)

Reading & Browsing

Tool

Description

list_folders

List all folders with message counts

list_emails

Browse emails in any folder (paginated)

read_email

Read full email content

search_emails

Search by sender, subject, body, dates, status

get_email_stats

Mailbox overview with counts

Email Actions

Tool

Description

mark_as_read

Mark emails as read

mark_as_unread

Mark emails as unread

flag_email

Star/flag emails

unflag_email

Remove star/flag

move_to_spam

Report and move to Spam

move_to_trash

Move to Trash

move_email

Move between any folders

permanently_delete

Permanently delete (irreversible)

Sending & Drafts

Tool

Description

send_email

Send email with text/HTML, CC/BCC

save_draft

Save a new draft email

update_draft

Update an existing draft

Folder Management

Tool

Description

create_folder

Create a new email folder/label

rename_folder

Rename an existing folder

delete_folder

Delete an empty folder

Attachments

Tool

Description

list_attachments

List all attachments on an email

download_attachment

Download a specific attachment (base64)

Batch Operations

Tool

Description

bulk_action

Apply actions to all emails matching a filter

Contacts

Tool

Description

extract_contacts

Build a contact list from recent emails

Email Templates

Tool

Description

save_template

Save a reusable email template with {{variables}}

list_templates

List all saved templates

delete_template

Delete a template

send_from_template

Render and send from a template

Auto-Categorization Rules

Tool

Description

create_rule

Create an auto-sort rule (by sender, subject, etc.)

list_rules

List all rules

delete_rule

Delete a rule

run_rules

Execute all enabled rules against a folder

Calendar

Tool

Description

extract_calendar_events

Find and parse meeting invites from emails

Offline Sync

Tool

Description

set_offline_sync_dir

Set the directory for your offline email archive

offline_sync

Export emails as browsable HTML files

offline_sync_status

Check sync status and last sync time

Utilities

Tool

Description

launch_protonmail_app

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.html in any browser

How to use

  1. Tell Claude: "Set my offline mailbox directory to C:\Users\Me\Documents\Mailbox"

  2. Then: "Sync my emails offline"

  3. Open the generated index.html in 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 .env or 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 tools
bulk_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

    B3.2/5.0

    Scored across 36 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count2/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to send, read, search, and organize emails via ProtonMail using Proton Bridge. Supports MCP-compatible clients like Claude and Cursor.
      18
      17 npm
      4
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables 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.
      4
      38 npm
      2
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to read, organize, and send Proton Mail through the local Proton Bridge, with careful gating for sending and attachment access.
      25
      2
      Apache 2.0