Back to Browse

Proton Mail MCP Server

Developer ToolsUse Caution4.8MCP RegistryLocal
Free

Server data from the Official MCP Registry

Proton Mail MCP via Bridge (IMAP/SMTP) · 13 tools · dual transport stdio + HTTP.

About

Proton Mail MCP via Bridge (IMAP/SMTP) · 13 tools · dual transport stdio + HTTP.

Security Report

4.8
Use Caution4.8High Risk

Well-architected MCP server for Proton Mail with strong security practices including timing-safe token comparison, per-session HTTP transport, rate limiting, and origin allowlist. Code is well-tested with 39 tests, strict TypeScript, and comprehensive CI/CD. Permissions align appropriately with purpose (network access to Bridge, environment variables for credentials). Minor findings around logging practices and input validation do not materially impact security. Supply chain analysis found 4 known vulnerabilities in dependencies (0 critical, 3 high severity). Package verification found 1 issue.

3 files analyzed · 9 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

file_system

Check that this permission is expected for this type of plugin.

process_spawn

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Hostname or IP of the Proton Mail Bridge (default: 127.0.0.1 for local, or container hostname in compose).Optional

Environment variable: PROTON_BRIDGE_HOST

IMAP port exposed by Proton Mail Bridge (default: 1143).Optional

Environment variable: PROTON_IMAP_PORT

SMTP port exposed by Proton Mail Bridge (default: 1025).Optional

Environment variable: PROTON_SMTP_PORT

Bridge username (your Proton Mail address).Optional

Environment variable: PROTON_USERNAME

Bridge-generated app password (NOT your Proton account password).Required

