Protonlite MCP
<!-- mcp-name: io.github.Maytrella007/protonlite-mcp -->
# 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](https://modelcontextprotocol.io) 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](https://github.com/Maytrella007/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
```bash
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:
```bash
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
```bash
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
```bash
claude mcp add proton -e PROTONLITE_SESSION=/home/you/you@proton.me.json -- protonlite-mcp
```
### Claude Desktop, Cursor and other `mcpServers` configs
```json
{
"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 |
|---|---|
| Mail | `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 first `send_message` sends nothing
and asks for approval, and a second call with `confirm=true` sends.
**What only a person can change**, out of band, which no tool can loosen:
```bash
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 the
`PROTON_ALLOWED_RECIPIENTS` env 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`, or
`PROTON_REQUIRE_SEND_CONFIRMATION=1`, turns sending off for the agent entirely: the
`confirm` argument cannot lift it, and a person sends from a terminal with `protonlite
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](https://github.com/Maytrella007/hermes-proton).
## Container
```bash
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](https://github.com/Maytrella007/protonlite) -- the Python library and CLI this
server is built on (Mail, Calendar, Contacts, Drive, and the login).
- [hermes-proton](https://github.com/Maytrella007/hermes-proton) -- the same engine as a
[Hermes Agent](https://github.com/NousResearch/hermes-agent) plugin, with a human-approval
gate on every send.
## License
MIT. See [LICENSE](LICENSE).
TDQS
Scored across 18 tools
Most tools target a distinct resource and action, and prefixes like drive_* clearly separate Drive operations from mail and calendar operations. The only mild overlap is between list_messages and search_messages, but their descriptions make the distinction clear (folder listing vs. sender/subject query).
Drive tools consistently follow a drive_verb_noun pattern, and message tools use verb_noun. However, mail tools lack a mail_ prefix, policy tools use a different email_* convention, and calendar/contacts are bare nouns, so the set mixes several conventions.
Eighteen tools are slightly above the ideal range but reasonable for a multi-domain Proton client covering mail, Drive, calendar, and contacts. Each tool appears to earn its place, with no obvious filler.
Drive coverage is strong (list, download, upload, mkdir, rename, move, trash, share/unshare), but mail lacks delete/archive/move/mark operations, calendar only reads an agenda with no event creation, and contacts are read-only. These are notable gaps for an agent trying to manage the full Proton surface.