proton-mail-bridge-client is a local-first Proton Mail MCP server and CLI tool built on Proton Bridge, designed to let AI assistants (such as Claude Desktop, Claude Code, Cline, and other MCP clients) securely manage Proton Mail.
Purpose
This tool builds a layer on top of Proton Bridge (Proton's official local IMAP/SMTP gateway), enabling AI models to search, draft, send, and organize email while providing multiple safety controls to ensure users have full control over the AI's actions.
Key capabilities
- Email management: Supports searching, drafting, sending, archiving, moving, batch operations on threads, extracting attachments (including PDF text and images), replying to calendar invitations, and more.
- Safety modes: Can be set to read-only mode or drafts mode; in drafts mode, the AI can only read and create drafts and cannot send, move, or delete email. Send and delete operations can be set to require user approval through the client (assisted mode or require mandatory approval).
- Audit log: All change operations are recorded in a hash-chained audit log, which can detect tampering.
- Local-first: The server communicates only with Proton Bridge on local 127.0.0.1, and the search index, drafts, and audit log are stored in the local data directory. Email content is sent to the model provider (unless a local model is used).
- Multi-account support: Each Proton login or address is treated as an independent account with its own index, drafts, and settings.
- Local full-text search: Fast full-text search based on a local index, synchronized with the server's read state.
- Mail rules: Can scan email and propose filtering and cleanup suggestions, preview them before applying them to existing email, and support conditional forwarding.
- Auto-replies: Configure auto-reply rules per address, off by default, with support for preview, draft-pending-approval mode, and working-hours settings.
- Complete CLI: Dedicated commands for 129 MCP tools, supporting scripting and pipeline automation, plus a doctor command to check accounts and generate diagnostic reports.
- Deployment options: Supports Claude Desktop bundle, npm, Homebrew or Docker images (for headless machines).
Usage
- Prerequisites: Install and sign in to Proton Mail Bridge and keep it running; install Node.js 24 or later; obtain the Bridge password (not the Proton account password) and the IMAP/SMTP host and port from the Bridge app (default IMAP 127.0.0.1:1143, SMTP 127.0.0.1:1025).
- Installation: Can be installed globally via npm (
npm install -g proton-mail-bridge-client), or download the .mcpb bundle for macOS, Linux, or Windows. - Connect to Claude Desktop: Run the
proton-mail-bridge-client setup-claude-desktopwizard, which automatically checks the Bridge port, writes the configuration, and performs a read-only check. Manual configuration is also possible. - Connect to Claude Code: Use
claude mcp addCommand registration server, can be specified at project or user level. - Connect Cline: Add the server configuration in the MCP settings of the Cline extension in VS Code.
- Docker run: Use
docker run -icommunicates via stdio; you must ensure the container can access the Bridge's IMAP and SMTP ports. - Verify: Run
proton-mail-bridge-client doctoror ask Claude to run diagnostics.
Use cases
- Users who want to manage Proton email with an AI assistant but prioritize privacy and control.
- Scripts or scheduled tasks that need automated email processing (such as sorting, replying, and archiving).
- Unified management of email across multiple accounts.
- Scenarios with audit requirements for email operations.
Limitations
- Proton Bridge must be installed and running, and the Bridge password is required.
- The default installation is in draft mode; the send function requires explicitly enabling full mode.
- Email content is sent to the model provider (unless a local model is used); privacy depends on how the model is deployed.
- The approval feature depends on client support for MCP elicitation; require mode alone will fail closed.
- The Docker image has not undergone end-to-end testing; remote access requires wrapping the network transport yourself.
- The auto-reply feature may overlap with Proton's built-in auto-reply; choose according to your needs.
- Some features (such as auto-reply) are disabled by default and must be configured manually.