Skip to main content
Glama
ProtonMail MCP Server

ProtonMail MCP Server

by barhatch

ProtonMail MCP Server

CI npm version npm downloads License: MIT Node.js Version TypeScript MCP 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

Related MCP server: proton-bridge-mcp

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.1 not localhost to 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/BCC

  • send_test_email - Send test email

Email Reading

  • get_emails - Fetch emails with pagination/filtering

  • get_email_by_id - Get specific email

  • search_emails - Search with multiple criteria

Folder Management

  • get_folders - List folders with stats

  • sync_folders - Sync folder structure

  • create_folder - Create new folder

  • delete_folder - Delete folder (must be empty)

  • rename_folder - Rename folder

Email Actions

  • mark_email_read - Mark read/unread

  • star_email - Star/unstar

  • move_email - Move between folders

  • delete_email - Delete permanently

Analytics

  • get_email_stats - Email statistics

  • get_email_analytics - Analytics and insights

  • get_contacts - Contact interaction stats

  • get_volume_trends - Email volume over time

System

  • get_connection_status - Check SMTP/IMAP status

  • sync_emails - Manual sync

  • clear_cache - Clear cache

  • get_logs - Get logs

Troubleshooting

Connection refused ::1:1143

  • Use 127.0.0.1 instead of localhost

  • 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

Unofficial third-party server, not affiliated with Proton AG.

Available Tools

26 tools
add_labelA

๐Ÿท๏ธ Add a label to an email. Note: Labels are folders with 'Labels/' prefix. This moves the email to 'Labels/LabelName'. Create the label folder first if it doesn't exist.

Inputs: label (required), emailId (required).

bulk_add_labelA

๐Ÿท๏ธ Add a label to multiple emails. Note: Labels are folders with 'Labels/' prefix. This moves emails to 'Labels/LabelName'. Create the label folder first if it doesn't exist.

Inputs: label (required), emailIds (required).

bulk_delete_emailsC

๐Ÿ—‘๏ธ Delete multiple emails at once (efficient for batch deletion)

Inputs: emailIds (required).

bulk_move_emailsB

๐Ÿ“ฆ Move multiple emails to a folder at once (efficient for managing multiple emails)

Inputs: emailIds (required), targetFolder (required).

clear_cacheB

๐Ÿงน Clear email cache and analytics cache

Inputs: no named parameters.

create_folderB

๐Ÿ“ Create a new email folder. Use 'Folders/FolderName' for custom folders or 'Labels/LabelName' for labels

Inputs: folderName (required).

delete_emailB

๐Ÿ—‘๏ธ Delete email permanently

Inputs: emailId (required).

delete_folderB

๐Ÿ—‘๏ธ Delete an email folder or label (must be empty). Works with 'Folders/' or 'Labels/' prefixes

Inputs: folderName (required).

get_connection_statusA

๐Ÿ”Œ Check SMTP and IMAP connection status

Inputs: no named parameters.

get_contactsC

๐Ÿ‘ฅ Get contact information with interaction statistics

Inputs: limit.

get_email_analyticsC

๐Ÿ“ˆ Get advanced email analytics and insights

Inputs: no named parameters.

get_email_by_idA

๐Ÿ“ง Get a specific email by its ID (returns full email body and attachments)

Inputs: emailId (required).

get_emailsB

๐Ÿ“ฌ Get emails from a specific folder with pagination (returns truncated body preview, attachment metadata only)

Inputs: limit, folder, offset.

get_email_statsC

๐Ÿ“Š Get comprehensive email statistics

Inputs: no named parameters.

get_foldersA

๐Ÿ“ Get all email folders with statistics. Note: Labels appear as folders with 'Labels/' prefix (e.g., 'Labels/Work')

Inputs: no named parameters.

get_logsC

๐Ÿ“‹ Get recent system logs

Inputs: level, limit.

mark_email_readC

โœ… Mark email as read/unread

Inputs: emailId (required), isRead.

move_emailC

๐Ÿ“ฆ Move email to different folder (use folder path like 'INBOX', 'Trash', or 'Folders/MyFolder')

Inputs: emailId (required), targetFolder (required).

rename_folderB

โœ๏ธ Rename an email folder or label. Works with 'Folders/' or 'Labels/' prefixes

Inputs: newName (required), oldName (required).

search_emailsB

๐Ÿ” Search emails with advanced filters (returns truncated body preview, attachment metadata only)

Inputs: to, from, limit, query, +7 more.

send_emailC

๐Ÿš€ Send email with advanced options (templates, scheduling, attachments)

Inputs: to (required), body (required), subject (required), cc, +5 more.

send_test_emailA

๐Ÿงช Send a test email to verify SMTP functionality

Inputs: to (required), customMessage.

star_emailC

โญ Star/unstar email

Inputs: emailId (required), isStarred.

sync_emailsC

๐Ÿ”„ Manually sync emails from server

Inputs: full, folder.

sync_foldersC

๐Ÿ”„ Synchronize folder structure from server

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelogโ€ฆ

    TDQS

    B3.4/5.0

    Scored across 26 tools

    Disambiguation4/5

    Most tools target clearly distinct resources and actions (send, delete, move, label, folder management, sync, system diagnostics). The main overlap is among analytics tools: get_email_stats, get_email_analytics, and get_volume_trends all report email metrics, though their descriptions hint at different scopes.

    Naming Consistency5/5

    All tool names use snake_case and consistently lead with an action verb, with a clear bulk_ prefix for batch operations. Minor variations like mark_email_read and get_email_by_id still fit the overall verb_noun pattern.

    Tool Count4/5

    26 tools is slightly heavy but justified by the broad email-client surface covering messages, folders, labels, bulk operations, analytics, sync, and system diagnostics. A few analytics tools could potentially be consolidated, but overall the count is reasonable for the domain.

    Completeness5/5

    The surface covers the full email lifecycle: listing, reading, searching, sending, deleting, moving, starring, labeling, folder management, bulk operations, sync, diagnostics, and analytics. No obvious CRUD or workflow gap remains for a ProtonMail MCP server.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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.
      22 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to read, organize, and send Proton Mail through the local Proton Bridge, with careful gating for sending and attachment access.
      25
      2
      Apache 2.0
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to interact with a Proton Mail mailbox through Proton Bridge, supporting listing, searching, reading, sending, and organizing emails.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI clients to read, search, compose, organize, and act on emails, plus manage calendars, contacts, reminders, folders, rules, signatures, aliases, and account preferences through a local bridge.
      MIT