Proton Bridge
БесплатноНе проверенEnables sending correctly threaded email replies through Proton Mail Bridge using SMTP with proper In-Reply-To and References headers, avoiding IMAP draft pitfa
Описание
Enables sending correctly threaded email replies through Proton Mail Bridge using SMTP with proper In-Reply-To and References headers, avoiding IMAP draft pitfalls.
README
CLI and MCP server for sending correctly threaded replies through Proton Mail Bridge.
The main lesson encoded here is simple:
- Use Proton Bridge SMTP with explicit
In-Reply-ToandReferencesfor agent-sent replies. - Do not create same-thread reply drafts by IMAP
APPEND; Proton Bridge may rewrite those draft headers and the sent email can leave the original conversation. - Proton web/app reply composer is also safe because it creates the reply from the existing conversation.
Features
- Search message headers through Proton Bridge IMAP.
- Find a thread anchor by sender and subject.
- Send a threaded reply through Proton Bridge SMTP.
- Verify sent-message headers.
- Expose the same operations as MCP tools for coding agents.
- Sending tools are dry-run by default unless
confirm_sendis set.
Requirements
- Python 3.10+
- Proton Mail Bridge running locally
- Bridge IMAP enabled, usually
127.0.0.1:1143 - Bridge SMTP enabled, usually
127.0.0.1:1025
No third-party Python dependencies are required.
Configuration
Set the Bridge account and Bridge mailbox password:
export PROTON_BRIDGE_ACCOUNT="[email protected]"
export PROTON_BRIDGE_PASSWORD="your-bridge-mailbox-password"
PROTON_PW is also accepted for the password if you already use that name.
These are Proton Bridge credentials, not necessarily your Proton web password.
CLI Usage
From the repo root:
python3 -m krantiutils_proton.cli search \
--from-addr [email protected] \
--subject-contains "Paper draft" \
--limit 3
Dry-run a threaded reply to the latest matching incoming message:
python3 -m krantiutils_proton.cli reply-latest \
--thread-from [email protected] \
--subject-contains "Paper draft" \
--to [email protected] \
--body-file /tmp/reply.txt \
--attach /tmp/paper.pdf
Actually send only after checking the dry-run output:
python3 -m krantiutils_proton.cli reply-latest \
--thread-from [email protected] \
--subject-contains "Paper draft" \
--to [email protected] \
--body-file /tmp/reply.txt \
--attach /tmp/paper.pdf \
--confirm-send
Verify sent headers:
python3 -m krantiutils_proton.cli verify-sent \
--to-addr [email protected] \
--subject-contains "Paper draft" \
--limit 5
Send a controlled threading test to yourself:
python3 -m krantiutils_proton.cli thread-test \
--to [email protected] \
--count 3 \
--confirm-send
MCP Server
Run:
./proton-bridge-mcp
Codex-style config:
[mcp_servers.proton_bridge]
command = "/absolute/path/to/proton-bridge-mcp/proton-bridge-mcp"
env = { PROTON_BRIDGE_ACCOUNT = "[email protected]" }
Set PROTON_BRIDGE_PASSWORD in the environment available to the MCP process.
Available tools:
proton_search_headersproton_latest_thread_anchorproton_send_emailproton_reply_to_latestproton_verify_sentproton_send_thread_test
Agent Workflow
For a thread-safe reply:
- Use
proton_latest_thread_anchorto find the latest incoming message in the target thread. - Inspect the returned
message_id,in_reply_to,references, sender, and subject. - Dry-run
proton_reply_to_latestwithoutconfirm_send. - Check recipient, subject, attachment paths, and the generated
In-Reply-To/References. - Send only after explicit user approval with
confirm_send: true. - Use
proton_verify_sentto confirm the sent copy kept thread headers.
Never claim an IMAP-created draft is definitely on the original thread unless
the stored draft has the expected In-Reply-To and References headers.
Установка Proton Bridge
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/krantiutils/proton-bridge-mcpFAQ
Proton Bridge MCP бесплатный?
Да, Proton Bridge MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Proton Bridge?
Нет, Proton Bridge работает без API-ключей и переменных окружения.
Proton Bridge — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Proton Bridge в Claude Desktop, Claude Code или Cursor?
Открой Proton Bridge на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Gmail
Read, send and search emails from Claude
автор: GoogleSlack
Send, search and summarize Slack messages
автор: SlackRunbear
No-code MCP client for team chat platforms, such as Slack, Microsoft Teams, and Discord.
Discord Server
A community discord server dedicated to MCP by [Frank Fiegel](https://github.com/punkpeye)
Compare Proton Bridge with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории communication
