doctree mcp for Cursor
io.github.joesaby/doctree-mcp
BM25 search + tree navigation over markdown docs for AI agents. No embeddings, no LLM calls.
client:Cursor
transport:stdio
runtime:npm
Install doctree mcp in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"doctree-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"doctree-mcp"
],
"env": {
"DOCS_ROOT": "<DOCS_ROOT>",
"DOCS_GLOB": "<DOCS_GLOB>",
"DOCS_ROOTS": "<DOCS_ROOTS>",
"GLOSSARY_PATH": "<GLOSSARY_PATH>"
}
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs