Prototype · Preview: every server in the official registry, synced every 30 minutes. Reviews and accounts come in a later step.
PopNx MCPMCP servers for people who use AI · explained in plain words

Proton Mail (unofficial)

by sethbangversion 1.0.2i★ –iRuns on your computer
Registry nameio.github.sethbang/proton-mail-mcp

Install

Overview

Description from the maker (original English)

Unofficial Proton Mail MCP — send, read, search & organize email over SMTP and IMAP

PopNx MCP’s three pillars

These three are never merged into one score: opinions, measurements and popularity are different things.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Chat & email
  • You need to fill in: PROTONMAIL_USERNAME, PROTONMAIL_PASSWORD, IMAP_PASSWORD

Install

Pick the AI app you use, then copy the settings.

Before you install

  • Basic checks: 1 of 1 passed
  • Runs on your computer with your user’s permissions (files, network, apps).
  • You fill in yourself: PROTONMAIL_USERNAME, PROTONMAIL_PASSWORD, PROTONMAIL_HOST, PROTONMAIL_PORT, PROTONMAIL_SECURE, IMAP_HOST, IMAP_PORT, IMAP_SECURE, IMAP_USERNAME, IMAP_PASSWORD, READONLY, RESTRICT_OUTBOUND_TO_SELF, ALLOW_FILE_DOWNLOAD_DIR, ALLOW_EMPTY_FOLDER, DEBUG

Values marked secret are keys to your account. Never share them or paste them into a chat.

You need

  • npmNode.js installed (for the npx command)

Which app do you use?

Pick your app above. We remember it, so next time the button says “Install in …”.

Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json

{
  "mcpServers": {
    "proton-mail": {
      "command": "npx",
      "args": [
        "-y",
        "proton-mail-mcp"
      ],
      "env": {
        "PROTONMAIL_USERNAME": "your-value",
        "PROTONMAIL_PASSWORD": "your-value",
        "PROTONMAIL_HOST": "your-value",
        "PROTONMAIL_PORT": "your-value",
        "PROTONMAIL_SECURE": "your-value",
        "IMAP_HOST": "your-value",
        "IMAP_PORT": "your-value",
        "IMAP_SECURE": "your-value",
        "IMAP_USERNAME": "your-value",
        "IMAP_PASSWORD": "your-value",
        "READONLY": "your-value",
        "RESTRICT_OUTBOUND_TO_SELF": "your-value",
        "ALLOW_FILE_DOWNLOAD_DIR": "your-value",
        "ALLOW_EMPTY_FOLDER": "your-value",
        "DEBUG": "your-value"
      }
    }
  }
}

Run this in your terminal

claude mcp add proton-mail --env PROTONMAIL_USERNAME=your-value --env PROTONMAIL_PASSWORD=your-value --env PROTONMAIL_HOST=your-value --env PROTONMAIL_PORT=your-value --env PROTONMAIL_SECURE=your-value --env IMAP_HOST=your-value --env IMAP_PORT=your-value --env IMAP_SECURE=your-value --env IMAP_USERNAME=your-value --env IMAP_PASSWORD=your-value --env READONLY=your-value --env RESTRICT_OUTBOUND_TO_SELF=your-value --env ALLOW_FILE_DOWNLOAD_DIR=your-value --env ALLOW_EMPTY_FOLDER=your-value --env DEBUG=your-value -- npx -y proton-mail-mcp

Fill in the empty values before running it.

Open in Cursor

Or copy the settings yourself

Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json

