Doctree MCP
BM25 search + tree navigation over markdown docs for AI agents. No embeddings, no LLM…
- Pricing
- Open source
- Runs
- Locally
- Version
- 1.0.1
- Listing updated
- 5 days ago
About Doctree MCP
Doctree MCP is an open-source MCP server. It runs locally on your machine and is started by your AI client.
BM25 search + tree navigation over markdown docs for AI agents. No embeddings, no LLM calls.
Install
Run in a terminal
claude mcp add doctree-mcp --env DOCS_ROOT='<DOCS_ROOT>' -- npx -y doctree-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"doctree-mcp": {
"command": "npx",
"args": [
"-y",
"doctree-mcp"
],
"env": {
"DOCS_ROOT": "<DOCS_ROOT>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"doctree-mcp": {
"command": "npx",
"args": [
"-y",
"doctree-mcp"
],
"env": {
"DOCS_ROOT": "<DOCS_ROOT>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"doctree-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"doctree-mcp"
],
"env": {
"DOCS_ROOT": "<DOCS_ROOT>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"doctree-mcp": {
"command": "npx",
"args": [
"-y",
"doctree-mcp"
],
"env": {
"DOCS_ROOT": "<DOCS_ROOT>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"doctree-mcp": {
"command": "npx",
"args": [
"-y",
"doctree-mcp"
],
"env": {
"DOCS_ROOT": "<DOCS_ROOT>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
DOCS_ROOTPath to your markdown repository rootRequiredDOCS_GLOBGlob pattern for finding markdown files (default: **/*.md)DOCS_ROOTSMultiple weighted collections: ./docs:1.0,./api:0.8 (alternative to DOCS_ROOT)GLOSSARY_PATHPath to glossary.json for query expansion (default: $DOCS_ROOT/glossary.json)
Pricing
Open source
Doctree MCP FAQ
Is Doctree MCP free?
Yes. Doctree MCP is open source, so you can use and self-host it for free.
How do I add Doctree MCP to Claude Code?
Run this command in your terminal: claude mcp add doctree-mcp --env DOCS_ROOT='<DOCS_ROOT>' -- npx -y doctree-mcp
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.