Agentic document retrieval over markdown, CSV, and JSONL — BM25 search + tree navigation via MCP. Inspired by PageIndex and Pagefind.
Most developer tooling work still happens through a UI a human drives. Doctree MCP MCP server moves it into the conversation instead. Agentic document retrieval over markdown, CSV, and JSONL — BM25 search + tree navigation via MCP. Inspired by PageIndex and Pagefind.
Restart the tool → ask "search the docs for X" or invoke the doc-read prompt.
The server publishes 14 tools. What each one is for:
Skills — /doc-read · /doc-write · /doc-lintMode — Use whenCLI — init, lint, debug-indexsearch_documents — BM25 keyword search + facet filters + glossary expansion (markdown · CSV · JSONL)get_tree — Table of contents — headings, word counts, summariesget_node_content — Full text of a specific section by node IDnavigate_tree — A section plus all descendants in one calllookup_row — O(1) exact-key lookup for structured data rows (e.g. PROJ-44)find_similar — Duplicate detection with overlap ratiosdraft_wiki_entry — Scaffold: suggested path, inferred frontmatter, glossary hitswrite_wiki_entry — Validated write: path containment, schema, duplicate guards, dry-runApproach — PrimitiveBecause this one is hosted, setup is mostly authentication — you point your client at the endpoint and approve access. Nothing runs on your machine, so there is no runtime to keep patched.
Configuration is passed through the environment: DOCS_ROOT, WIKI_WRITE, GLOSSARY_PATH. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Doctree MCP's toolset — Skills, Mode, CLI and 11 more — is a fair guide to whether it matches your workflow. It is maintained by joesaby; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| Skills | [/doc-read](./.claude/skills/doc-read/SKILL.md) · [/doc-write](./.claude/skills/doc-write/SKILL.md) · [/doc-lint](./.claude/skills/doc-lint/SKILL.md) |
| Mode | Use when |
| CLI | init, lint, debug-index |
| search_documents | BM25 keyword search + facet filters + glossary expansion (markdown · CSV · JSONL) |
| get_tree | Table of contents — headings, word counts, summaries |
| get_node_content | Full text of a specific section by node ID |
| navigate_tree | A section plus all descendants in one call |
| lookup_row | O(1) exact-key lookup for structured data rows (e.g. PROJ-44) |
| find_similar | Duplicate detection with overlap ratios |
| draft_wiki_entry | Scaffold: suggested path, inferred frontmatter, glossary hits |
| write_wiki_entry | Validated write: path containment, schema, duplicate guards, dry-run |
| Approach | Primitive |
| Variable | Default |
| DOCS_ROOT | ./docs |
| Variable | Description | Required |
|---|---|---|
| DOCS_ROOT | Configuration value read at startup. | Optional |
| WIKI_WRITE | Configuration value read at startup. | Optional |
| GLOSSARY_PATH | Filesystem location the server is allowed to use. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.