Mailpouch logo

Mailpouch

Local MCP access to Proton Mail and IMAP through permission-gated, audit-logged tools and Proton Bridge.

Install Mailpouch

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mailpouch": {
      "command": "npx",
      "args": [
        "-y",
        "mailpouch-settings"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio mailpouch -- npx -y mailpouch-settings

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

The install command didn't complete successfully in our automated test.

npx -y mailpouch-settings

error 404 'mailpouch-settings@*' is not in this registry. npm error 404 npm error 404 Note that you can also install from a npm error 404 tarball, folder, http url, or git url. npm notice npm notice New major version of npm available! 10.9.9 -> 12.2.3 npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.2.3 npm notice To update run: npm install -g npm@12.2.3 npm notice npm error A complete log of this run can be found in: /home/user/.npm/_logs/2026-12-03T06_57_29_205Z-debug-0.log

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

mailpouch connects AI assistants to Proton Mail through a locally running Proton Bridge instance, with plain IMAP also supported. It exposes tools for reading, composing, sending, organizing, searching, and analyzing mail, plus optional SimpleLogin aliases and Proton Pass capabilities. Local stdio is the default transport, while HTTP supports OAuth-based remote or self-hosted deployments. Reach for it when email must remain on the user's machine and agent actions need per-client permissions, confirmations, rate limits, and audit logging.

Use cases

  • Read and search a Proton Mail inbox from a local AI assistant
  • Draft and send email with explicit permission controls
  • Restrict agent access to selected folders and tools
  • Request human approval before destructive mail operations
  • Index local mail for phrase, Boolean, and ranked search

Key features

  • Proton Bridge and plain IMAP connectivity
  • stdio and OAuth-protected HTTP transports
  • Per-client permissions, rate limits, expiry, and audit logs
  • Local FTS5 search with BM25 ranking
  • Human confirmation for destructive and sensitive actions
  • Optional SimpleLogin and Proton Pass tool groups

Tools10

What Mailpouch lets your agent do. Expand a tool for its parameters.

Self-reported~40 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · mailpouch-settings (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars17Stargazers on the source repository.
Last commit3d agoMost recent push to the default branch.
Install checkInconclusiveInstall command did not finish in our automated test.
Tools exposed10Callable tools this server registers over MCP.

How Mailpouch works

What mailpouch does

mailpouch gives MCP clients a structured interface to private email accounts through Proton Bridge's local IMAP and SMTP services, with plain IMAP supported as well. It is designed for local, user-controlled access rather than a hosted OAuth connector. Email is decrypted by Proton Bridge on the same machine, while mailpouch applies permission checks before exposing or executing operations.

The tool surface covers reading messages, composing and sending mail, drafts, folders, search, analytics, and system control. Optional groups for SimpleLogin aliases and Proton Pass appear only when those capabilities are configured. Up to 83 canonical tools and three always-available meta-tools are available, with progressive tool tiers limiting which tools appear in MCP tool discovery.

How it works

The default transport is stdio, suitable for desktop MCP clients. An HTTP transport is also available for remote or self-hosted use. HTTP access uses OAuth 2.1 with PKCE for interactive clients and the OAuth client-credentials grant for headless agents. Dynamic client registration, protected-resource metadata, and resource indicators support the authorization flow.

Each connecting client receives a separate identity and grant. Permissions can restrict folders, bind access to an account or IP, cap tool rates, and expire automatically. The default preset is read-only; write operations require explicit opt-in. Agents can request higher privileges, but approval happens through the settings interface or terminal rather than through the agent itself.

Sensitive operations, including deletion, trash and spam moves, alias removal, and selected Proton Pass retrieval, require confirmation. Clients with MCP elicitation support receive an out-of-band prompt; other clients must provide a confirmed argument. Audit entries record hashed arguments instead of message or credential values.

Setup and configuration

Install and run Proton Bridge, sign in, then add mailpouch to an MCP client with a command such as:

config.json
{
  "mcpServers": {
    "mailpouch": {
      "command": "npx",
      "args": ["-y", "mailpouch"]
    }
  }
}

Configure the Bridge IMAP/SMTP username and password with npx -y mailpouch-settings, or use npx -y mailpouch setup --username you@proton.me --password-stdin. The password must be the Bridge password, not the Proton account login password. Credentials are stored in the operating system keychain, with configuration written to ~/.mailpouch.json.

Run npx -y mailpouch doctor to check readiness. On first connection, approve the client in the local settings UI at http://localhost:8766/#/agents. The UI also provides setup, connection testing, per-tool controls, escalation approval, and agent approval. Node.js 22 or newer is required.

Tools and capabilities

  • Read, compose, send, and manage Proton Mail or IMAP messages.
  • Create and manage drafts, folders, trash, and spam operations subject to permissions.
  • Search locally with an FTS5 index supporting phrases, Boolean operators, prefixes, column filters, and BM25 ranking.
  • Inspect mail analytics and use system-control tools.
  • Configure optional SimpleLogin alias and Proton Pass tool groups.
  • Dispatch signed webhooks with CloudEvents, Slack, or Discord formats and retry delivery.
  • Send desktop notifications through native macOS, Linux, or Windows commands.

The local search database uses ~/.mailpouch-fts.db as a base or legacy path, with account-specific indexes stored below derived private locations. Scheduled outbound messages persist in ~/.mailpouch-scheduled.json; other message content is normally held in memory and cleared on restart.

Limitations and notes

mailpouch is an unofficial third-party connection to Proton Bridge and is not affiliated with Proton AG. Proton's terms address automated access, so operators remain responsible for deciding whether their use complies with those terms. The project is designed around user-initiated operation, including a first-run terms acknowledgement and human approval for elevated access.

The HTTP transport is OAuth-only. Destructive actions depend on client confirmation support or the fallback confirmation argument. Local databases and scheduled-message files can contain sensitive information and should be protected or removed when appropriate.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Mailpouch

mailpouch is an MCP server that connects AI assistants to Proton Mail through a local Proton Bridge instance, with plain IMAP support. Its main tools read, search, compose, send, organize, and analyze email, while permission controls, confirmations, and audit logging govern agent access.

Install Proton Bridge, sign in, and add mailpouch with `npx -y mailpouch` as the MCP command. Configure Bridge credentials with `npx -y mailpouch-settings` or the setup command, then run `npx -y mailpouch doctor` and approve the client in the local settings UI.

Yes, mailpouch works with Claude Desktop over its default stdio transport. Add the server using the `npx -y mailpouch` command, configure Proton Bridge credentials, and approve Claude Desktop on the agents page before using the mail tools.

Sending requires explicit write permission and remains subject to the configured permission preset. The default is read-only, and elevated access needs human approval through the settings UI or terminal; mailpouch also supports scheduled outbound messages that persist locally.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMailpouch AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mailpouch?style=directory)](https://allmcps.com/mcp/mailpouch)
HTML Embed
<a href="https://allmcps.com/mcp/mailpouch"><img src="https://allmcps.com/api/badge/mailpouch?style=directory" alt="Mailpouch on AllMCPs" /></a>