SuperAPIAI Directory

proton-mail-mcp

github.com · AI developer platforms

proton-mail-mcp is an unofficial MCP server for connecting to Proton Mail Bridge, enabling AI assistants to search and read mail, compose drafts, and perform protected mailbox cleanup operations. It runs on the user's own computer, listens only on 127.0.0.1, and ensures mail changes are safe through preview and confirmation mechanisms. It supports operations such as searching, reading, saving attachments, creating drafts, moving/archiving/deleting mail, and adding labels; the send feature is disabled by default and must be explicitly enabled. This project is not affiliated with Proton AG.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

proton-mail-mcp is an unofficial MCP (Model Context Protocol) server designed to enable AI assistants to interact with Proton Mail. It runs on the user's own computer, uses the same login credentials as Proton Mail Bridge, and listens only on the local loopback address 127.0.0.1. This project is not affiliated with Proton AG and is not endorsed by it.

Main purpose

The main purpose of this tool is to enable AI assistants to securely access and manage Proton Mail mailboxes. It provides the ability to search and read mail, compose drafts, and perform protected cleanup operations. All operations are designed to execute only after explicit user approval, to protect mail security.

Main capabilities

  • Search and read: Can search and count mail, read full mail threads, and read or save attachments. Read operations do not mark mail as read.
  • Compose drafts: Can create new drafts, replies, and forwards. Drafts remain unsent until the user sends them.
  • Cleanup operations: Can move, archive, delete mail, mark as read or unread, add or remove labels, unsubscribe, delete drafts, and create folders. Each operation requires user preview and approval. Folder rules (beta) can be used after being enabled.
  • Send mail (optional): The send feature is disabled by default. When enabled, sending must be based on a saved draft and requires user approval. There is no free-form send path.
  • Display mail in chat: Clients that support MCP Apps can get thread views, a composer, and a send review interface. Other clients receive the same results as text.
  • Local index: Maintains a private local index containing only mail headers to speed up search. The index does not contain mail bodies.

Usage

Installation and setup

  1. Ensure prerequisites are met: a paid Proton plan is required (a Bridge requirement), Linux (Debian/Ubuntu, Fedora/RHEL, or Arch) or macOS (Homebrew required unless Bridge is already installed), and uv (which can provide Python 3.12 or later). Native Windows support is newer; it is recommended to read docs/windows.md first or use WSL2.
  2. Quit Proton Mail Bridge app, and disable its launch at startup. The setup process runs Bridge as a background service.
  3. Run the guided setup in a terminal, specifying the MCP client name. Setup checks for or installs Bridge, stores the Bridge password and a new bearer token in the system credential store, starts the per-user service, checks whether the server can read the inbox, and adds the server to the client while backing up the client configuration.
  4. The user must manually complete: log in to Bridge (if not already logged in) and enter the Bridge password (not the Proton password) at a hidden prompt. On macOS, allow keychain access.
  5. Restart the client, then ask the assistant which Proton Mail tools are available; you should see tools such as search_mail.

Configuration

  • Set PROTON_MCP_ENABLE_SEND=1 to enable the send tools; you also need to set PROTON_MCP_SEND_FROM(sending address) and PROTON_BRIDGE_CERT(Bridge certificate).
  • PROTON_MCP_SEND_TYPED_OK=0 Can disable the send path that sends upon entering OK in chat.
  • PROTON_MCP_CONFIRM_MUTATIONS=0 Can allow changes authorized by token alone (not recommended).
  • PROTON_MCP_PROTECTED_CONFIG Can specify a protected senders list; cleanup, unsubscribe, draft deletion, and rules will not touch emails from these senders.

Security Mechanisms

  • Read operations are read-only and do not change email state.
  • Email changes require two steps: preview and confirm. The preview shows the number of changes, samples, and targets, and generates a one-time, short-lived token bound to specific emails. On confirmation, the MCP client displays a form for the user to accept or reject. A token alone is not sufficient to perform changes.
  • Permanent deletion only affects emails already approved in drafts; removing a label only removes that label's copy. There are no tools to empty the trash or delete/rename mailboxes.
  • All write operations are recorded in an append-only audit log that does not contain email bodies, subjects, full addresses, or tokens.
  • The send path is: create_draft → preview_send → send_draft; any edits after preview are rejected.

Use Cases

Suitable for users who want to manage their Proton Mail mailbox with an AI assistant, such as quickly searching emails, reading threads, writing drafts, organizing the mailbox, etc. Especially suitable for scenarios that prioritize privacy and security and want all changes to go through explicit approval.

Limitations

  • Requires a paid Proton plan.
  • Only supports Linux and macOS; native Windows support is limited.
  • The send feature is disabled by default and requires additional configuration.
  • The security of the confirmation form depends on the client; clients that automatically answer forms will defeat this check.
  • On clients without forms, sending relies on the assistant reporting that the user entered OK, and the server cannot verify whether it was actually entered by a human.
  • The protected senders list does not exist by default and must be configured by the user.
  • This project is unofficial and is not affiliated with Proton AG.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools