
Proton Safe MCP
io.github.fbossiere由 GitHub 帳號 fbossiere 發布v2.3.2更新於 Oct 29, 2026
Read Proton Mail, extract bounded attachment text, and create explicitly confirmed drafts.
發布方自己的服務:Google Analytics (unofficial)
概覽
本機 MCP 伺服器,讓助理透過 Proton Mail Bridge 讀取與搜尋 Proton Mail,並建立需確認的草稿,但絕不寄送郵件。
- 可以做什麼
- 檢查 Bridge 連線狀態,列出資料夾、寄件地址與郵件,並搜尋郵件且不標示為已讀
- 以有長度限制的純文字讀取郵件,並從 PDF、TXT、CSV 附件擷取有長度限制的文字
- 以分塊 base64 方式暫存待寄附件,驗證大小與 SHA-256,或捨棄暫存附件
- 僅在收件者、主旨、內文與附件經明確確認後建立草稿;不提供寄送、刪除或移動工具
- 適用情境
- 適合在與 Proton Mail Bridge 同一台機器上透過 MCP 用戶端檢視與整理 Proton Mail,以及準備含附件的草稿,再由你在 Proton Mail 中檢視並寄出。
- 執行需求
- 在 Linux 上以 STDIO 本機執行,需要已安裝、已登入且正在執行的 Proton Mail Bridge,以及支援 Bridge 的 Proton 方案。命令列安裝需要 Python 3.11-3.14 與 uv,或使用 Ubuntu 桌面安裝程式。需要可用的 Secret Service 金鑰環,Bridge 產生的 IMAP 密碼透過 setup 指令存入其中。必須設定環境變數 PROTON_BRIDGE_USER 與 PROTON_IMAP_PORT,PROTON_BRIDGE_ALIASES 為選用。Windows 11 支援尚未發布。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Proton Safe MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Proton Safe MCP
Website & download · En français
[CI] [Documentation] [Listed on mcpservers.org] [Python 3.11–3.14] [License: MIT] [Checked with mypy] [Ruff]
[Proton Safe MCP — draft-only email tools, human-approved]A client-agnostic FastMCP server for Proton Mail through the official Proton Mail Bridge. It can read and search mail and create drafts with attachments. It deliberately cannot send email — you review every draft in Proton Mail and press Send yourself.
The server runs locally over STDIO for any MCP-compatible client (Claude Desktop, Claude Code, or anything else that speaks MCP). Received PDF, TXT, and CSV attachments can be inspected through bounded text extraction without exposing their raw bytes. Outgoing attachments are uploaded as bounded base64 chunks, so the server never receives or reads a client filesystem path.
Read the full documentation for setup, configuration, tool inputs, security boundaries, and troubleshooting.
Why "safe"?
Email is attacker-controlled input. Any sender can put adversarial instructions in a message body, and an AI agent that reads mail and holds write-capable tools is one prompt injection away from doing something you did not ask for. This project limits the blast radius by construction:
- No send. There is no SMTP client and no
send_messagetool in the codebase — a test asserts it. - No delete, no move, and no raw received-attachment download tool.
- Human in the loop. Draft creation requires explicit confirmation of the exact content in the conversation, and Proton Mail still requires manual review and sending.
- No filesystem access for clients. Attachment bytes are streamed in chunks with declared size and SHA-256 verification; paths are rejected.
- Loopback only. STDIO transport, no listening socket, and the Bridge host is hard-coded to
127.0.0.1.
These controls reduce risk but do not make email trusted. Never expose unrelated write-capable tools in the same unattended agent workflow.
Architecture
Security properties
- STDIO only: the server opens no listening network socket.
- Proton Bridge host is hard-coded to
127.0.0.1(PROTON_BRIDGE_HOSTis intentionally unsupported). - No SMTP client, send tool, delete tool, move tool, or raw received-attachment download tool.
- Message and attachment reads use
BODY.PEEK; attachment inspection returns bounded extracted text, metadata, and a SHA-256 digest, never raw bytes or files. - Attachment input is chunked base64 with declared size and SHA-256 verification.
- Only PDF, DOCX, XLSX, PPTX, TXT, CSV, PNG, and JPEG uploads are accepted.
- Attachment tokens are random, short-lived, single-use, and reverified before draft creation.
- Draft creation requires an explicit client assertion that the user confirmed the exact recipients, subject, body, and attachments in the conversation.
- The Bridge-generated IMAP password is stored in the operating-system keyring.
- Draft bodies are stored as plain text plus a server-generated HTML alternative that HTML-escapes the confirmed body, so quoted markup can never be rendered. Nothing is ever appended to a body server-side, including a reply quote.
- Proton Bridge does not preserve reply threading in saved drafts. Reply targets are refused unless the user explicitly accepts a possibly separate draft. Accepted replies submit headers only. Recipients are never derived from the message being replied to, its Message-ID is reverified at the IMAP write, and both identifiers are validated so neither can continue into a header of its own.
- Recipient, subject, and folder inputs are validated against header/criteria injection.
- State files are private to one account. On Linux:
0700directories,0600files andO_NOFOLLOW. On Windows: a protected DACL granting only the owning user and the system accounts, with reparse points refused in place ofO_NOFOLLOW.
Requirements
- Linux with the official Proton Mail Bridge installed, signed in, and running (developed and tested on Ubuntu).
- A Proton plan that supports Bridge.
- Python 3.11–3.14 (tested in CI) for the command-line installation; bundled in the desktop installer.
uvfor the command-line installation.- A working Secret Service keyring (
gnome-keyringor compatible).
Windows 11 x64 support is implemented in this repository but not released: automated checks run on Windows Server, while end-to-end Windows 11 acceptance remains untested. See the Windows installer notes and its acceptance sheet.
Installation
Desktop assistant — Ubuntu 24.04, x86_64
Download the installer,
open it with Ubuntu's package installer, then launch Proton Safe. The assistant guides
you through Bridge connection and plugin activation in a compatible local ChatGPT desktop
or Codex installation. Python and uv are included; no terminal setup is required.
You still need Proton Mail Bridge, a compatible Proton plan and a session keyring. See the desktop guide for prerequisites, screenshots and repair options. Checksums and build provenance are in the release.
Desktop assistant — Windows 11, x64
Not available yet. The installer, the Windows platform layer and the build pipeline exist, but no acceptance scenario has been run on Windows and there is no download. Two external dependencies remain open: a Windows AI client whose full path is qualified, and a signing identity usable from CI.
Command-line installation — other MCP clients
Install the reviewed release from PyPI with uv:
For development from source instead:
Set the Proton address and Bridge IMAP port in the MCP process environment. No credential is ever set here:
To draft as another Proton address of the same account, add the optional sender allowlist in that same environment, as comma-separated bare addresses:
Store the Bridge-generated IMAP password (shown in the Bridge UI), not your Proton account password:
The value shown by Bridge is installation-specific and works only against the local Bridge.
Register with an MCP client
Configure a local STDIO server with these logical fields. Use command -v proton-safe-mcp
to obtain the absolute command path when your client does not inherit your shell PATH:
PROTON_BRIDGE_ALIASES goes in the same env block when a draft may use more than one From
address. See Sender addresses.
Do not put PROTON_BRIDGE_PASSWORD in the client configuration. The server reads it from the OS keyring established by setup.
Copy-paste instructions are available for Claude Code, Cursor, and VS Code.
AI coding agents can follow the safety-constrained llms-install.md guide.
Verify the complete local setup without printing credentials, addresses, or mailbox data:
OpenAI plugin
The repository includes a private, local-first Proton Safe plugin for ChatGPT and Codex. It packages safety-focused mail review and draft workflows with the same restricted MCP server:
- ChatGPT desktop and Codex can launch the bundled STDIO configuration directly on the Bridge machine, with no tunnel or dedicated server;
- direct MCP registration remains available when the packaged workflow skills are not needed;
- ChatGPT web or a client on another machine can optionally reach the Bridge host through OpenAI Secure MCP Tunnel without an inbound port;
- a remote deployment still keeps
proton-safe-mcpand Proton Mail Bridge together, with IMAP fixed to127.0.0.1.
See the OpenAI plugin guide for local ChatGPT desktop/Codex installation, direct MCP registration, and the optional remote tunnel.
Plugin installed but no Proton tools? The bundled MCP configuration forwards
PROTON_BRIDGE_USERandPROTON_IMAP_PORTfrom the environment that started Codex; it does not define their values. On Ubuntu, a correct~/.config/environment.d/*.conffile can still require a user-manager reload, while GNOME and already-running terminals can keep their earlier environment. If a menu relaunch still has no tools, start ChatGPT once from a terminal that has loaded the file. That terminal launch is a diagnostic, not a requirement for every start; the troubleshooting guide also provides a persistent per-user menu launcher. Follow the privacy-safe Ubuntu recovery procedure or the FAQ before reinstalling anything.
Help test the onboarding. Linux and Proton Mail Bridge users can run the 10-minute external test and submit privacy-safe installation feedback.
Available MCP tools
There is deliberately no send_message tool.
Attachment and draft workflow
The MCP client only needs the ability to obtain the bytes of a file and call tools. There is no dependency on a particular client, service, or local directory.
- Calculate the exact byte length and SHA-256 of the file.
- Call
begin_attachment_upload(filename, content_type, size_bytes, sha256_hex). - Base64-encode consecutive binary chunks no larger than the returned
max_chunk_bytes. - Call
upload_attachment_chunk(upload_id, chunk_index, data_base64)for indexes0, 1, 2…. - Call
finish_attachment_upload(upload_id)and retain the returnedattachment_token. - Present the exact recipients, subject, complete body, and attachment list to the user.
- After explicit confirmation in the conversation, call
create_confirmed_draft(..., user_confirmed=true, attachment_tokens=[token]). - Open Proton Mail, review the draft, and send it manually.
Step 8 is the human gate, and it is the only one that matters: the server has no SMTP implementation, so a draft it creates cannot leave your account until you press Send in Proton Mail. Uploaded attachments expire after 30 minutes if no draft consumes them.
Local administration
Configuration reference
PROTON_BRIDGE_HOST is intentionally unsupported.
For isolated containers without a Secret Service keyring, PROTON_BRIDGE_PASSWORD may contain
the Bridge-generated IMAP password. Avoid this fallback in desktop MCP client configuration:
environment values may be visible to the client process or its diagnostics.
Development
Proton Bridge is not needed for development: the test suite fakes the IMAP layer. Tests cover path rejection, MIME restrictions, received-attachment size and format rejection, bounded PDF/text extraction, ordered chunks, size/hash verification, token consumption, header injection, draft confirmation, recipient and attachment bounds, and HTML-to-text sanitization.
See CONTRIBUTING.md for the design rules that reviews enforce.
Threat-model limitations
Read this before relying on the server in an autonomous workflow:
- A model necessarily sees any mail it reads and any attachment it creates or uploads.
- Extracted attachment text is attacker-controlled and may contain prompt injection. The server bounds the returned text but does not make it trustworthy or perform OCR or malware scanning.
- Uploaded attachment bytes are stored temporarily in files readable only by the Unix account. Use full-disk encryption.
- The server cannot inspect the surrounding conversation.
user_confirmed: trueis a client assertion, so the confirmation step depends on the client honoring the rule. It reduces accidents; it is not a boundary against a client under an attacker's influence. - A draft this server creates is inert until you send it, but it can still be crafted to look like something you wrote. Read drafts in Proton Mail before sending, especially recipients.
- Secure MCP Tunnel keeps the server off the public internet, but mail content returned to an OpenAI product still crosses the local Bridge boundary and is processed by that product.
- Tool annotations and conversational-confirmation instructions are client guidance, not authorization controls. What the server enforces is input validation and the absence of any send, delete, or move capability.
- Proton Bridge's self-signed TLS certificate is not verified. This is acceptable here only because the target host is unchangeably
127.0.0.1.
Security
To report a vulnerability, use GitHub private vulnerability reporting — never a public issue. See SECURITY.md.
License
MIT © 2026 Francois Bossiere.
This project is not affiliated with or endorsed by Proton AG. "Proton Mail" and "Proton Mail Bridge" are trademarks of Proton AG.
來源:README.md,提交 a4e8f38
工具
0版本歷史
3- v2.3.2最新Oct 29, 2026
- v2.3.1Oct 14, 2026
- v2.3.0Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Safe-Mcp 整合

Google Analytics (unofficial)
com.safe-mcp官方發布者
非官方遠端 MCP 伺服器,讓助理用自然語言查詢 GA4、Google Search Console 與 Bing Webmaster 資料,產生報表與漏斗分析。

TypeSafe MCP
由 GitHub 帳號 Renwang-Huang 發布
為助理提供型別化決策原語——分類、評分、檢查、驗證、閘控、路由、審查——由 TypeSafe Jev 模型驅動。

SQL Safe MCP
由 GitHub 帳號 proprock 發布
唯讀的 MCP 伺服器,讓編碼助理了解 SQL Server、MySQL 與 MariaDB 的結構,並執行受限 SELECT 查詢,其中 PII 欄位以權杖形式回傳。