MCP directory
DM

Doctree Mcp

by github.com/joesaby · v1.0.1 · updated Feb 21, 2026

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

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • DOCS_ROOTrequired

    Path to your markdown repository root

  • DOCS_GLOB

    Glob pattern for finding markdown files (default: **/*.md)

  • DOCS_ROOTS

    Multiple weighted collections: ./docs:1.0,./api:0.8 (alternative to DOCS_ROOT)

  • GLOSSARY_PATH

    Path to glossary.json for query expansion (default: $DOCS_ROOT/glossary.json)

More MCP servers