Install
$ agentstack add mcp-barhatch-protonmail-mcp-server ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
ProtonMail MCP Server
[](https://github.com/barhatch/protonmail-mcp-server/actions/workflows/ci.yml) [](https://www.npmjs.com/package/protonmail-mcp-server) [](https://www.npmjs.com/package/protonmail-mcp-server) [](https://opensource.org/licenses/MIT) [](https://nodejs.org/) [](https://www.typescriptlang.org/) [](https://github.com/modelcontextprotocol/sdk)
Model Context Protocol server for ProtonMail with 23 tools for email management through Proton Bridge.
Features
- Email sending - Send emails with HTML/text, attachments, CC/BCC, custom headers
- Email reading - Fetch, search, and filter emails via IMAP
- Folder management - Create, delete, rename, list, and sync folders
- Email operations - Mark read/unread, star, move, delete
- Analytics - Email volume trends, contact statistics, response time analysis
- System tools - Connection status, cache management, logging
Quick Start
Prerequisites
- ProtonMail account
- Proton Bridge installed and running
- Node.js 18.0.0+
Installation
From npm:
npm install -g protonmail-mcp-server
From source:
git clone https://github.com/barhatch/protonmail-mcp-server.git
cd protonmail-mcp-server
npm install && npm run build
Configuration
Edit Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"protonmail": {
"command": "npx",
"args": ["-y", "protonmail-mcp-server"],
"env": {
"PROTONMAIL_USERNAME": "your-email@protonmail.com",
"PROTONMAIL_PASSWORD": "your-bridge-password",
"PROTONMAIL_SMTP_HOST": "127.0.0.1",
"PROTONMAIL_SMTP_PORT": "1025",
"PROTONMAIL_IMAP_HOST": "127.0.0.1",
"PROTONMAIL_IMAP_PORT": "1143"
}
}
}
}
Notes:
- Use
127.0.0.1notlocalhostto avoid IPv6 issues - Password is your Proton Bridge password, not your ProtonMail login
- Get Bridge password from Proton Bridge → Settings → Mailbox Password
Available Tools
Email Sending
send_email- Send email with HTML/text, attachments, CC/BCCsend_test_email- Send test email
Email Reading
get_emails- Fetch emails with pagination/filteringget_email_by_id- Get specific emailsearch_emails- Search with multiple criteria
Folder Management
get_folders- List folders with statssync_folders- Sync folder structurecreate_folder- Create new folderdelete_folder- Delete folder (must be empty)rename_folder- Rename folder
Email Actions
mark_email_read- Mark read/unreadstar_email- Star/unstarmove_email- Move between foldersdelete_email- Delete permanently
Analytics
get_email_stats- Email statisticsget_email_analytics- Analytics and insightsget_contacts- Contact interaction statsget_volume_trends- Email volume over time
System
get_connection_status- Check SMTP/IMAP statussync_emails- Manual syncclear_cache- Clear cacheget_logs- Get logs
Troubleshooting
Connection refused ::1:1143
- Use
127.0.0.1instead oflocalhost - Verify Proton Bridge is running:
lsof -i :1025 -i :1143
Authentication failed
- Use Proton Bridge password (not ProtonMail login)
- Get from Proton Bridge → Settings → Mailbox Password
Certificate errors
- Self-signed certs are automatically accepted for localhost
Development
npm run dev # Watch mode
npm run build # Build
npm run lint # Type check
License
MIT - See [LICENSE](LICENSE)
Links
Unofficial third-party server, not affiliated with Proton AG.
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: barhatch
- Source: barhatch/protonmail-mcp-server
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.