Skip to main content

Minirag MCP

io.github.sfrangulov/minirag-mcp

v1.1.1Updated Nov 17, 2026stdio · PyPI

Local-first RAG MCP server: hybrid search over a folder of your own documents

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add minirag-mcp -e MODEL_NAME=sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 -e MAX_FILE_SIZE=104857600 -e CHUNK_TOKEN_BUDGET=110 -e RAG_HYBRID_WEIGHT=0.6 -e ALLOW_PRIVATE_URLS=false -- uvx minirag-mcp==1.1.1

Configuration

13 settings.

  • BASE_DIR
    Env var· optional
    One document root; also the security boundary for file access. Defaults to the process working directory. Ignored when BASE_DIRS is set.
  • BASE_DIRS
    Env var· optional
    JSON array of document roots, e.g. ["/docs/a", "/docs/b"]. Takes precedence over BASE_DIR. An invalid value is a hard configuration error.
  • DB_PATH
    Env var· optional
    LanceDB index directory. Defaults to <first root>/.minirag/lancedb, so each corpus gets its own index.
  • CACHE_DIR
    Env var· optional
    Embedding model cache. Defaults to the platform user cache dir, so the ~220 MB model is downloaded once and shared.
  • MODEL_NAME
    Env var· optional
    fastembed model id. Changing it makes existing vectors incompatible with new queries; pair with a new DB_PATH or a full re-ingest.Default: sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
  • MAX_FILE_SIZE
    Env var· optional
    Per-file size limit in bytes, enforced before parsing.Default: 104857600
Show 7 more
  • CHUNK_TOKEN_BUDGET
    Env var· optional
    Retrieval-unit size in the embedding model's own tokens. Range 16-128; the ceiling is the model's trained sequence length.Default: 110
  • RAG_HYBRID_WEIGHT
    Env var· optional
    Keyword weight in the weighted RRF fusion, range 0.0-1.0. 0 is vector-only; higher values raise the BM25 contribution.Default: 0.6
  • RAG_GROUPING
    Env var· optional
    Result grouping filter. 'similar' keeps only the closest group; 'related' also keeps the next one. Unset means no grouping filter.
  • RAG_MAX_DISTANCE
    Env var· optional
    Drop results whose vector distance exceeds this value. Lower is stricter. Unset means no distance filter.
  • RAG_MAX_FILES
    Env var· optional
    Keep chunks from at most this many best-scoring files. Unset means no per-file filter.
  • RAG_INSTRUCTIONS_APPEND
    Env var· optional
    Extra paragraph appended to the instructions the server hands the client at connect time, for corpus-specific guidance.
  • ALLOW_PRIVATE_URLS
    Env var· optional
    Let ingest_url fetch hosts resolving to loopback, link-local, private, reserved or unspecified addresses. Off by default.Default: false

Listed in the official MCP Registry since Nov 17, 2026. Mirrored daily; last checked Nov 26, 2026.