
Protonlite
io.github.Maytrella007由 GitHub 账号 Maytrella007 发布v0.1.3更新于 Oct 30, 2026
Python Proton Mail, Calendar, Contacts and Drive client with an MCP server. Free plan, no Bridge.
概览
非官方的 Proton 邮件、日历、联系人和 Drive 客户端,让助手在免费 Proton 账户上读取、搜索和发送邮件,并管理日历、联系人与 Drive 文件。
- 可以做什么
- 列出、读取和搜索邮件,发送带附件、回复或定时发送的邮件
- 读取日程,创建、编辑或取消日历事件
- 读取、创建、编辑和删除联系人
- 列出、下载、上传、移动、重命名、移入回收站和分享 Drive 文件
- 查看并修改发件白名单和发送前确认规则
- 适用场景
- 适合让助手在不需要 Proton Mail Bridge 和付费方案的情况下处理 Proton 邮箱、日历、联系人或 Drive,例如整理邮件、起草并发送回复,或在 Drive 中移动文件。
- 运行要求
- 以 Python 包形式在本地运行(需 Python 3.10+),可通过 uvx 或带 mcp 附加项的 pip 安装。需先用命令行登录一次生成会话文件,并通过 PROTONLITE_SESSION 指定其路径;服务器本身不接收密码。生成日历密钥需调用 gpg。登录时需人工完成 Proton 的验证页面。
安装
在 SourceWeft 中
- 打开 控制台中的 Protonlite,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
protonlite
A small, dependency-light Python client and API for Proton Mail (ProtonMail) -- Mail, Calendar, Contacts and Drive, with no Proton Mail Bridge and no paid plan. Ships an optional MCP server so an agent (Claude Code, Cursor) can use your mailbox.
Proton has no IMAP or SMTP. The official way in is Proton Mail Bridge, which needs a paid
plan. protonlite talks to Proton's web API directly, so it works on a free account, and the
end-to-end crypto is ported from Proton's own MIT-licensed Go libraries
(go-srp,
go-proton-api). It stays MIT-licensed and
dependency-light: just OpenPGP (PGPy13, a maintained fork of PGPy), bcrypt and requests. No CAPTCHA solver, no
computer-vision stack -- a person completes Proton's verification page the same way Proton's
own apps do.
Unofficial. This project is not affiliated with, endorsed by, or supported by Proton AG. "Proton", "Proton Mail", "Proton Calendar" and "Proton Drive" are trademarks of Proton AG. It talks to a private, undocumented API that can change at any time, and using it may be subject to Proton's terms of service. Use it at your own risk, on accounts you own.
What it does
- Mail -- read the inbox and any folder, decrypt messages (HTML flattened to text), search, send (plain or HTML, attachments, replies in-thread, scheduled), save drafts, mark read/unread, trash/delete, labels and folders, empty trash, storage usage.
- Calendar -- read the agenda, create / edit / cancel events, send invitations, RSVP.
- Contacts -- read, create, edit and delete contacts (signed/encrypted vCards).
- Drive -- list, download, upload (encrypted), move, rename, trash, and create public share links.
All of it is end-to-end: keys are unlocked locally with the account password and messages, events, contacts and files are decrypted on your machine.
Install
Requires Python 3.10+.
Quickstart
Command line
A small CLI covers the mail basics:
Signing in
Proton logins from a server almost always trigger a human-verification page (hCaptcha). The
login flow surfaces that URL so a person can complete it in a browser; protonlite never
solves it and never asks for a password over any channel but your own code. The account
password is used only to derive keys locally -- it is never stored; the saved session holds
OAuth-style tokens and the derived key passphrase, nothing more. Two-factor (TOTP) is
supported.
MCP server
protonlite ships an optional MCP server so any MCP client
(Cursor, Claude Code, Claude Desktop) can use Proton through it. Sign in once with the CLI,
then run the server pointed at that session:
protonlite mcp starts the same server, so uvx --from "protonlite[mcp]" protonlite mcp runs
it without a local install (this is what the MCP registry entry uses).
Wire it into an MCP client (e.g. Claude Desktop / Cursor mcpServers config):
The server never takes a password -- it reuses the saved session. It exposes 18 tools:
list_messages, read_message, search_messages, send_message, calendar, contacts,
a full Proton Drive set -- drive_list, drive_download, drive_upload, drive_mkdir,
drive_move, drive_rename, drive_trash, drive_share_link, drive_unshare_link -- and
three send-policy tools: email_policy_status, email_allow and set_send_confirmation. It
returns other people's content wrapped as untrusted data. drive_share_link makes a public
link whose URL is the whole secret, so it is meant for files you intend to share.
send_message can also attach local files, for example one you just fetched with
drive_download.
Send policy (allowlist and confirmation)
send_message is governed by a recipient allowlist and an optional "confirm before sending"
rule, both of which the agent can read and change:
email_policy_statusshows the current allowlist and whether confirmation is on.email_allowsets the allowlist -- specific addresses or globs (*@company.com) to restrict sending,["*"]to allow anyone,[]to block all sends.set_send_confirmationturns the confirm rule on or off. When on,send_messagesends nothing on the first call and returns a confirmation request; it sends only when called again withconfirm=true.
These three tools are what the agent can change, so on their own they are convenient but
advisory. The hard controls are set out of band, by a person, and the agent cannot loosen
them -- with env vars, or with the protonlite policy CLI:
- Recipient ceiling.
PROTON_ALLOWED_RECIPIENTS(comma-separated addresses/globs), orprotonlite policy ceiling <addrs>, is a ceiling theemail_allowtool cannot exceed: a send to anyone outside it is refused no matter what the agent does. - Hard confirmation.
PROTON_REQUIRE_SEND_CONFIRMATION=1, orprotonlite policy require-confirm on, turnssend_messageoff for the agent entirely -- it is always refused, and theconfirmargument cannot lift it, so a person sends from a terminal withprotonlite send. (The agent's ownset_send_confirmationonly controls the softer two-step rule, whereconfirm=trueis enough; a determined or manipulated agent can pass that itself, so it is a checkpoint, not a barrier.)
Manage the hard policy from a terminal:
Also run the server only in an MCP client that asks you to approve each tool call, because
send_message and drive_upload read local files and can send them out. For a send gate the
agent can never reach -- a fail-closed human-approval hook on every send -- use
hermes-proton below.
Status and limits
The write paths (Drive upload, calendar event creation, share links) were reverse-engineered
from Proton's Go and web clients and verified against live accounts, but the API is
undocumented and may change. Calendar key generation shells out to gpg (Proton requires an
Ed25519 key that PGPy cannot generate). Bug reports and PRs welcome.
Related
protonlite is also the engine behind hermes-proton, a Proton plugin for the
Hermes Agent that adds a recipient allowlist
and a human-approval gate on every send.
License
MIT. See LICENSE.
来源:README.md,提交 1c2692b
工具
0版本历史
1- v0.1.3最新Oct 22, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分