Proton MCP
Provides read-only tools to list and search files in the Proton Drive sync folder by name, extension, modified date, or text content, and read text or PDF files.
Provides read-only tools to list mail folders, search messages by sender, recipient, subject, body text, dates, and unread status, and read message headers, text bodies, and text-like attachments via Proton Mail Bridge.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Proton MCPsearch my Proton Mail for unread emails from my accountant"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
proton-mcp
A local, read-only MCP server that lets an AI agent search and read your Proton Mail and Proton Drive.
Proton has no public API for either product, so this uses the two routes Proton itself supports for third-party access:
Source | How | Needs |
IMAP to Proton Mail Bridge on your own computer | Paid Proton plan; Bridge installed, running and signed in | |
Drive | The folder the Proton Drive desktop app keeps in sync | Proton Drive desktop app |
Both are optional; configure either or both. Your Proton password is never used.
Tools
Tool | Source | What it does |
| Folders and labels with message / unread counts | |
| Newest-first search by sender, recipient, subject, body text, dates, unread | |
| Headers, text body (paged) and attachment list of one message | |
| Text of a PDF / text / CSV / JSON / HTML attachment, in memory only | |
| Drive | Files and folders, optionally recursive |
| Drive | By name, extension, modified date, or text inside plain-text files |
| Drive | Text of a PDF or text file (paged) |
All tools are annotated read-only. Long documents are returned in windows (maxChars, offset).
Related MCP server: ProtonScope
Setup
Mail (Proton Mail Bridge)
Install Bridge, sign in, and open your account's Mailbox configuration.
Note the username and the Bridge-generated password (this is not your Proton password) and the IMAP port (default 1143).
Set
PROTON_BRIDGE_USERandPROTON_BRIDGE_PASSWORD. Bridge must be running whenever you use the mail tools.
Drive
Point --drive-dir (or PROTON_DRIVE_DIR) at the folder the Proton Drive app syncs. If you use online-only files, reading one makes the app download it first.
Register with your agent
npm install && npm run build{
"mcpServers": {
"proton": {
"command": "node",
"args": ["C:/Users/lucas/Documents/proton-mcp/dist/index.js", "--drive-dir", "C:/path/to/Proton Drive"],
"env": {
"PROTON_BRIDGE_USER": "you@proton.me",
"PROTON_BRIDGE_PASSWORD": "<password from Bridge>"
}
}
}
}Options: --bridge-host (loopback only), --bridge-port, PROTON_PDF_PASSWORD.
Privacy and safety
Read-only, enforced by tests. Mailboxes are opened with IMAP
EXAMINEand messages fetched withBODY.PEEK, so nothing is marked read. There is no SMTP code and no call that changes flags, moves or deletes messages. Nothing writes to disk (attachments are read in memory).test/proton.test.tsfails if any source file adds such a call.Local only. The Bridge host must be
127.0.0.1/localhost; anything else is refused at startup. Bridge uses a self-signed certificate, so verification is off, which is only acceptable because of that rule. No other network code exists.Drive confinement. Paths are relative to the sync folder;
.., absolute paths, hidden (.) entries and symlinks that leave the folder are refused.Credentials come from environment variables, not command-line flags (which show up in process lists). Nothing is logged.
Prompt injection. Emails and documents are written by third parties and may contain text aimed at your agent. Tool descriptions tell the model to treat content as data, but that is a mitigation, not a guarantee. This server can't send mail or change anything, which limits the damage.
The agent you connect decides what happens to the answers. With a cloud model, the mail and files it reads go to that provider.
Limits
Mail search uses Bridge's IMAP search, so it only covers what Bridge has synced; Proton's own encrypted-search features aren't available.
Mail bodies: plain text, falling back to flattened HTML. Only PDF and text-like attachments can be read.
Drive text search covers plain-text files up to 2 MB, not PDFs. PDFs have to be opened with
read_drive_file.Shared-with-me folders appear only if the desktop app syncs them.
Development
npm test
npm run typecheck
npm run dev -- --drive-dir <folder>Layout: src/mail/ (source interface + Bridge IMAP), src/drive/store.ts, src/extract.ts (PDF/text/HTML to text), src/server.ts (tools), src/index.ts (CLI).
The automated tests run the mail side against a fake IMAP source and the Drive side against a temporary folder. I have also run the server by hand against my own Proton Bridge and Proton Drive folder; that manual check is not part of the test suite.
Built with AI assistance
Most of the code, tests and documentation in this repository were written by an AI assistant (Claude Code, by Anthropic), working from my requirements and constraints: read-only access, local-only connections, and no way for the agent to change or send anything. I directed the design and ran and checked it against my own account. It is a small personal project tested on one person's mailbox, so treat it as unreviewed software: read the code before pointing it at mail you care about.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Your IMAP mailbox as an MCP server: read, search and (if you allow it) organize mail. Open source.
Read-only MCP server: let AI agents read your ORANO saved-video library, tasks, and memory.
Read-only MCP server exposing a user ORANO library to their own AI agent.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Related MCP Servers
- AlicenseAqualityDmaintenanceA read-only MCP server that connects to Proton Mail via Proton Bridge, enabling AI assistants to search, list, and read emails securely without leaving your machine.422 npm1MIT
- FlicenseNot gradedqualityBmaintenanceA lightweight MCP server providing AI agents a scoped, read-and-draft-only view into Proton Mail via Proton Bridge, with code-enforced restrictions preventing external access or sending.-
- AlicenseNot gradedqualityCmaintenanceProvides read-only access to Proton Mail via MCP, enabling AI agents to list accounts/folders, search messages, and read emails using Proton Mail Bridge's local IMAP server.MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that reads, searches, organizes, and deletes Proton Mail through the local Proton Mail Bridge, with read-only mode and sender authentication checks. It cannot send mail.66 npmMIT