io.github.sfrangulov/minirag-mcp MCP Server
io.github.sfrangulov/minirag-mcp
What this kind of tool is for
- Hand your agent a structured way to call a model or an inference API.
- Compare outputs from two different providers on the same prompt.
- Wire retrieval, embeddings, or generation into an existing agent workflow.
How to compare servers like this
- Provider coverage:
- Match the tool's supported providers and models to the ones your project uses.
- Cost exposure:
- Model-backed tools spend real API budget; check how usage and limits are configured.
- Maintenance signal:
- The provider landscape shifts weekly; prefer tools updated within the last few months.
- Config surface:
- Prefer tools whose environment-variable or config keys are documented plainly.
This page carries your copy-paste config: pick your MCP client in the install section on this page and use the copy button.
What is the io.github.sfrangulov/minirag-mcp MCP server?
Local-first RAG MCP server: hybrid search over a folder of your own documents
How to install io.github.sfrangulov/minirag-mcp
Copy-paste configuration for popular MCP clients.
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.
{
"mcpServers": {
"minirag-mcp": {
"command": "uvx",
"args": [
"minirag-mcp"
],
"env": {
"BASE_DIR": "<YOUR_BASE_DIR>",
"BASE_DIRS": "<YOUR_BASE_DIRS>",
"DB_PATH": "<YOUR_DB_PATH>",
"CACHE_DIR": "<YOUR_CACHE_DIR>",
"MODEL_NAME": "<YOUR_MODEL_NAME>",
"MAX_FILE_SIZE": "<YOUR_MAX_FILE_SIZE>",
"CHUNK_TOKEN_BUDGET": "<YOUR_CHUNK_TOKEN_BUDGET>",
"RAG_HYBRID_WEIGHT": "<YOUR_RAG_HYBRID_WEIGHT>",
"RAG_GROUPING": "<YOUR_RAG_GROUPING>",
"RAG_MAX_DISTANCE": "<YOUR_RAG_MAX_DISTANCE>",
"RAG_MAX_FILES": "<YOUR_RAG_MAX_FILES>",
"RAG_INSTRUCTIONS_APPEND": "<YOUR_RAG_INSTRUCTIONS_APPEND>",
"ALLOW_PRIVATE_URLS": "<YOUR_ALLOW_PRIVATE_URLS>"
}
}
}
}Related MCP servers

Access 100+ curated AI agent skills from Anthropic, Vercel, Trail of Bits, Hugging Face & more
Agent-first data marketplace — AI agents search, purchase, and sell datasets via MCP.
View repository →MCP server for AI-powered image recognition and description using OpenAI vision models.
MCP server for AI-powered image recognition and description using OpenAI vision models.

s-gw
Local credential control for coding agents—approve bounded actions, keep secrets out of model context.
Esri ArcGIS Utility Network tools: trace, subnetworks, dirty areas, associations


