Skip to main content
Glama

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.

Related MCP server: proton-mail

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

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:

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.

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
  • 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.

Available Tools

18 tools
calendarA

Show the Proton Calendar agenda for the next N days.

Inputs: days. Returns: result

contactsA

List Proton contacts (name and email), optionally filtered by a query.

Inputs: query. Returns: result

drive_downloadC

Download and decrypt a Proton Drive file to a local directory.

Inputs: path (required), dest_dir. Returns: result

drive_listA

List a Proton Drive folder by path (folders first); empty path is the root.

Inputs: path. Returns: result

drive_mkdirB

Create a new Proton Drive folder (empty parent_folder is the root).

Inputs: name (required), parent_folder. Returns: result

drive_moveA

Move a Proton Drive file or folder into another folder (empty dest_folder is the root).

Inputs: path (required), dest_folder (required). Returns: result

drive_renameB

Rename a Proton Drive file or folder in place.

Inputs: path (required), new_name (required). Returns: result

drive_trashA

Move a Proton Drive file or folder to the trash (recoverable in Proton Drive).

Inputs: path (required). Returns: result

drive_uploadB

Encrypt and upload a local file into a Proton Drive folder (empty dest_folder is the root).

Inputs: local_path (required), name, mime_type, dest_folder. Returns: result

email_allowA

Set the recipient allowlist for send_message. Pass specific addresses or globs (e.g. @company.com) to restrict sending to them, [""] to allow anyone, or [] to block all sending. A hard ceiling from PROTON_ALLOWED_RECIPIENTS still applies on top and cannot be loosened here.

Inputs: recipients (required). Returns: result

email_policy_statusA

Show the send policy: which recipients the allowlist permits (or that it is open), any hard ceiling set by the PROTON_ALLOWED_RECIPIENTS env var, and whether a send needs confirmation.

Inputs: no named parameters. Returns: result

list_messagesC

List messages in a Proton Mail folder (inbox, sent, archive, spam, trash, starred...).

Inputs: limit, folder, unread_only. Returns: result

read_messageA

Read one Proton Mail message by id, decrypted, with HTML flattened to prose.

Inputs: message_id (required). Returns: result

search_messagesB

Find messages whose sender or subject contains the query.

Inputs: query (required), limit. Returns: result

send_messageA

Send an email. Plain text by default; set html=true to send the body as HTML. attachments is a list of local file paths to attach, e.g. a file you just fetched with drive_download. A send is refused if a recipient is not on the allowlist (see email_policy_status / email_allow). When the confirm-before-sending rule is on, the first call sends nothing and returns a confirmation request; call again with confirm=true once the person has approved.

Inputs: to (required), body (required), subject (required), html, +2 more. Returns: result

set_send_confirmationA

Turn the 'confirm before sending' rule on or off. When on, send_message sends nothing until it is called again with confirm=true, so a person can approve first. If PROTON_REQUIRE_SEND_CONFIRMATION is set, the rule is forced on and cannot be turned off here.

Inputs: required (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 18 tools

    Disambiguation4/5

    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).

    Naming Consistency3/5

    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.

    Tool Count4/5

    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.

    Completeness3/5

    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.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to send, read, search, and organize emails via ProtonMail using Proton Bridge. Supports MCP-compatible clients like Claude and Cursor.
      18
      14 npm
      4
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      A safe-by-default MCP server that gives Claude access to your Proton Mail through Proton Mail Bridge's localhost IMAP/SMTP. Sending requires human approval and destructive operations are limited.
      29 PyPI
      2
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Lets MCP clients read, search, draft, move, label, and delete mail through a locally running Proton Mail Bridge connection, so messages never leave your machine. Sending is off by default, deletions only move mail to Trash, and draft attachments are restricted to approved folders.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients like Claude, ChatGPT and Cursor to search, read, organize and send Proton Mail through Proton Mail Bridge, plus look up Proton Pass items and read Proton Calendar events. Supports built-in OAuth with per-connection scopes, so each app gets only read, organize/draft or send permissions.
      MIT