Skip to content
Grok

doctree mcp for Grok

io.github.joesaby/doctree-mcp

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

client:Grok transport:stdio runtime:npm

Install doctree mcp in Grok

.mcp.json (in your project root)

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

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

doctree mcp in other clients