
Proton Mail (Bridge)
io.github.legalaspro由 GitHub 账号 legalaspro 发布v1.31.0更新于 Nov 7, 2026
Unofficial MCP server for Proton Mail Bridge: search and read mail, write drafts, guarded cleanup.
概览
非官方本地 MCP 服务器,让助手通过 Bridge 搜索和阅读 Proton Mail、撰写草稿,并在批准后修改邮箱。
- 可以做什么
- 搜索、统计和阅读邮件,读取完整会话,读取或保存附件,且不会把邮件标记为已读
- 创建新草稿、回复和转发,草稿在发送前一直保持未发送状态
- 移动、归档、移入垃圾箱、标记已读或未读、增删标签、退订、删除草稿和创建文件夹,每项操作都先预览再经确认表单
- 仅在显式开启发送时,按草稿、预览、发送的步骤发送邮件
- 在支持 MCP Apps 的客户端中显示会话视图、撰写器和发送复核,其他客户端以文本返回结果
- 通过撤销操作回退已记录的更改,并维护仅含邮件头的本地索引以加快搜索
- 适用场景
- 适合让助手整理、总结或起草 Proton Mail 邮箱中的回复,或执行归档、打标签、退订等批量清理,同时在任何改动前保留人工批准环节。
- 运行要求
- 需在 Linux 或 macOS 本地运行(Windows 支持较新,建议用 WSL2),已安装并登录 Proton Mail Bridge,拥有付费 Proton 套餐,并安装 uv(Python 3.12 及以上)。安装程序会把 Bridge 密码和 bearer 令牌存入系统凭据存储。发送功能需要设置 PROTON_MCP_ENABLE_SEND=1,以及 PROTON_MCP_SEND_FROM 和 PROTON_BRIDGE_CERT。
安装
在 SourceWeft 中
- 打开 控制台中的 Proton Mail (Bridge),将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
proton-mail-mcp
[PyPI] [Python] [License] [CI] [MCP Registry] [mcp-proton-mail on Glama]
An MCP server that lets an AI assistant read your Proton Mail, write drafts and tidy your
mailbox, with a preview you approve before mail is moved, deleted or sent. It runs on your own
computer, under the same login as Proton Mail Bridge, and listens
only on 127.0.0.1.
proton-mail-mcp is unofficial and is not affiliated with or endorsed by Proton AG.
Run it in your own terminal. Install says what you need first, what it asks and how it adds the server to your MCP client.
What it does
- Search and read. Search and count mail, read whole threads, and read or save attachments. Nothing gets marked as read.
- Write drafts. Create new drafts, replies and forwards. A draft stays unsent until you send it.
- Clean up. Move, archive, trash, mark read or unread, add or remove labels, unsubscribe, delete drafts and create folders, each after a preview you approve. Folder rules (beta) are there if you turn them on.
- Send, if you turn it on. Sending is off by default, and there is no way to send without a saved draft and an approval.
- Show mail in the chat. Clients that support MCP Apps get a thread view, a composer and a send review. Every other client gets the same results as text.
It also keeps a private local index of mail headers so that searches stay fast. The index holds no message bodies.
How it keeps your mail safe
Reading changes nothing. Search and read open mailboxes read-only and never mark mail as seen.
Changes to your mail take two steps.
- Preview. The assistant asks what a change would do, and nothing changes yet. It shows you the count, samples and target, and gets a token: single use, short-lived and bound to exactly those messages. Before acting, the server checks them again and refuses if anything differs. New mail never slips into an approval.
- Confirm. Your MCP client shows a form with the exact change, and you accept or decline. A token alone is not enough, and declining retires it. The form is only as good as the client: a client that answers forms automatically defeats this check.
Permanent deletion only ever reaches approved messages in Drafts; removing a label expunges only that label's copy. There is no tool to empty Trash, or to delete or rename a mailbox. Every write call goes into an append-only audit log, which holds no message bodies, subjects, full addresses or tokens.
Sending
Set PROTON_MCP_ENABLE_SEND=1 to add the send tools, plus PROTON_MCP_SEND_FROM (the addresses
you send from) and PROTON_BRIDGE_CERT (Bridge's certificate); previews refuse without them.
There is no free-form send: the path is create_draft, then preview_send, then send_draft, and
any edit after the preview refuses. A client with a form shows you one. On a client that declares
no form, the assistant shows you a plain summary and sends after you type OK in chat. The server
cannot prove that a human typed the OK: only the assistant reports it, so a misled assistant could
send without asking. PROTON_MCP_SEND_TYPED_OK=0 turns this path off.
How approvals work has the details.
Mailbox changes have no typed OK. A client without a form is refused, unless you deliberately set
PROTON_MCP_CONFIRM_MUTATIONS=0, which lets the token alone authorize a change.
Protected senders
PROTON_MCP_PROTECTED_CONFIG can name a local list of senders that cleanup, unsubscribe, draft
deletion and rules must not touch. No list ships with the project, so by default mail from a
bank or a friend can be approved like any other. The list checks who sent the mail being acted
on, never who a draft is addressed to. See
Protected senders.
Off by default
On by default: the confirmation form, the typed OK once sending is on, the MCP Apps views and index recovery at startup. Configuration has the setting for each.
Install
You need:
- A paid Proton plan, which Bridge requires.
- Linux (Debian/Ubuntu, Fedora/RHEL or Arch) or macOS, with Homebrew unless Bridge is already installed. Native Windows support is new and has run only on Windows Server runners: read docs/windows.md first, or use WSL2.
- uv, which brings Python 3.12 or newer if you have none.
The package is mcp-proton-mail on PyPI, which
uvx fetches and runs; there is nothing to clone. Its command is proton-mail-mcp, also installed
as mcp-proton-mail.
1. Quit the Proton Mail Bridge app if it runs, and turn off its start-at-login setting. Setup
runs Bridge as a background service, which cannot run beside the app; the app's login carries
over. To keep using the app instead, add --skip-bridge-service below.
2. Run the guided setup in your own terminal, naming your MCP client:
It shows what it will do, asks its questions, prints the full plan and changes nothing else
before you approve it (--dry-run stops after the plan). The one exception: when Bridge is
installed but setup does not know your account yet, it first offers, at a [Y/n], to open
Bridge's CLI so you log in to Bridge. It checks or installs Bridge, stores the Bridge
password and a new bearer token in your system's credential store, starts per-user services,
checks that the server reads your inbox, and adds the server to your client, keeping a backup of
its config. Most clients start proton-mail-mcp connect, which reads the token itself, so their
config holds none. The token is never shown. Rerunning it is safe. If it stops on Debian or Ubuntu
because python3-venv is missing, run sudo apt-get install python3-venv, or add
--managed-python after uvx.
Only you can do these, and setup says when:
- Log in to Bridge, if it is not logged in yet: setup opens Bridge's CLI, where you type
login, your Proton email and password and the two-factor code, and open any verification link it prints in a browser. Pasting works. Setup then reads your IMAP username from Bridge. - Type the Bridge password at a hidden prompt: the one Bridge generated, not your Proton
password. In the Proton Mail Bridge app, select your mailbox, open Mailbox details and copy the
password under Password; Bridge's CLI shows it with
info. That is why setup runs in your own terminal. In classic PowerShell or cmd, pasting at a hidden prompt often doesn't work. Use Windows Terminal and paste with Ctrl+Shift+V, or type the password. If a tool later saysMailbox authentication failed, the error names the setup command to run there. - On macOS, allow Keychain access when asked: choose Always Allow.
- Restart your client at the end, as setup says.
3. Check it. Ask your assistant which Proton Mail tools it has; it should name tools such as
search_mail.
uvx mcp-proton-mail configure-client --client <name> adds another client later, and
Connect an MCP client has a page for each client and covers the others. An AI
agent setting this up for you follows llms-install.md: it does everything else
and hands you only the Bridge login, as one command for your own terminal.
Documentation
- New here: Getting started walks through a first session.
- Setting up: Install, Connect an MCP client, Configuration and Windows.
- Looking something up: Tool reference and Results, refusals and limits.
- Understanding it: How approvals work, and the documentation map for every page.
- What changed: Changelog.
On PyPI these relative links do not resolve; read them in the repository.
For AI assistants and coding agents
- An assistant connected to this server needs nothing from this repository: the server gives it its instructions and tool descriptions when it connects.
- An assistant reading about this project can start at
llms.txt, an index of these docs in Markdown. - An assistant installing it for someone follows
llms-install.md, which hands the person the one step only they can do. - A coding agent changing this repository should read
AGENTS.md.
Privacy Policy
proton-mail-mcp runs only on your computer, has no telemetry and sends nothing to its author. PRIVACY.md is the policy: what it reads, what it keeps where and how to delete it, when a send needs no approval, and what reaches your MCP client's model provider.
Network connections
PRIVACY.md lists every connection proton-mail-mcp makes, while it runs, each time a client starts the plugin or the bundle, and during install and setup.
License
来源:README.md,提交 875e3bf
工具
0版本历史
3- v1.31.0最新Nov 7, 2026
- v1.30.2Nov 3, 2026
- v1.30.0Nov 3, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分