Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add mike-anderson/doc-index-mcp --skill doc-searchgit clone --depth 1 https://github.com/mike-anderson/doc-index-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/skills/mike-anderson/doc-index-mcp/doc-search)<a href="https://agentmods.dev/skills/mike-anderson/doc-index-mcp/doc-search"><img src="https://agentmods.dev/badge/skills/mike-anderson/doc-index-mcp/doc-search/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/skills/mike-anderson/doc-index-mcp/doc-search"><img src="https://agentmods.dev/badge/skills/mike-anderson/doc-index-mcp/doc-search.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.00045 | $0.00577 |
| Opus 5.5 | $0.00018 | $0.00231 |
| Sonnet 5.5 | $0.00009 | $0.00115 |
| Haiku 4.5 | $0.00005 | $0.00058 |
Grade A, and why
doc-search 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 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.
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 — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Doc Index MCP — Usage Guide
Key Concept: Boundaries
Documents are chunked (~256 tokens) and embedded. The server also detects boundaries — structural markers (chapters, sections, subsections, pages) forming a hierarchy. Each chunk belongs to a boundary. Siblings are boundaries sharing the same parent.
Search Patterns
Basic search — returns chunk fragments:
doc_search(query="authentication flow")
Full section around a match — use expand_to_boundary:
doc_search(query="error handling", expand_to_boundary="section", top_k=2, max_return_tokens=8192)
Full chapter — lower top_k, raise budget:
doc_search(query="data pipeline", expand_to_boundary="chapter", top_k=1, max_return_tokens=16384)
Sibling sections — see all peers under same parent:
doc_search(query="auth", expand_to_boundary="section", include_siblings=true, max_return_tokens=16384)
Structure-first retrieval
When you already know roughly where the answer lives, skip search entirely. Read the outline, then fetch that part directly — cheaper and more complete than guessing at a query:
doc_toc(source_name="manual", max_depth=2)
doc_get_content(source_name="manual", chapter="3", max_return_tokens=8192)
doc_get_content takes exactly one locator: boundary_id, chapter, section, or pages.
When to Use What
| Need | Approach |
|---|---|
| Quick fact | Default search, top_k=3 |
| Full context around match | expand_to_boundary="section" |
| Whole topic area | expand_to_boundary="chapter", top_k=1 |
| What else is in same chapter | include_siblings=true + expansion |
| Exact phrase | Just search — exact matches auto-boost |
| Know the structure already | doc_toc then doc_get_content |
| Specific table data | list_tables then extract_table |
| One-off read, no reuse | read_document (skips indexing) |
Critical: Token Budget
- Default 4096 = ~16 chunks, but only 1-2 sections
- With section expansion: use 8192+
- With chapter expansion: use 16384+
- With siblings: use 16384+
- Lower
top_kwhen expanding (1-3)
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.
- 2mo ago First seen · 64 lines · 45 tokens per session scan A b8816b9176ca
doc-search is a skill published in the GitHub repository mike-anderson/doc-index-mcp (1 stars, last pushed 8d ago), licensed MIT. It adds 45 tokens to every session and 577 once invoked, about $0.0002 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-31.
doc-search compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| doc-searchmike-anderson/doc-index-mcp | Skill | 1 | 8d ago | MIT | A | 45 | Claude Code, Codex |
| doc-readerHKUDS/Vibe-Trading | Skill | 38k | today | MIT | A | 65 | Claude Code, Codex |
| surfsense-documentsMODSetter/SurfSense | Skill | 17k | today | Apache-2.0 | A | 80 | Claude Code, Codex |
| xberg-extracting-tablesxberg-io/xberg | Skill | 9.6k | today | MIT | A | 36 | Claude Code |
| skill-doc-deliverynyldn/claude-octopus | Skill | 4.4k | today | MIT | A | 29 | Claude Code |
| report-generatorforyourhealth111-pixel/Vibe-Skills | Skill | 3.8k | today | Apache-2.0 | A | 24 | Claude Code |
| kordocchrisryugj/kordoc | Skill | 2.9k | today | MIT | A | 253 | Claude Code |