protonlite-mcp
An MCP server for Proton Mail (ProtonMail), Proton Calendar, Proton Contacts and Proton Drive. Point Claude Code, Claude Desktop, Cursor or any other MCP client at it and the agent can read and send your mail, check your agenda, look up contacts and work with your files -- with no Proton Mail Bridge and no paid plan.
It is the server half of protonlite, which does the Proton API and the end-to-end crypto (ported from Proton's own MIT-licensed Go libraries). This package is the MCP wiring: the tools, their descriptions, and the policy that governs sending.
Unofficial. 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.
Install
pip install protonlite-mcp
Requires Python 3.10+. The protonlite library comes along as a dependency. To run it
without installing anything, use uvx protonlite-mcp.
Sign in once
The server never takes a password. A person signs in from a terminal, which saves a session file, and the server reuses that file:
protonlite login --user you@proton.me # prompts for the password with getpass
Proton usually asks a human to complete a verification page (hCaptcha) on a server login;
the CLI prints that URL so you can finish it in a browser. Two-factor (TOTP) is supported.
The login prints where it saved the session; that path is what you hand the server in
PROTONLITE_SESSION.
Run it
PROTONLITE_SESSION=~/you@proton.me.json protonlite-mcp
The bare command speaks MCP over stdio, which is what a client launches. python -m protonlite_mcp and uvx protonlite-mcp run the same server.
Claude Code
claude mcp add proton -e PROTONLITE_SESSION=/home/you/you@proton.me.json -- protonlite-mcp
Claude Desktop, Cursor and other mcpServers configs
{
"mcpServers": {
"proton": {
"command": "protonlite-mcp",
"env": { "PROTONLITE_SESSION": "/home/you/you@proton.me.json" }
}
}
}
With uvx instead of a local install, use "command": "uvx" and
"args": ["protonlite-mcp"].
The 18 tools
| Area | Tools |
|---|---|
list_messages, read_message, search_messages, send_message |
|
| Calendar | calendar |
| Contacts | contacts |
| Drive | drive_list, drive_download, drive_upload, drive_mkdir, drive_move, drive_rename, drive_trash, drive_share_link, drive_unshare_link |
| Send policy | email_policy_status, email_allow, set_send_confirmation |
send_message sends plain text or HTML and can attach local files, for example one the agent
just fetched with drive_download. drive_share_link returns a public link whose URL is the
whole secret (the password rides in the fragment, so it never reaches Proton's servers):
anyone holding that URL can open the file, so it is meant for files you intend to share, and
drive_unshare_link revokes it.
Everything other people wrote -- message bodies, calendar titles, contact notes, file names -- comes back wrapped as untrusted data, because an MCP client is a language model and that text must never be read as instructions.
Send policy
Sending is the one action that reaches other people, so send_message is governed by a
recipient allowlist and an optional "confirm before sending" rule. There are two layers.
What the agent can change (convenient, and therefore advisory):
email_policy_status-- show the allowlist, any hard ceiling, and whether confirmation is on.email_allow-- set the allowlist: addresses or globs (*@company.com) to restrict sending,["*"]to allow anyone,[]to block every send.set_send_confirmation-- the soft two-step rule: the firstsend_messagesends nothing and asks for approval, and a second call withconfirm=truesends.
What only a person can change, out of band, which no tool can loosen:
protonlite-mcp policy show # print the effective policy
protonlite-mcp policy ceiling '*@your-company.com' # a ceiling email_allow cannot exceed
protonlite-mcp policy require-confirm on # the agent can no longer send at all
protonlite-mcp policy require-confirm off # lift it
- Recipient ceiling --
protonlite-mcp policy ceiling <addrs>, or thePROTON_ALLOWED_RECIPIENTSenv var (comma-separated addresses or globs). A send to anyone outside it is refused whatever the agent does. - Hard confirmation --
protonlite-mcp policy require-confirm on, orPROTON_REQUIRE_SEND_CONFIRMATION=1, turns sending off for the agent entirely: theconfirmargument cannot lift it, and a person sends from a terminal withprotonlite send.
The hard half lives in a locked section of the policy file that only the CLI writes
(~/.config/protonlite/mcp_policy.json, or PROTONLITE_MCP_POLICY). email_policy_status
always reports both layers and the exact command to change each one, so the agent can tell a
person what to run instead of guessing.
Run the server in a client that asks you to approve each tool call: send_message and
drive_upload read local files and can send them out. For a send gate an agent can never
reach -- a fail-closed human-approval hook on every send -- use
hermes-proton.
Container
docker build -t protonlite-mcp .
docker run -i --rm -e PROTONLITE_SESSION=/session.json -v ~/you@proton.me.json:/session.json:ro protonlite-mcp
Related
- protonlite -- the Python library and CLI this server is built on (Mail, Calendar, Contacts, Drive, and the login).
- hermes-proton -- the same engine as a Hermes Agent plugin, with a human-approval gate on every send.
License
MIT. See LICENSE.
Metadata
Release files for protonlite-mcp 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| protonlite_mcp-0.2.0.tar.gz | 20.5 kB | With provenance | Details for protonlite_mcp-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| protonlite_mcp-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for protonlite_mcp-0.2.0-py3-none-any.whl |
Total release size: 36.8 kB
Release files / protonlite_mcp-0.2.0.tar.gz
| Download URL | protonlite_mcp-0.2.0.tar.gz |
|---|---|
| Size | 20.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8212a4b0fc821afcf71ddb48b556ce94f525d824cde5732e33e338cfa8603871
|
|
BLAKE2b-256 checksum How to use checksums |
ce9847a4cf9e4d70d7e9f7df138baf6b462268e47ebd9c371a6b99f70f68ddb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logRelease files / protonlite_mcp-0.2.0-py3-none-any.whl
| Download URL | protonlite_mcp-0.2.0-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b5cd98ea6c0d2eb5734582a0bae5aefb498c836b3444bab7370108a9b9598409
|
|
BLAKE2b-256 checksum How to use checksums |
6ffb171a4805a11f90ceacefb79e2104901c876ba9f6c7831c6bff53180a8531
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logSecurity for protonlite-mcp 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for protonlite_mcp-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.