Skip to main content
Glama
protonmail-mcp

protonmail-mcp

by apexxapps

protonmail-mcp

Предоставьте вашему ИИ-агенту для программирования доступ к вашему ProtonMail — поиск, чтение, черновики и отправка — из Claude Code, Claude Desktop, Cursor или любого MCP клиента.

«Проверь мой Proton и скажи, с чем мне нужно разобраться сегодня». «Найди последнее письмо Сары и подготовь ответ: четверг в 14:00 подходит — пока не отправляй».

Поскольку Proton использует сквозное шифрование, публичного почтового API нет — поэтому этот инструмент общается с Proton Bridge, официальным локальным шлюзом, который Proton предоставляет именно для этого. Всё остаётся на 127.0.0.1; ваша расшифрованная почта никогда не покидает вашу машину, и здесь нет никакого облачного сервиса.


Прежде чем начать — единственное требование

Вам нужен Proton Bridge, запущенный на той же машине.

  • Bridge требует платного тарифа Proton (Mail Plus / Proton Unlimited). Бесплатные аккаунты Proton не могут использовать Bridge, а значит, не могут использовать и этот инструмент. Это ограничение Proton, а не наше.

  • Bridge работает на macOS, Windows и Linux (на серверах — без графического интерфейса через protonmail-bridge --cli).

  • Bridge выдаёт для каждого аккаунта собственные сгенерированные имя пользователя и пароль IMAP/SMTP — здесь нужно использовать именно их, а не обычный логин Proton.

Related MCP server: ProtonMail MCP Server

Установка

# Claude Code — one line, no global install:
claude mcp add protonmail --scope user -- npx -y protonmail-mcp

Затем укажите ему, как подключиться к Bridge — через переменные окружения или файл конфигурации.

Файл конфигурации (~/.config/protonmail-mcp/config.json):

{
  "user": "you@proton.me",
  "pass": "your-bridge-generated-password",
  "imapPort": 1143,
  "smtpPort": 1025
}

Или переменные окружения: PROTONMAIL_USER, PROTONMAIL_PASS, PROTONMAIL_IMAP_PORT, PROTONMAIL_SMTP_PORT. (Скопируйте config.example.json, чтобы получить полный набор параметров.)

Проверьте, что всё работает, прежде чем подключать его к агенту:

npx protonmail-mcp doctor

Эта команда подключается к Bridge, выполняет аутентификацию и выводит список ваших почтовых ящиков — так любая проблема с настройкой проявится здесь в виде понятного сообщения, а не загадочной ошибки посреди разговора.

Другие MCP-клиенты

Подойдёт любой MCP-клиент — укажите ему команду protonmail-mcp через stdio. Для клиента с JSON-конфигурацией (Claude Desktop, Cursor, …):

{
  "mcpServers": {
    "protonmail": {
      "command": "npx",
      "args": ["-y", "protonmail-mcp"],
      "env": { "PROTONMAIL_USER": "you@proton.me", "PROTONMAIL_PASS": "…" }
    }
  }
}

Инструменты

Чтение (безопасно — разрешите агенту выполнять их свободно):

Инструмент

Что делает

list_mailboxes

Список папок и меток

list_recent_mail

Последние сообщения в почтовом ящике (краткие сводки)

get_unread_mail

Непрочитанные сообщения (краткие сводки)

search_mail

Поиск по тексту / отправителю / получателю / теме / диапазону дат

get_message

Полное сообщение по uid (цитируемая история обрезается по умолчанию)

Запись (ваш MCP-клиент должен спрашивать разрешение перед выполнением):

Инструмент

Что делает

create_draft

Сохранить черновик (не отправляет)

reply_to_message

Ответ в треде — по умолчанию сохраняет черновик, send=true для отправки

send_message

Отправить новое письмо немедленно

mark_read / mark_unread

Переключить флаг прочитано/не прочитано

archive_message / move_message

Перемещение между папками

trash_message

Переместить в Корзину (можно восстановить, пока не очищена)

Установите "readOnly": true (или PROTONMAIL_READONLY=1), чтобы зарегистрировать только инструменты чтения — это жёсткая гарантия, что агент никогда не сможет отправить, переместить или удалить письма, независимо от настроек подтверждения в клиенте.

Модель безопасности

Значимые инструменты записи — send_message, trash_message и reply_to_message с send=true — названы и описаны так, что естественным барьером становится подтверждение каждого инструмента в вашем MCP-клиенте; операции чтения никогда не запрашивают подтверждения. Предпочитайте черновики отправке: агент пишет, вы проверяете в Proton, вы нажимаете «Отправить». Для работы в автоматическом режиме без графического интерфейса запустите readOnly — и одобрять будет просто нечего.

