Doctree MCP Server
by joesabyio.github.joesaby/doctree-mcpv1.0.1
BM25 search + tree navigation over markdown docs for AI agents. No embeddings, no LLM calls.
context tax
queued
security
queued
cold start
queued
freshness
Slowing4mo ago
Install Doctree MCP server
Install in Claude Code
claude mcp add doctree -e DOCS_ROOT='<docs-root>' -- npx -y doctree-mcpInstall in Cursor
{
"mcpServers": {
"doctree": {
"command": "npx",
"args": [
"-y",
"doctree-mcp"
],
"env": {
"DOCS_ROOT": "<docs-root>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"doctree": {
"command": "npx",
"args": [
"-y",
"doctree-mcp"
],
"env": {
"DOCS_ROOT": "<docs-root>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"doctree": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"doctree-mcp"
],
"env": {
"DOCS_ROOT": "<docs-root>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"doctree": {
"command": "npx",
"args": [
"-y",
"doctree-mcp"
],
"env": {
"DOCS_ROOT": "<docs-root>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| DOCS_ROOT | yes | — | Path to your markdown repository root |
| DOCS_GLOB | — | — | Glob pattern for finding markdown files (default: **/*.md) |
| DOCS_ROOTS | — | — | Multiple weighted collections: ./docs:1.0,./api:0.8 (alternative to DOCS_ROOT) |
| GLOSSARY_PATH | — | — | Path to glossary.json for query expansion (default: $DOCS_ROOT/glossary.json) |
Freshness
Slowing — last maintenance signal 4mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-06-12 · 4mo ago · GitHub
Latest release
2026-04-12 · 6mo ago · GitHub · v1.1.1
Package published
no data · npm/PyPI
Registry entry updated
2026-02-21 · 8mo ago · official registry · v1.0.1
FAQ
›How do I install the Doctree MCP server in Claude Code?
Run: claude mcp add doctree -e DOCS_ROOT='<docs-root>' -- npx -y doctree-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Doctree require an API key?
Yes. It expects DOCS_ROOT.
›Can I use Doctree as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Doctree in the official MCP registry?
Yes, as io.github.joesaby/doctree-mcp.
Alternatives to Doctree
Other memory MCP servers.