Doctree MCP server
io.github.joesaby/doctree-mcp·v1.0.1·1 starsBM25 search + tree navigation over markdown docs for AI agents. No embeddings, no LLM calls.
1 stars35 downloads/wk
Reviews
Write oneNobody has reviewed Doctree yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Doctree tools (5)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
get_node_contentGet full content of specific sections
get_treeGet document section hierarchy
list_documentsList indexed markdown documents with optional filtering
navigate_treeGet a section and all its subsections with content
search_documentsSearch across all documents by keyword. Use filters to narrow by frontmatter facets.
Public scan report
scanner v0.1.10 · 2026-09-28 · same rubric, same numbers if you re-run it
- Code scan8 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 108 days ago8/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Doctree compares
Against every graded Productivity MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 82/100
- higher than 58% of 1,299 Productivity servers
- Tools
- 5
- the typical Productivity server has 7
- Tools that change things
- 0%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 1
- more than 50% of 854 Productivity servers
- Downloads a week
- 35
- more than 22% of 427 Productivity servers with a package
What its tools let an agent do: 5 read
Install Doctree in Claude Code, Cursor or VS Code
Runs npx -y doctree-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add doctree-mcp -- npx -y doctree-mcp
What the publisher says
From the Doctree repository's README, as published. We do not edit it. Read it on GitHub
doctree-mcp
Agentic document retrieval over markdown, CSV, and JSONL. BM25 + tree navigation via MCP — no vector DB, no embeddings, no LLM calls at index time.
The pitch: MCP provides the structural primitives (a navigable tree, BM25, glossary, row lookup). The bundled skills provide the procedural knowledge (how to walk that tree). Together the agent behaves like a trained research librarian — not a one-shot searcher. See The Skill + MCP Pattern.
Quick Start
Have docs already? Point a client at them:
# In your AI tool's MCP config — see docs/CLIENTS.md for per-tool snippets
{ "mcpServers": { "doctree": {
"command": "bunx", "args": ["doctree-mcp"],
"env": { "DOCS_ROOT": "./docs", "WIKI_WRITE": "1" }
} } }Restart the tool → ask "search the docs for X" or invoke the doc-read prompt.
Starting fresh? Scaffold a Karpathy-style LLM wiki:
bunx doctree-mcp init # configure current tool
bunx doctree-mcp init --all # configure every supported client
bunx doctree-mcp init --dry-runCreates docs/wiki/ (LLM-maintained) + docs/raw-sources/ (your inputs), writes the MCP config, installs a post-write lint hook, appends wiki conventions to CLAUDE.md / AGENTS.md / .cursor/rules/.
Operation Modes
Full decision tree: Operation Modes.
How It Works — Retrieve · Curate · Add
Agent: "How does token refresh work?"
→ search_documents("token refresh")
#1 auth/middleware.md § Token Refresh Flow score: 12.4
#2 auth/oauth.md § Refresh Token Lifecycle score: 8.7
→ get_tree("docs:auth:middleware")
[n1] # Auth Middleware
[n4] ## Token Refresh Flow
[n5] ### Automatic Refresh
→ navigate_tree("docs:auth:middleware", "n4") ← n4 + descendantsCore read tools (always on):
Wiki write tools (opt-in with WIKI_WRITE=1):
Safety: path containment · frontmatter validation · duplicate detection · dry-run · overwrite protection.
Deprecated aliases (listdocuments, findfiles, findsymbol) are superseded by searchdocuments — still functional, no longer recommended.
The Skill + MCP Pattern
Most retrieval tools hand the agent a search box and hope for the best. doctree-mcp hands it a tree, and the bundled skills teach it how to walk one.
- MCP = structural primitives. searchdocuments, gettree, navigatetree, getnodecontent, lookuprow return tree positions the agent reasons over — not finished answers.
- Skills = procedural knowledge. /doc-read, /doc-write, /doc-lint encode breadcrumb drill-down: search → outline → navigate → retrieve. The agent learns the policy, not just the API.
That pairing doesn't exist cleanly elsewhere:
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Doctree: common questions
- Is Doctree MCP server safe?
- Mostly: it is graded B (82/100). Read the Doctree safety report
- How do I install Doctree?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Doctree need an API key?
- No secret keys are declared. It reads 4 settings from the environment.
- Is Doctree maintained?
- The last commit was 145 days ago (2026-06-12). The latest release is v1.0.1.
- What can I use instead of Doctree?
- Servers from other publishers that do the same job: OrchestKit Docs MCP server, loci MCP server and Better Notion MCP server.
- How does Doctree compare with other Productivity MCP servers?
- safety score 82/100 (higher than 58% of 1,299 Productivity servers); tools 5 (the typical Productivity server has 7); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Doctree
Same job from other publishers: the closest match first, then the best rated.
- OrchestKit Docs MCPRead-only MCP server for the OrchestKit docs: full-text search + Markdown fetch. No auth.not reviewedEstablishedA
- lociCross-session memory and hybrid RAG over your notes and docs. Local-first, with cited answers.not reviewedEstablishedA
- Better NotionMarkdown-first Notion for AI agents -- pages, databases, blocks, and comments in one call.not reviewedEstablishedB
- HOI4 Agent ToolsBuild HOI4 mods: focus trees, events, decisions, worlds, GUI previews, docs and AI balance.not reviewedGrowingA
- Sap DocsFast MCP server for unified SAP docs search (SAPUI5, CAP, OpenUI5, wdi5) with BM25 full-text searchnot reviewedGrowingA