proton-mcp-server: Instructions file for Codex

AGENTS.md

proton-mcp-server AGENTS.md is an instructions file for Codex, OpenCode from QinZinn/proton-mcp-server. It costs 1,685 tokens per session, scanned D, original, MIT.

Setup instructions for connecting AI agents to Proton Mail through Proton Mail Bridge, a desktop service that provides local mail access. The server is read-only and can list, search, and open messages from multiple configured Proton accounts.

In plain words
What is it for?
Setting up and configuring the proton-mcp-server, then listing accounts, folders, and messages or searching and reading Proton Mail.
Why use it?
They provide prerequisites, installation steps, account configuration, and checks needed before an agent can read the mail.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md; mentions OpenCode.

This is QinZinn/proton-mcp-server's own configuration. It tells Codex and OpenCode how to work on proton-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything proton-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to QinZinn/proton-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/QinZinn/proton-mcp-server/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/QinZinn/proton-mcp-server

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for proton-mcp-server AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/qinzinn/proton-mcp-server/agents-md/github.svg)](https://agentmods.dev/instructions/qinzinn/proton-mcp-server/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/qinzinn/proton-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/qinzinn/proton-mcp-server/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for proton-mcp-server AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/qinzinn/proton-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/qinzinn/proton-mcp-server/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,685 This file is loaded in full into every session.
When invoked 1,685 The same file — it is already loaded in full.
Security scan D 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01685 $0.01685
Opus 5.5 $0.00674 $0.00674
Sonnet 5.5 $0.00337 $0.00337
Haiku 4.5 $0.00169 $0.00169

Measured 2mo ago against content hash 67103a8be172, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade D, and why

proton-mcp-server AGENTS.md scanned grade D with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

passwords): `chmod 600 "$HOME/.config/proton-mcp/config.toml"`.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

`curl -LsSf https://astral.sh/uv/install.sh | sh` (Linux/macOS) — confirm

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`curl -LsSf https://astral.sh/uv/install.sh | sh` (Linux/macOS) — confirm
AGENTS.md · 145 lines

How it starts

The opening of the file, as written. The whole thing — 145 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md — Setup guide for AI agents

This file is a runbook an AI agent (e.g. Hermes / opencode / Claude Code) can follow to install and configure the proton-mcp-server MCP server for a user. Execute the steps in order, verify at each checkpoint, and surface the final result to the user.

What this server does

Exposes a user's Proton Mail (read-only) to MCP-capable agents over the stdio transport, reading mail from the local Proton Mail Bridge IMAP server. Supports multiple Proton accounts, selected by name on each tool call. Read-only: list_accounts, list_folders, list_messages, search_messages, get_message.

Prerequisites (verify before starting)

  1. Proton Mail Bridge is installed and running.
    • Check: a TCP listener on 127.0.0.1:1143 (IMAP).
    • Linux: ss -tlnp 2>/dev/null | grep -E '1143|1025'
    • macOS: lsof -iTCP:1143 -sTCP:LISTEN
    • If not running, tell the user to open the Bridge GUI and sign in. IMAP/SMTP must be enabled in Bridge settings.
  2. Bridge credentials available. For each Proton account the user wants to connect, you need the bridge-generated password (shown in the Bridge GUI per account) — not the user's Proton login password — and the Proton address as the username. Security is STARTTLS on 127.0.0.1:1143.
  3. Python 3.11+. Check: python3 --version.
  4. uv (recommended installer). Check: uv --version. If missing, install: curl -LsSf https://astral.sh/uv/install.sh | sh (Linux/macOS) — confirm with the user before running an install script.

Install steps

git clone https://github.com/QinZinn/proton-mcp-server.git
cd proton-mcp-server
uv sync            # creates .venv and installs dependencies

The server binary is .venv/bin/proton-mcp-server (or uv run proton-mcp-server).

Configure accounts

Create the config at the default path (or a path you choose):

mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/proton-mcp"

Then write $XDG_CONFIG_HOME/proton-mcp/config.toml (default ~/.config/proton-mcp/config.toml) — one [[accounts]] table per account:

Read the full file on GitHub · 145 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 145 lines · 1,685 tokens per session scan D 67103a8be172

Subscribe to this mod's changes

proton-mcp-server AGENTS.md is an instructions file published in the GitHub repository QinZinn/proton-mcp-server (0 stars, last pushed 3mo ago), licensed MIT. It adds 1,685 tokens to every session, about $0.0067 per session on Opus 5.5. A static security scan graded it D with 3 findings (asks for root, downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

proton-mcp-server AGENTS.md compared with instructions from other repositories

proton-mcp-server AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
proton-mcp-server AGENTS.mdQinZinn/proton-mcp-serverInstructions file03mo agoMITD1,685Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot