Proton Mail MCP logo

Proton Mail MCP

by sethbang

Manage Proton Mail through MCP with SMTP and IMAP tools for sending, reading, searching, organizing, and bulk mailbox operations.

Install Proton Mail MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "sethbang-proton-mail-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "proton-mail-mcp"
      ],
      "env": {
        "PROTONMAIL_USERNAME": "YOUR_VALUE_HERE",
        "PROTONMAIL_PASSWORD": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env PROTONMAIL_USERNAME=YOUR_VALUE_HERE --env PROTONMAIL_PASSWORD=YOUR_VALUE_HERE --transport stdio sethbang-proton-mail-mcp -- npx -y proton-mail-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 33 tools correctly ().

Overview

sethbang/proton-mail-mcp connects MCP-compatible clients to Proton Mail through a locally running Proton Mail Bridge, using SMTP for sending and IMAP for mailbox access. It supports email composition, replies, forwards, drafts, attachment handling, message search, threads, folders, labels, and bulk changes with dry-run safeguards. Use it when an AI client needs to triage or manage a Proton Mail account without relying on Proton's private API. The project is unofficial and also supports SMTP submission for sending when configured separately.

Use cases

  • Triage an inbox by searching, reading, labeling, and moving messages
  • Draft and send threaded replies or forwards with attachments
  • Preview and apply bulk mailbox cleanup operations
  • Extract attachments from selected Proton Mail messages
  • Inspect folder counts, unread totals, and mailbox statistics

Key features

  • SMTP sending with replies, forwards, drafts, and threading headers
  • IMAP reading, search, folders, labels, flags, and threads
  • Attachment metadata listing, download, and forwarding
  • Bulk mailbox operations with dry-run previews
  • Trash-by-default deletion and optional read-only mode
  • Connection diagnostics for Bridge and SMTP settings

Tools33

What Proton Mail MCP lets your agent do. Expand a tool for its parameters.

Verified live~15.4k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

18/19 checks healthy over the last 117d

What it can do

From the 33 tools this server returned when we ran it; 33 declare their own safety hints.

Can delete or modify data · 15Writes files · 3Makes changes · 20Handles credentials · 5Makes network requests · 7Read-only tools · 10
Unusual tool instructions. 1 tool description contain text aimed at the AI model rather than at you (overrides prior instructions). Read the tool descriptions before connecting.
Network at startup3 connections
Files written at startupNone
Install scriptsprepare
npm provenanceSigned build
Package age232 days
Maintainers1

Observed 2026-12-04 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · proton-mail-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars11Stargazers on the source repository.
npm downloads416Package downloads in the last 30 days.
Last commit4d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed33Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Proton Mail MCP works

What sethbang/proton-mail-mcp does

sethbang/proton-mail-mcp exposes Proton Mail operations as Model Context Protocol tools. It can send messages, reply with conversation headers, reply to all recipients, forward messages, save drafts, and send existing drafts. Replies include quoted originals by default, while forwards preserve selected original attachments without continuing the original thread.

Mailbox tools cover listing folders and messages, reading message content, inspecting or downloading attachments, searching by message attributes, and reconstructing threads from In-Reply-To and References headers. Organization features include moving, deleting, flagging, labeling, and marking messages read. Folder and label tools can create, rename, and remove user containers, while counting and statistics tools provide mailbox metrics.

Bulk operations move, delete, or update flags and labels for explicit UIDs or search matches. These operations support dry-run previews. Deletion normally moves messages to Trash, and read-only mode can prevent mailbox changes.

How it works

The server communicates with Proton Mail through the locally installed Proton Mail Bridge. IMAP handles reading, searching, folders, labels, flags, and message changes; SMTP handles delivery. Sending can instead use Proton's SMTP submission endpoint when configured with an SMTP token, but mailbox reading still requires Bridge.

MCP clients start the server through npx or a locally built Node.js entry point. Connection diagnostics check the configured IMAP and SMTP ports, TLS behavior, protocol greeting, and login acceptance without opening a mailbox or sending mail. Send results include the SMTP acceptance status and may verify whether Proton has filed a copy in the Sent folder.

Setup and configuration

The runtime requires Node.js 24 or newer, a Proton Mail account, and Proton Mail Bridge running locally. Configure PROTONMAIL_USERNAME with the account address and PROTONMAIL_PASSWORD with the Bridge mailbox password. Bridge defaults use IMAP port 1143 and SMTP port 1025 with STARTTLS; set IMAP_PORT, PROTONMAIL_PORT, IMAP_SECURE, or PROTONMAIL_SECURE when Bridge shows different values.

A standard MCP configuration can run the package with npx -y proton-mail-mcp. Alternatively, clone the repository, run npm install and npm run build, then launch build/index.js. Claude Desktop users can install the packaged MCP Bundle and enter the address, Bridge password, and port settings in its extension settings.

Attachment filesystem features require an allowed directory configured through ALLOW_FILE_ATTACH_DIR or ALLOW_FILE_DOWNLOAD_DIR. Emptying folders requires explicit enablement with ALLOW_EMPTY_FOLDER=true.

Tools and capabilities

  • Send, reply, reply-all, forward, save, and send drafts.
  • Render Markdown bodies and sanitize HTML by default for outbound messages.
  • Read messages, list attachments, and download attachment content or save it to an allowed path.
  • Search by sender, recipient, subject, body, dates, flags, size, List-ID, and attachment properties.
  • Walk conversation threads and perform thread-level moves, deletions, and flag changes.
  • Manage folders and Proton labels separately, preserving a message's source folder when labels change.
  • Preview bulk moves, deletions, flag updates, and label updates with dryRun.
  • Inspect message counts, folder statistics, unread totals, dates, and aggregate byte sizes.

Limitations and notes

This is an unofficial community project and is not affiliated with, endorsed by, or supported by Proton AG. It uses Bridge or standard SMTP submission rather than a Proton private API.

Proton Bridge can provide stale folder counts, so exact counts should come from message-count or folder-statistics queries. Content searches may lag recent mail by roughly 30–60 seconds. Proton may silently drop some flags or labels; bulk results report items that were not applied. Permanently emptying a folder requires confirmation and is restricted to Trash and Junk by default.

SMTP acceptance does not guarantee that the sent copy is already visible in the Sent folder. The server can report a pending or unverified sent-copy lookup even when delivery was accepted.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Proton Mail MCP

sethbang/proton-mail-mcp is an MCP server that connects AI clients to Proton Mail through Proton Mail Bridge. Its main tools send, reply, forward, save drafts, read, search, organize, label, move, delete, and bulk-update messages through SMTP and IMAP, with attachment handling and connection diagnostics.

Install it by configuring your MCP client to run `npx -y proton-mail-mcp`, or clone the repository and build it with `npm install` followed by `npm run build`. Claude Desktop can also install the packaged MCP Bundle through Settings → Extensions.

It uses `PROTONMAIL_USERNAME` for the Proton Mail address and `PROTONMAIL_PASSWORD` for the Proton Mail Bridge mailbox password. Bridge must be running locally for reading and IMAP operations; SMTP submission can use a Proton SMTP token when configured.

Yes, it works with Cursor because it is a standard MCP server. Add the server command and required environment variables to Cursor's MCP configuration, then ensure Proton Mail Bridge is running and its ports and TLS settings are correct.

It moves deleted messages to the resolved Trash folder by default rather than deleting them permanently. Bulk deletion supports `dryRun`, while permanent emptying requires confirmation and is restricted to Trash and Junk unless `allowAnyFolder` is enabled.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewProton Mail MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/sethbang-proton-mail-mcp?style=directory)](https://allmcps.com/mcp/sethbang-proton-mail-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/sethbang-proton-mail-mcp"><img src="https://allmcps.com/api/badge/sethbang-proton-mail-mcp?style=directory" alt="Proton Mail MCP on AllMCPs" /></a>