Borrowing it
Nothing to install: this file belongs to klodr/gmail-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/klodr/gmail-mcp/main/AGENTS.mdgit clone --depth 1 https://github.com/klodr/gmail-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/klodr/gmail-mcp/agents-md)<a href="https://agentmods.dev/instructions/klodr/gmail-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/klodr/gmail-mcp/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.
<a href="https://agentmods.dev/instructions/klodr/gmail-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/klodr/gmail-mcp/agents-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.02973 | $0.02973 |
| Opus 5.5 | $0.01189 | $0.01189 |
| Sonnet 5.5 | $0.00595 | $0.00595 |
| Haiku 4.5 | $0.00297 | $0.00297 |
Grade A, and why
gmail-mcp AGENTS.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 — 253 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
This repository is gmail-mcp — a Model Context Protocol server that exposes the Gmail v1 API to AI assistants behind scope-gated tools (~33 tools across messages, threads, labels, filters, drafts, downloads, batch ops). It is a hardened + enhanced fork of GongRzhe/Gmail-MCP-Server (archived) via ArtyMcLabin/Gmail-MCP-Server, with 130+ commits of divergence — prompt-injection guards, OAuth scope-gating, batch retry, supply-chain hygiene, and CI gating.
This file is the canonical source of truth for any AI agent that edits the code in this repository. Read it before making changes. It encodes the conventions the maintainers actually enforce — not aspirations.
If you are an installation agent (i.e. helping a user install the MCP server in their client config rather than edit the server code), stop reading this file and read
llms-install.mdinstead. That file is for the install audience; this one is for code-editing agents.
Audience boundary
| Audience | Source of truth |
|---|---|
| Edits this repo's code | AGENTS.md (you are here) |
| Installs this MCP into a client config | llms-install.md |
| Threat model / security argument | docs/ASSURANCE_CASE.md |
| Disaster recovery / continuity | docs/CONTINUITY.md |
| Forward-looking work | docs/ROADMAP.md |
| Comparison vs upstream forks | docs/COMPETITORS.md |
| End-user features and install commands | README.md |
| Vulnerability reporting | .github/SECURITY.md |
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 · +14 lines · +249 tokens per session ca3d18dc8988
- 7d ago Changed ae31b0cbc00f
- 8d ago Changed · +2 lines · +26 tokens per session 9a6085f2dca6
- 1mo ago Changed · +1 lines · +10 tokens per session 3be28a2688ba
- 1mo ago First seen · 236 lines · 2,688 tokens per session scan A e938b7e4eb7e
gmail-mcp AGENTS.md is an instructions file published in the GitHub repository klodr/gmail-mcp (16 stars, last pushed yesterday), licensed MIT. It adds 2,973 tokens to every session, about $0.0119 per session on Opus 5.5. A static security scan graded it A with 0 findings. It comes from a forked repository.
Other instructions, from other repositories
data-scientist copilot-instructions.md
Repository instructions for a data-science workflow in GitHub Copilot, covering datasets, statistics, and analysis files.
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).
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.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
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.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).