Borrowing it
Nothing to install: this file belongs to wildsurfer/your-mail-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/wildsurfer/your-mail-mcp/main/CLAUDE.mdgit clone --depth 1 https://github.com/wildsurfer/your-mail-mcpWrote 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.
[](https://agentmods.dev/instructions/wildsurfer/your-mail-mcp/claude-md)<a href="https://agentmods.dev/instructions/wildsurfer/your-mail-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/wildsurfer/your-mail-mcp/claude-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.
<a href="https://agentmods.dev/instructions/wildsurfer/your-mail-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/wildsurfer/your-mail-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01938 | $0.01938 |
| Opus 5 | $0.00969 | $0.00969 |
| Sonnet 5 | $0.00388 | $0.00388 |
| Haiku 4.5 | $0.00194 | $0.00194 |
Grade A, and why
your-mail-mcp CLAUDE.md scanned grade A with 0 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 5d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.
your-mail-mcp
A self-hosted MCP server that gives an MCP client read access to one or more IMAP accounts. Mail is mirrored to a local maildir by mbsync, indexed by notmuch, and served over streamable HTTP behind an in-process OAuth 2.0 authorization server.
This file is the briefing for anyone changing the code. README.md is for
operators running it. The reasoning behind the design is in
docs/specs/2026-08-19-your-mail-mcp-design.md, and what was verified
against real tools is in docs/reviews/.
Status
v1 is implemented: eleven read tools, multi-account sync, SPECIAL-USE junk discovery, OAuth with dynamic client registration, and a container image.
Running against one real iCloud account and two real Gmail accounts. That is one operator's mailbox, so see "Before trusting it" below for what is still unproven.
Invariants
These are the reasons this project exists in this shape. Do not weaken one without changing the spec first.
- Nothing in the process may write to a mail account. mbsync is configured
Sync Pull/Create Near/Remove None, withExpunge Noneby default andExpunge Near— which deletes local files only — for an account that opts intoexpunge_local. The file is generated by the program rather than mounted, so the directives cannot be edited into something that pushes. There is no send, delete, move or tag path against any account. The one local deletion in Go code is the account's own-recentbootstrap store, removed once the full mirror covers it. - The only IMAP operation in Go code is
LIST, used once per account to find the junk and trash folders. It never selects a mailbox and never fetches a message, and the client object does not escape the function that opens it. - Every byte of mail text reaching the model passes through
render().page()inmcp.gois the only place that constructs text content, andrenderneutralises the marker sentinel so mail cannot forge the untrusted-content wrapper. The one deliberate exception is image attachment parts: text cannot mark pixels, so theattachmenttool returns images as typed MCP content whose schema names them attacker-authored, capped at 5MB. Textual parts — text/*, JSON, XML, message/rfc822 — pass throughrender; every other binary is served only as a short-lived signed link toGET /attachment/{id}/{part}(or, with no listener, a file under the index fordocker cp) (bearer token also accepted): those bytes go to a shell or a browser, never into model context, so no cap and norenderapply there. - Junk and trash are excluded from search by default, discovered per account through RFC 6154 SPECIAL-USE so it works whatever the folders are named and in whatever language.
- Exactly two dependencies:
modelcontextprotocol/go-sdkandemersion/go-imap/v2. Everything else is the standard library, tests included.
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.
- 5d ago Changed · +4 lines · +65 tokens per session 31403150369c
- 9d ago First seen · 136 lines · 1,873 tokens per session scan A 66dbfa7cab10
your-mail-mcp CLAUDE.md is an instructions file published in the GitHub repository wildsurfer/your-mail-mcp (12 stars, last pushed 2d ago), licensed MIT. It adds 1,938 tokens to every session, about $0.0097 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
deepseek-harness AGENTS.md
AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.