Skip to content
Gemini CLI

doctree mcp for Gemini CLI

io.github.joesaby/doctree-mcp

BM25 search + tree navigation over markdown docs for AI agents. No embeddings, no LLM calls.

client:Gemini CLI transport:stdio runtime:npm

Install doctree mcp in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

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

{
  "mcpServers": {
    "doctree-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "doctree-mcp"
      ],
      "env": {
        "DOCS_ROOT": "<DOCS_ROOT>",
        "DOCS_GLOB": "<DOCS_GLOB>",
        "DOCS_ROOTS": "<DOCS_ROOTS>",
        "GLOSSARY_PATH": "<GLOSSARY_PATH>"
      }
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

doctree mcp in other clients