Proton MCP Server
Provides email management tools for Proton Mail via Proton Mail Bridge, including listing folders, searching and reading emails, sending and replying to emails, and moving or deleting messages.
Provides email management tools for Proton Mail via Proton Mail Bridge, including listing folders, searching and reading emails, sending and replying to emails, and moving or deleting messages.
Click on "Install 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 MCP Servershow my unread emails from today"
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 Server
A complete TypeScript Model Context Protocol (MCP) server for Proton Mail integration via Proton Mail Bridge.
What This Does
This MCP server provides full email management capabilities through Claude Code by connecting to Proton Mail Bridge running locally. It allows you to:
List and browse mailbox folders
List, search, and read emails
Send new emails and replies
Move and delete emails
Access full message content with attachments
Related MCP server: Proton MCP Server
Prerequisites
Proton Mail Bridge running and accessible on localhost:
IMAP server on port 1143 (STARTTLS)
SMTP server on port 1025 (STARTTLS)
Node.js 18 or higher
A valid Proton Mail account with Bridge credentials
Setup
1. Install Dependencies
npm install2. Configure Environment
Copy the environment template and add your Proton credentials:
cp .env.example .envEdit .env with your settings:
PROTON_IMAP_HOST=127.0.0.1
PROTON_IMAP_PORT=1143
PROTON_SMTP_HOST=127.0.0.1
PROTON_SMTP_PORT=1025
PROTON_USER=your-proton-email@protonmail.com
PROTON_PASS=your-bridge-password3. Build
npm run build4. Run Locally (Development)
npm run devOr run the compiled version:
npm startUsage with Claude Code
Add this MCP server to your Claude settings (~/.claude/settings.json):
{
"mcpServers": {
"proton": {
"command": "node",
"args": ["/path/to/proton-mcp-server/dist/index.js"],
"env": {
"PROTON_USER": "your-email@protonmail.com",
"PROTON_PASS": "your-bridge-password",
"PROTON_IMAP_HOST": "127.0.0.1",
"PROTON_IMAP_PORT": "1143",
"PROTON_SMTP_HOST": "127.0.0.1",
"PROTON_SMTP_PORT": "1025"
}
}
}
}Or with TypeScript/tsx:
{
"mcpServers": {
"proton": {
"command": "npx",
"args": ["tsx", "/path/to/proton-mcp-server/src/index.ts"]
}
}
}Available Tools
Reading Tools (Read-Only)
proton_list_folders — List all mailbox folders with message and unread counts
proton_list_emails — List emails in a folder with pagination (newest first)
proton_search_emails — Advanced search with filters (from, to, subject, date range, body content, unread status)
proton_read_email — Read the complete email content including headers, body, and attachment list
Writing Tools
proton_send_email — Send a new email (plain text or HTML)
proton_reply_email — Reply to an email with proper threading headers
proton_move_email — Move email to another folder
proton_delete_email — Delete email (move to Trash)
Project Structure
proton-mcp-server/
├── src/
│ ├── index.ts # Main entry point
│ ├── constants.ts # Configuration constants
│ ├── types.ts # TypeScript interfaces
│ ├── schemas/
│ │ └── index.ts # Zod input schemas
│ ├── services/
│ │ ├── imap.ts # IMAP client wrapper
│ │ └── smtp.ts # SMTP client wrapper
│ └── tools/
│ ├── folders.ts # proton_list_folders
│ ├── list.ts # proton_list_emails
│ ├── search.ts # proton_search_emails
│ ├── read.ts # proton_read_email
│ ├── send.ts # proton_send_email
│ ├── reply.ts # proton_reply_email
│ ├── move.ts # proton_move_email
│ └── delete.ts # proton_delete_email
├── package.json
├── tsconfig.json
├── .env.example
├── .gitignore
└── README.md (this file)Implementation Notes
IMAP Connection
Uses
imapflowlibrary with STARTTLS on port 1143Proton Bridge uses self-signed certificates, so
tls.rejectUnauthorized: falseAll connections are properly closed with
logout()in finally blocks
SMTP Connection
Uses
nodemailerwith STARTTLS on port 1025Supports plain text and HTML email bodies
Properly sets
In-Reply-ToandReferencesheaders for email threading
Message Parsing
Uses
mailparserto extract full message contentSupports text, HTML, and attachment handling
Returns attachment metadata (filename, content type, size)
Pagination
Email list pagination uses offset and limit parameters
Results are always newest first
Search results also support pagination
Troubleshooting
Connection Issues
Ensure Proton Mail Bridge is running:
protonmail-bridge --cliCheck localhost connectivity:
telnet 127.0.0.1 1143(IMAP) and1025(SMTP)Verify credentials in
.envfile
Email Issues
Some email clients may not recognize replies without proper Message-ID headers
HTML emails are parsed to text; use the raw HTML body for better formatting
Large attachments may take time to process
Build Issues
Ensure Node.js 18+ is installed:
node --versionClear node_modules and reinstall:
npm clean-installCheck TypeScript compilation:
npm run build
Dependencies
@modelcontextprotocol/sdk— MCP protocol implementationimapflow— IMAP client for email readingnodemailer— SMTP client for sending emailsmailparser— Email parsing and content extractionzod— Input validation schemasdotenv— Environment variable loading
License
MIT
Support
For issues with Proton Mail Bridge, see: https://proton.me/support/bridge
For MCP protocol documentation, see: https://modelcontextprotocol.io
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityFmaintenanceEnables comprehensive ProtonMail management through SMTP and IMAP, supporting email sending/reading, folder operations, analytics, and contact tracking with advanced search and automation capabilities.Last updated39
- FlicenseAqualityDmaintenanceEnables full Proton Mail management through the Model Context Protocol by connecting to a local Proton Mail Bridge instance. It allows users to list, search, read, send, and organize emails using natural language commands.Last updated8
- Alicense-qualityCmaintenanceEnables AI clients to interact with ProtonMail accounts through the Proton Bridge using SMTP and IMAP protocols. Provides email management capabilities via secure local bridge connections.Last updated14MIT
- AlicenseAqualityBmaintenanceEnables AI agents to send, read, search, and organize emails via ProtonMail using Proton Bridge. Supports MCP-compatible clients like Claude and Cursor.Last updated17273MIT
Related MCP Connectors
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…
Email for AI agents — send, receive as a webhook, manage domains, templates, routing.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/SpasticPalate/proton-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server