Environment variable: PROTON_PASSWORD

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-alexendros-proton-mail-mcp": {
      "env": {
        "PROTON_PASSWORD": "your-proton-password-here",
        "PROTON_USERNAME": "your-proton-username-here",
        "PROTON_IMAP_PORT": "your-proton-imap-port-here",
        "PROTON_SMTP_PORT": "your-proton-smtp-port-here",
        "PROTON_BRIDGE_HOST": "your-proton-bridge-host-here"
      },
      "args": [
        "-y",
        "@alexendros/proton-mail-mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

Proton Suite Agent

CI Quality CodeQL Coverage License: AGPL-3.0 Node

MCP server multi-producto para Proton Suite: Mail (Bridge IMAP/SMTP), Pass (pass-cli), Drive (CLI oficial) y Calendar (CalDAV stub). Un agente puede operar el buzón, gestionar contraseñas, sincronizar archivos y clasificar correo — todo sin salir de tu máquina.

ModoDescripción
stdio (default)Sin exponer nada a la red. Ideal para agentes IA locales.
streamable HTTPBearer auth + origin allowlist. Para despliegue con Docker.

Quickstart

Prerrequisitos: Node ≥ 22, Proton Mail Bridge corriendo en local, pass + gpg para contraseñas.

1. Instalar y compilar

git clone https://github.com/Iniciativas-Alexendros/agent-protonsuite.git
cd agent-protonsuite
npm install && npm run build && npm run smoke

2. Configurar variables de entorno

export PROTON_BRIDGE_USER=you@proton.me
export PROTON_BRIDGE_PASS=your-bridge-password
export PROTON_MAIL_FROM=you@proton.me

3. Conectar tu cliente MCP

{
  "mcpServers": {
    "protonsuite": {
      "command": "npx",
      "args": ["-y", "@alexendros/protonsuite-agent", "protonsuite-mcp"],
      "env": {
        "MCP_TRANSPORT": "stdio",
        "PROTON_BRIDGE_USER": "you@proton.me",
        "PROTON_BRIDGE_PASS": "your-bridge-password",
        "PROTON_MAIL_FROM": "you@proton.me",
        "PROTON_BRIDGE_TLS_INSECURE": "true",
        "PROTON_PASS_ENABLED": "true",
      },
    },
  },
}

Seguridad: usa PROTON_PASS_BRIDGE_PATH=proton/bridge/password o el wrapper JIT en connectors/stdio-wrapper.sh.example para no dejar el bridge password en disco.

4. Organizar el buzón (dry-run)

AGENT_DRY_RUN=true npx -y @alexendros/protonsuite-agent organize

El agente analiza el inbox y presenta un plan de carpetas, etiquetas y alertas sin aplicar cambios. Desactiva AGENT_DRY_RUN para ejecutar.


Tools MCP

25 tools organizadas por producto. Todas aceptan response_format: "markdown" | "json".

ProductoToolsResumen
Mail14List, search, read, send, reply, forward, flag, move, delete, attachments
Pass4List, get (sin exponer valores), generate, health
Drive8Status, list, download, upload, share, audit, organize, format report
CalendarstubRegistradas pero {available: false} hasta CalDAV vía Bridge
Suite1Estado unificado de todos los productos

Ver tabla completa en docs/agent-quickstart.md.


Agente

GoalPipeline
setupVerifica Bridge (IMAP + SMTP), envía email de prueba
organizeClasifica inbox, propone carpetas/etiquetas, detecta amenazas
monitorSolo lectura — presenta alertas sin modificar
alertInspecciona amenazas de seguridad
pass-auditFortaleza de contraseñas, duplicados, rotación
suite-statusReporte unificado cross-producto
discover / check-imapVerificación rápida de conectividad

Drive CLI

# Instalar (opcional)
sudo wget -q 'https://proton.me/download/drive/cli/linux/proton-drive' \
  -O /usr/local/bin/proton-drive && sudo chmod +x /usr/local/bin/proton-drive
proton-drive auth login

Requiere DRIVE_ENABLED=true (default). Ver docs/drive-audit.md para configuración completa.


Despliegue

Docker

docker compose up -d

Ver docs/deployment-http-docker.md para auth, allowlist y healthcheck.

Instalador Ubuntu

bash scripts/install.sh

Ver scripts/install.sh para la instalación interactiva completa.


Documentación

DocumentoPara quiénQué cubre
docs/human-quickstart.mdUsuarios no técnicosInstalación paso a paso, Bridge, Pass, primer uso
docs/agent-quickstart.mdAgentes IATools, formatos de respuesta, ejemplos
docs/bridge-core.mdTodosBridge headless, puertos, vault, troubleshooting
docs/deployment-http-docker.mdDevOpsDocker, auth, allowlist, healthcheck
docs/local-stdio-secrets.mdOperadoresWrapper stdio sin secretos en disco
docs/alerting.mdOperadoresAlertas de contenido, webhook, logs
docs/knowledge-base.mdTodosClasificación profesional y categorías
docs/drive-audit.mdOperadoresDrive CLI, persistencia token, auditoría
ARCHITECTURE.mdDesarrolladoresCapas internas, modelo de amenazas
SECURITY.mdAuditoresControles activos y threat model
CONTRIBUTING.mdContribuidoresConvenciones, PRs, tests

Conectores

ArchivoUso
connectors/stdio-npx.jsonConfig stdio genérica para cualquier cliente MCP
connectors/stdio-wrapper.sh.exampleWrapper seguro con resolución JIT de secretos
connectors/http-curl.sh.exampleHandshake HTTP con curl

Playbooks

playbooks/ — workflows predefinidos: onboarding, organize inbox, triage, fraud detection, pass audit, daily briefing, setup checklist.


Calidad

npm run typecheck   # TypeScript strict
npm test            # 745 tests (Vitest)
npm run coverage    # Coverage (v8 — 98.05% statements)
npm run build       # Compilación
npm run smoke       # Verificación stdio
npm run knip        # Unused deps/exports

Seguridad

  • Bearer timing-safe, origin allowlist, rate-limit 120/min/token.
  • Per-session HTTP transport, sesiones idle evicted a los 30 min.
  • Sin credenciales ni cuerpos de request en logs.
  • Pass nunca expone valores de secreto — solo {found: true}.
  • Dry-run por defecto en el agente.

Próximo módulo objetivo (branches <95%) — agrupado por dominio:

  • Agent: agent/organizer.ts (74.20%), agent/executor.ts (87.20%)
  • MCP surface: server/drive.ts (88.00%), server/mail.ts (89.60%)
  • Ecosystem: ecosystem/discovery.ts (86.80%)

Progreso de cobertura

FechaStatementsBranchesTestsArchivosHitos
Jul 2026 (Branch hunt)98.07%93.63%86443diagnostics.ts 84%→96%, addresses.ts 90%→100%, pass.ts 87%→95% — Branch hunt top-3 cerrado
Jul 2026 (Ronda 3b)93.72%74542server/drive.ts 89%→99%, http.ts +10 tests CORS/auth
Jul 2026 (Ronda 2)92.68%69241server.ts 73%→96%, smtp.ts 79%→98%, alerts/index.ts 76%→98%
Jul 2026 (post-merge)90.65%86.46%61938Repo renombrado, PRs #65 y #66 fusionados
Jul 2026 (previo)90.67%64042server/agent 64%→100%, organizer 68%→98%, http 69%→81%, rules 71%→100%
Jun 2026 (base)61.7%25821Reporte inicial

Conteo de tests canónico: npx vitest run 2>&1 | grep -E 'Test Files|Tests'. Los modos vitest run --coverage y vitest list pueden diferir ligeramente por su modelo de carga (transform/collect timing).

Licencia

AGPL-3.0 — Copyright 2026 Alejandro Domingo Agustí (Alexendros). Sin afiliación a Proton AG.

Ver NOTICE.md para dependencias y compatibilidad de licencias.

Reviews

No reviews yet

Be the first to review this server!