{
  "mcpServers": {
    "proton-mail": {
      "command": "npx",
      "args": [
        "-y",
        "proton-mail-mcp"
      ],
      "env": {
        "PROTONMAIL_USERNAME": "your-value",
        "PROTONMAIL_PASSWORD": "your-value",
        "PROTONMAIL_HOST": "your-value",
        "PROTONMAIL_PORT": "your-value",
        "PROTONMAIL_SECURE": "your-value",
        "IMAP_HOST": "your-value",
        "IMAP_PORT": "your-value",
        "IMAP_SECURE": "your-value",
        "IMAP_USERNAME": "your-value",
        "IMAP_PASSWORD": "your-value",
        "READONLY": "your-value",
        "RESTRICT_OUTBOUND_TO_SELF": "your-value",
        "ALLOW_FILE_DOWNLOAD_DIR": "your-value",
        "ALLOW_EMPTY_FOLDER": "your-value",
        "DEBUG": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

Open in VS Code

Or copy the settings yourself

Paste into .vscode/mcp.json in your project

{
  "servers": {
    "proton-mail": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "proton-mail-mcp"
      ],
      "env": {
        "PROTONMAIL_USERNAME": "your-value",
        "PROTONMAIL_PASSWORD": "your-value",
        "PROTONMAIL_HOST": "your-value",
        "PROTONMAIL_PORT": "your-value",
        "PROTONMAIL_SECURE": "your-value",
        "IMAP_HOST": "your-value",
        "IMAP_PORT": "your-value",
        "IMAP_SECURE": "your-value",
        "IMAP_USERNAME": "your-value",
        "IMAP_PASSWORD": "your-value",
        "READONLY": "your-value",
        "RESTRICT_OUTBOUND_TO_SELF": "your-value",
        "ALLOW_FILE_DOWNLOAD_DIR": "your-value",
        "ALLOW_EMPTY_FOLDER": "your-value",
        "DEBUG": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.

Your choice stays on this device in a cookie; no account needed.

Values you fill in

  • PROTONMAIL_USERNAME required env
    Your Proton Mail email address
  • PROTONMAIL_PASSWORD secret required env
    Your Proton Mail SMTP password (not your login password; generate one in Proton settings)
  • PROTONMAIL_HOST env
    SMTP host
  • PROTONMAIL_PORT env
    SMTP port
  • PROTONMAIL_SECURE env
    Use TLS for SMTP (true for port 465)
  • IMAP_HOST env
    Proton Mail Bridge IMAP host (required for read/search tools)
  • IMAP_PORT env
    Proton Mail Bridge IMAP port
  • IMAP_SECURE env
    Use TLS for IMAP
  • IMAP_USERNAME env
    Proton Mail Bridge username (falls back to PROTONMAIL_USERNAME)
  • IMAP_PASSWORD secret env
    Proton Mail Bridge password (falls back to PROTONMAIL_PASSWORD)
  • READONLY env
    Disable all mutating tools (send, move, delete, flags, labels, bulk ops, folder/label management)
  • RESTRICT_OUTBOUND_TO_SELF env
    Refuse live sends to any recipient other than PROTONMAIL_USERNAME (for throwaway/QA accounts)
  • ALLOW_FILE_DOWNLOAD_DIR env
    Allowlist directory enabling download_attachment.saveTo; when unset, attachments return as inline base64
  • ALLOW_EMPTY_FOLDER env
    Register the empty_folder tool (not recommended)
  • DEBUG env
    Enable verbose logging to stderr

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 8, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account sethbang, which owns the repo

  • … Not checked yet

    Still maintained

    We have not read this repo from GitHub yet

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Compared with others in Chat & emaili

  • More stars than 0% of the other 1856 servers in this category
  • Published to the registry more recently than 11% of the other 1856 servers in this category
  • Basic checks equal to or better than 100% of the other 1856 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Proton Mail (unofficial) safe?

It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: PROTONMAIL_USERNAME, PROTONMAIL_PASSWORD, IMAP_PASSWORD

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed –, and the latest version (1.0.2) reached the registry 5 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: Vexa, emailmd, MCP WhatsApp Cloud

Alternatives

Servers in the same category from other makers, sorted by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Vexa

Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.

by Vexa-aiWidely used★ 2.9KUpdated 2 months ago

Runs in the cloud✓ vexa.ai

emailmd

Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.

by anypostGrowing↓ 5.3K/wk★ 1.4KUpdated 33 days ago

Computer or cloud✓ emailmd.dev

MCP WhatsApp Cloud

MCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API

by codesparEarly↓ 63/wk★ 277Updated 5 months ago

Runs on your computer

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

Proton Mail MCP Server

A Model Context Protocol (MCP) server that gives AI assistants full access to your Proton Mail account -- send, read, search, and organize email over SMTP and IMAP.

⚠️ Unofficial — not affiliated with Proton. This is an independent, community-built project. It is not developed, endorsed, sponsored, or supported by Proton AG. "Proton", "Proton Mail", and "Proton Mail Bridge" are trademarks of Proton AG, used here only to describe interoperability. It talks to Proton Mail over the standard SMTP submission endpoint and the locally-run Proton Mail Bridge; no Proton private API is used. Use at your own risk.

Demo

Features

  • Send, reply, and forward email via Proton Mail SMTP with threading headers; dedicated reply_all_email tool
  • Markdown bodies -- pass markdownBody to send_email / reply_email / reply_all_email / forward_email; rendered to HTML with a plain-text fallback
  • Read email via IMAP through Proton Mail Bridge
  • Attachments -- send files (base64), download to memory or to disk (saveTo + ALLOW_FILE_DOWNLOAD_DIR), forward a subset by part number
  • Search messages by sender, recipient, subject, body, date, flags, size, List-ID, attachment presence, attachment name (substring), and attachment MIME type
  • Organize -- move, delete, and flag/unflag messages individually or in bulk; bulk-update labels too
  • Bulk operations -- bulk_move, bulk_delete, bulk_update_flags, bulk_update_labels with dryRun preview and XOR uid/match input
  • Folder & label management -- create_folder, create_label, rename_folder, delete_folder (non-destructive on Proton); empty_folder (opt-in via ALLOW_EMPTY_FOLDER=true; not recommended)
  • Labeling -- update_message_labels adds and removes Proton labels on a message (additive — message stays in its source folder)
  • Aggregations -- count_messages, folder_stats, top_senders (with excludeSelf + per-row direction) for inbox analytics
  • Thread mutations -- move_thread, delete_thread, flag_thread with optional cross-folder walk; get_thread dedupes by Message-ID across mailbox copies
  • Snippets -- optional includeSnippet on list_messages and search_messages for at-a-glance previews
  • List folders with message and unread counts
  • Honest accounting -- post-STORE FETCH verify on flags/labels surfaces silently-dropped operations as notApplied; sent-copy lookup retries SEARCH to defeat Proton's index lag; Reply-To rewrites are surfaced in the send response
  • Safety first -- delete moves to Trash by default (via special-use resolver), read-only mode via READONLY=true, dryRun on all bulk ops, MCP tool annotations for client-side confirmation prompts, path-traversal defense on filesystem-touching tools
  • Security hardened -- input validation, credential sanitization, rate limiting, attachment size limits
  • Works with any MCP-compatible client (Claude Desktop, Claude Code, Cursor, etc.)

Prerequisites

Quick Start

Add to your MCP client

Add the following to your client's MCP server configuration (Claude Desktop, Claude Code, Cursor, etc.):

{

"mcpServers": { "protonmail": { "command": "npx", "args": ["-y", "proton-mail-mcp"], "env": { "PROTONMAIL_USERNAME": "your-email@protonmail.com", "PROTONMAIL_PASSWORD": "your-smtp-password" } } } }

That's it — npx will download and run the server automatically. See Configuration for all available environment variables.

Install from source

If you prefer to run from a local clone:

git clone https://github.com/sethbang/proton-mail-mcp.git

cd proton-mail-mcp npm install npm run build

Then use this MCP config instead:

{

"mcpServers": { "protonmail": { "command": "node", "args": ["/absolute/path/to/proton-mail-mcp/build/index.js"], "env": { "PROTONMAIL_USERNAME": "your-email@protonmail.com", "PROTONMAIL_PASSWORD": "your-smtp-password" } } } }

Tools

Sending

All send tools return the Message-ID of the sent message in their response, which can be used to locate the message via IMAP search. All four send tools (send_email, reply_email, reply_all_email, forward_email) perform a best-effort lookup of the sent copy UID in the resolved \Sent folder (retried across ~30s to defeat Proton's indexing lag) and lead the response with a machine-parseable token prefix — [sent-copy:verified] or [sent-copy:unverified], plus [reply-to:preserved|rewritten|stripped|unverified] when replyTo was requested. Agents can grep these tokens instead of text-matching prose. When the Sent-copy lookup converges, the response also includes a Sent copy UID: N in Sent clause; when it doesn't, the leading verb switches from "X sent successfully (Sent-copy verified)" to "X send accepted by SMTP (Sent-copy unverified within the lookup window)" — the message did go out, but per-delivery verification couldn't be completed within the budget.

🛡️ HTML sanitization defaults to ON (since v1.0.0). Send / reply / forward / save_draft tools strip , event handlers, inline style attributes, and remote beacons via a conservative allowlist before delivery. Pass sanitizeHtml: false to preserve full-fidelity HTML for trusted-content workflows. The success response notes when sanitization ran.

⚠️ Display-name spoofing partially defended. As of v1.0.0, fromName rejects values containing @ by default — without this guard, a fromName like "Anthropic Security " reaches the wire as Anthropic Security security@anthropic.com after angle-bracket sanitization, which mail clients render as a forged sender. Pass allowAddressLikeFromName: true to override for legitimate product names. SMTP itself still prevents *address-level* spoofing (the envelope From: is bound to your authenticated identity), and arbitrary display names without @ are still allowed (e.g. "CEO of Acme") — treat fromName like any other user-controllable string.

All send/reply/forward/save_draft tools accept an alternative markdownBody parameter (rendered to HTML via marked) — mutually exclusive with body+isHtml. sanitizeHtml applies after Markdown rendering.

🛡️ Outbound preview + self-only lock. send_email, reply_email, reply_all_email, and forward_email accept dryRun: true — it runs all validation and resolves the complete recipient set (To/CC/BCC, including the reply-all fan-out) and returns it without sending, leading with an [outbound:*] token and an explicit list of any external (non-self) recipients. Use it to confirm exactly who would receive the mail before a live call. For throwaway/QA accounts, set RESTRICT_OUTBOUND_TO_SELF=true (see Environment variables) to *refuse* any live send to a non-self recipient — preventing an agent from fanning real mail out to external addresses embedded in seed data. (Preview is caller-opt-in; the env lock is enforced server-side with no per-call override.)

send_email

Send an email using Proton Mail SMTP.

ParameterRequiredDescription
toYesRecipient address(es), comma-separated
subjectYesSubject line
bodyConditionalPlain text or HTML content. Required unless markdownBody is provided
isHtmlNoWhether body is HTML (default: false)
markdownBodyNoMarkdown source — rendered to HTML before sending. Mutually exclusive with body/isHtml
sanitizeHtmlNoStrip scripts, event handlers, inline styles, and remote beacons via a conservative allowlist when the body is HTML. Default `true` as of v1.0.0. Pass false to preserve full-fidelity HTML. No-op on plain-text
ccNoCC recipient(s), comma-separated
bccNoBCC recipient(s), comma-separated (count in response dedupes against To/CC)
replyToNoReply-To address (Proton SMTP may rewrite values that don't match an authenticated identity; rewrites are surfaced in the response)
fromNameNoDisplay name for the From field. Rejects values containing @ by default (display-name-as-address spoofing defense — see warning above). Pass allowAddressLikeFromName: true to override for legitimate cases (product names with @)
allowAddressLikeFromNameNoOpt-in escape valve for fromName containing @. Default false
attachmentsNoArray of {filename, content, contentType}. content is validated as base64 at the Zod boundary (catches malformed payloads before nodemailer silently emits garbage bytes); contentType is validated as a MIME type/subtype (catches malformed values before SMTP rejects the message)
dryRunNoValidate and resolve the full recipient set (To/CC/BCC) + subject + body without sending. Returns a preview leading with an [outbound:*] token and an explicit list of any external (non-self) recipients (default: false)
reply_email

Reply to a message with proper threading headers (In-Reply-To, References). Includes the quoted original message with attribution by default.

ParameterRequiredDescription
uidYesUID of the message to reply to
bodyConditionalReply body content. Required unless markdownBody is provided
folderNoFolder containing the original message (default: INBOX)
isHtmlNoWhether body is HTML (default: false)
markdownBodyNoMarkdown source. Mutually exclusive with body/isHtml
sanitizeHtmlNoStrip scripts, event handlers, inline styles, and remote beacons via a conservative allowlist when the body is HTML. Default `true` as of v1.0.0. Pass false to preserve full-fidelity HTML. No-op on plain-text
ccNoAdditional CC recipients, comma-separated
bccNoBCC recipients, comma-separated
replyAllNoReply to all recipients instead of just sender (default: false). Prefer the dedicated reply_all_email tool for discoverability
includeQuoteNoInclude quoted original message below reply (default: true)
dryRunNoResolve the reply recipients (incl. reply-all fan-out) + subject without sending; returns a preview of who would receive it (default: false)
reply_all_email

Reply to all original recipients (sender + TO + CC), excluding the authenticated user. Same threading + quoting semantics as reply_email. Use this instead of reply_email + replyAll: true for clarity. Self-exclusion covers the whole recipient set including the primary To: replying-all to a message you sent reaches the original recipients rather than looping back to you.

ParameterRequiredDescription
uidYesUID of the message to reply to
bodyConditionalReply body content. Required unless markdownBody is provided

| folder | No

Only the beginning is shown; read the rest in the repo

Ask PopNx