На телефоне

Это локальный сервер, поэтому он доступен везде, где находится ваш агент. Свяжите машину с BrainBoxx — и вы сможете делать всё это прямо с телефона: «проверь мой Proton и скажи, что требует внимания» в поезде, а ответы уже будут в черновиках к тому времени, как вы доберётесь до дома.

Как это работает

MCP client (Claude Code / Cursor / …)
        │  MCP over stdio
        ▼
   protonmail-mcp   ──IMAP──►  127.0.0.1:1143  ┐
        │          ──SMTP──►  127.0.0.1:1025  ├─ Proton Bridge ──► Proton Mail
        └── clean JSON in, tool calls out       ┘   (local, TLS, your machine only)

Bridge предъявляет самоподписанный сертификат на localhost (это ожидаемо); инструмент доверяет ему по умолчанию для 127.0.0.1. Установите "allowSelfSigned": false, чтобы включить полную проверку, если вы предоставили Bridge доверенный сертификат.

Лицензия

MIT © 2026 Simon Stark. Не аффилирован с Proton AG и не одобрен ею.

Available Tools

8 tools
create_draftA

Compose a new email and save it to Drafts. Does NOT send — you review and send it yourself in Proton. Can include local file attachments.

Inputs: to (required), subject (required), cc, bcc, +3 more.

download_attachmentA

Save an attachment from a message to disk (into the configured download directory). Identify it by filename or 0-based index (from get_message); if the message has just one attachment, neither is needed. Returns the saved file path.

Inputs: uid (required), index, mailbox, filename.

forwardA

Forward a message to new recipients, carrying its original attachments. Optional intro note via body. Sends immediately unless draft=true. Can add further local file attachments.

Inputs: to (required), uid (required), body, html, +3 more.

get_messageA

Read one full message by uid (from a search result). Quoted reply history and signatures are trimmed by default for readability; pass full=true to keep everything. The result lists any attachments (name/type/size) — use download_attachment to save one.

Inputs: uid (required), full, mailbox.

replyA

Reply to a message (to its sender), correctly threaded, quoting the original. Sends immediately unless draft=true (saves to Drafts for you to review). Can include local file attachments.

Inputs: uid (required), body, html, draft, +2 more.

reply_allA

Reply to a message and everyone on it (sender + all other recipients, excluding you), threaded and quoting the original. Sends immediately unless draft=true. Can include local file attachments.

Inputs: uid (required), body, html, draft, +2 more.

search_mailA

Search email by any combination of free-text, sender, recipient, subject, and date range. With NO filters it returns your most recent inbox messages. Returns summaries (no body) newest first — use get_message with a result's uid to read the full text.

Inputs: to, from, limit, query, +5 more.

send_messageA

Send a new email immediately. This goes out the moment it runs — the client should confirm first. To let a human review before sending, use create_draft instead. Can include local file attachments.

Inputs: to (required), subject (required), cc, bcc, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 8 tools

    Disambiguation4/5

    Most tools are clearly distinct: search/get/download form a retrieval pipeline, and create_draft/send_message are explicitly contrasted. reply, reply_all, and forward could be confused, but their descriptions precisely define recipient behavior and threading.

    Naming Consistency4/5

    Most tools follow a clear verb_noun pattern like search_mail, get_message, download_attachment, create_draft, send_message. However, reply and forward are bare verbs, and reply_all mixes a verb with an adverb, creating minor inconsistency.

    Tool Count5/5

    Eight tools is a well-scoped set for an email-focused server. Each tool covers a distinct core email action without unnecessary redundancy or bloat.

    Completeness4/5

    The set covers search, read, download attachments, reply, reply-all, forward, draft, and send — the essential email workflows. Minor gaps like delete, move, or archive exist, but agents can handle common tasks end-to-end.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      A read-only MCP server that connects to Proton Mail via Proton Bridge, enabling AI assistants to search, list, and read emails securely without leaving your machine.
      4
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that connects to ProtonMail via Bridge, enabling AI assistants like Claude to manage your email.
      3
      MIT
    • F
      license
      Not graded
      quality
      B
      maintenance
      A lightweight MCP server providing AI agents a scoped, read-and-draft-only view into Proton Mail via Proton Bridge, with code-enforced restrictions preventing external access or sending.
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      A security-first MCP server that provides AI agents with a scoped, read-and-draft-only view into Proton Mail via Proton Bridge, ensuring no emails can be sent and access is restricted to configured workspaces.
      6
      -