Grounded Docs is an MCP server that builds a local, version-aware index of documentation from websites, code repositories, package registries, local files, and archives for AI coding assistants. It helps assistants retrieve current project-specific documentation and supports MCP-compatible clients such as Claude, Cline, and similar tools. The catalogue add-ons provide skills, commands, and instructions for working with this documentation server.
Borrowing it
Nothing to install: this file belongs to arabold/docs-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.
curl -O https://raw.githubusercontent.com/arabold/docs-mcp-server/main/AGENTS.mdgit clone --depth 1 https://github.com/arabold/docs-mcp-serverWrote 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/arabold/docs-mcp-server/agents-md)<a href="https://agentmods.dev/instructions/arabold/docs-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/arabold/docs-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.
<a href="https://agentmods.dev/instructions/arabold/docs-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/arabold/docs-mcp-server/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.00740 | $0.00740 |
| Opus 5.5 | $0.00296 | $0.00296 |
| Sonnet 5.5 | $0.00148 | $0.00148 |
| Haiku 4.5 | $0.00074 | $0.00074 |
Grade A, and why
docs-mcp-server 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 10d 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 — 45 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent Instructions for docs-mcp-server
Read README.md for setup and configuration, and ARCHITECTURE.md before changing how services interact. For everything else, the code and the comments next to it are the reference.
Environment
- Use Node.js 22 (
nvm use 22), which CI runs, and do not raise the engine floor. Open databases only throughopenDatabase, which turns abetter-sqlite3binary that cannot load into one actionable error. - Use
npm cito getnode_modules. Usenpm installonly to change dependencies on purpose. - Run occasional tools such as
promptfoothroughnpx -y <pkg>@<version>in apackage.jsonscript instead of adding a dependency.
Checks
- Run
npm run lint,npm run typecheckandnpm testbefore you push. The Husky hooks only run Biome on staged files and commitlint on the message; never bypass them. tsconfig.jsonis incremental. Delete.tsbuildinfobefore a typecheck you rely on, or a warm cache can hide errors that CI catches.- Run one test file with
npx vitest run <path>.
Git
- Branches:
<type>/<issue>-<desc>, e.g.feat/123-add-cache. - Commits follow Conventional Commits, enforced by commitlint:
<type>(<scope>): <subject>, with the subject in lower case, no trailing period, and the header under 100 characters. - Never commit secrets or
.envfiles.
Code
- No
anyunless absolutely necessary, and no non-null assertions (!). Biome does not flag either. - Every exported function and class has TSDoc: a summary first, then params and returns.
- Catch errors at API and CLI boundaries. The API answers with standard HTTP status codes.
- Logging:
console.*for CLI results,logger.infofor state changes,logger.debugfor flow details. Prefix info, warning and error messages with an emoji (❌for errors); debug messages have none. Keep binary content out of error logs. - The web UI follows
src/web/client/CONVENTIONS.md.
Tests
- Test observable behavior, not internal state. Prefer E2E, then integration tests; write unit tests for complex logic only. Use
vi.mock()sparingly. src/foo.tsis tested insrc/foo.test.ts, unit and integration tests together. Do not add*.integration.test.tsor*.spec.tsfiles.- System-wide E2E suites live in
test/*-e2e.test.ts.test/README.mddescribes the mock server, the crawl harness and the worker helpers. - Each test checks one behavior. Unit tests take under 100 ms.
npm testskips the live and Docker suites: run them withnpm run test:liveandnpm run test:docker. After changing authentication or discovery, run the manual Clerk check (npm run test:auth:clerk -- --app <app_id>).- Reuse the fixtures in
test/fixtures/.
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.
- 10d ago Changed · -16 tokens per session 3335f7f7cd1a
- 21d ago Changed · +21 tokens per session 595c6284a7e1
- 1mo ago Changed · -109 lines · -2,903 tokens per session 917a080ca74b
- 1mo ago Changed · +9 lines · +988 tokens per session 57d13d708fba
- 2mo ago Changed · +5 lines · +264 tokens per session 35350552b038
- 2mo ago Changed · +1 lines · +102 tokens per session 7efab7d484e4
- 3mo ago First seen · 139 lines · 2,284 tokens per session scan A 4195936bd49f
docs-mcp-server AGENTS.md is an instructions file published in the GitHub repository arabold/docs-mcp-server (1,930 stars, last pushed 10d ago), licensed MIT. It adds 740 tokens to every session, about $0.0030 per session on Opus 5.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-30.
docs-mcp-server AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| docs-mcp-server AGENTS.mdarabold/docs-mcp-server | Instructions file | 1.9k | 10d ago | MIT | A | 740 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 9,887 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 144k | today | MIT | A | 7,230 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 5,685 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 150k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 3,303 | GitHub Copilot |
| deno copilot-instructions.mddenoland/deno | Instructions file | 109k | yesterday | MIT | A | 3,077 | GitHub Copilot |