Skip to content
Cursor

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

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "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

doctree mcp in other clients