Minirag Mcp
by github.com/sfrangulov · v1.1.1 · updated Nov 17, 2026
Local-first RAG MCP server: hybrid search over a folder of your own documents
Run it locally
Install the package and point your AI client at it.
PyPI
uvx minirag-mcp==1.1.1Environment variables
BASE_DIROne document root; also the security boundary for file access. Defaults to the process working directory. Ignored when BASE_DIRS is set.
BASE_DIRSJSON array of document roots, e.g. ["/docs/a", "/docs/b"]. Takes precedence over BASE_DIR. An invalid value is a hard configuration error.
DB_PATHLanceDB index directory. Defaults to <first root>/.minirag/lancedb, so each corpus gets its own index.
CACHE_DIREmbedding model cache. Defaults to the platform user cache dir, so the ~220 MB model is downloaded once and shared.
MODEL_NAMEfastembed model id. Changing it makes existing vectors incompatible with new queries; pair with a new DB_PATH or a full re-ingest.
MAX_FILE_SIZEPer-file size limit in bytes, enforced before parsing.
CHUNK_TOKEN_BUDGETRetrieval-unit size in the embedding model's own tokens. Range 16-128; the ceiling is the model's trained sequence length.
RAG_HYBRID_WEIGHTKeyword weight in the weighted RRF fusion, range 0.0-1.0. 0 is vector-only; higher values raise the BM25 contribution.
RAG_GROUPINGResult grouping filter. 'similar' keeps only the closest group; 'related' also keeps the next one. Unset means no grouping filter.
RAG_MAX_DISTANCEDrop results whose vector distance exceeds this value. Lower is stricter. Unset means no distance filter.
RAG_MAX_FILESKeep chunks from at most this many best-scoring files. Unset means no per-file filter.
RAG_INSTRUCTIONS_APPENDExtra paragraph appended to the instructions the server hands the client at connect time, for corpus-specific guidance.
ALLOW_PRIVATE_URLSLet ingest_url fetch hosts resolving to loopback, link-local, private, reserved or unspecified addresses. Off by default.
More MCP servers
Actora — Agent Identity, Subscriptions & A2A
github.com/sftgroup
ERC-8004 agent identity, on-chain subscriptions, reputation, A2A tasks and chat over 53 tools.
Actora Platform — Agent Publishing, Subscriptions & A2A
github.com/sftgroup
Actora developer tools: ERC-8004 identity, subscriptions, listings, A2A, reputation.
Actora Tenant — Hosted Chat, Tasks & Usage
github.com/sftgroup
Actora B-side tools: hosted chat, sessions, tasks, tenant plan and usage.
Syncflow
github.com/sfwme
Turn a goal into small steps (crumbs) and work through them from your agent.
Local Codebase Indexer
github.com/sfy257000
Trace SQL Server tables to C# callers and Razor pages locally; MCP server and CLI.
Noracu
github.com/sgInnora
Local MCP server: macOS apps and a browser by element index, plus iPhone Mirroring (experimental).