Best for
- Users who want to index and search personal or project documents locally.
- Users who want semantic retrieval combined with keyword matching across potentially multilingual corpora.
A local-document RAG MCP server with multilingual semantic search and BM25 keyword boosting. The documented v2 is a prerelease; the first model download and explicitly requested URL ingestion access the network.
Strongest · Documentation 15/20 Weakest · Reliability 10/20
Static review · not runReviewed 2026-11-29
Read the FMRS scoring method →Runtime:Python 3.11+
BASE_DIR
Set the absolute path to one document root; defaults to the process working directory.
BASE_DIRS
Set a JSON array of document root paths; takes precedence over BASE_DIR.
DB_PATH
Set the index directory; defaults to .minirag/v2 under the first document root.
CACHE_DIR
Set the model cache directory; defaults to the platform user cache directory.
MODEL_NAME
Set the fastembed model ID; defaults to intfloat/multilingual-e5-large.
MAX_FILE_SIZE
Set the per-file size limit in bytes, enforced before parsing; defaults to 104857600.
CHUNK_TOKEN_BUDGET
Set the retrieval unit's token budget; the default depends on the model.
RAG_HYBRID_WEIGHT
Set the keyword-ranking weight in hybrid search; defaults to 0.6.
RAG_GROUPING
Set the result grouping filter to similar or related; unset means no grouping filter.
RAG_MAX_DISTANCE
Set the maximum vector distance; unset means no distance filter.
RAG_MAX_FILES
Set the maximum number of best-scoring files contributing chunks; unset means no per-file filter.
RAG_INSTRUCTIONS_APPEND
Set a paragraph to append to the instructions provided to the client at connection time.
ALLOW_PRIVATE_URLS
Set to true to let ingest_url fetch hosts resolving to local or restricted addresses; off by default.
To install and run the v2 prerelease, configure the MCP client with command uvx, args ["--from", "minirag-mcp>=2.0.0a1", "minirag-mcp"], and BASE_DIR set to the absolute path of your documents folder. Sync the documents before querying. The README includes stdio configuration for Claude Desktop and examples for Claude Code, Cursor, and Codex. The first ingestion downloads the embedding model.
{
"mcpServers": {
"minirag": {
"command": "uvx",
"args": [
"--from",
"minirag-mcp>=2.0.0a1",
"minirag-mcp"
],
"env": {
"BASE_DIR": "/absolute/path/to/docs"
}
}
}
}
Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"minirag": {
"command": "uvx",
"args": [
"--from",
"minirag-mcp>=2.0.0a1",
"minirag-mcp"
],
"env": {
"BASE_DIR": "/absolute/path/to/docs"
}
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
[mcp_servers.minirag] command = "uvx" args = ["--from", "minirag-mcp>=2.0.0a1", "minirag-mcp"] [mcp_servers.minirag.env] BASE_DIR = "/absolute/path/to/docs"
Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).
claude mcp add minirag -e BASE_DIR=/absolute/path/to/docs -- uvx --from 'minirag-mcp>=2.0.0a1' minirag-mcp
Run it in a terminal; replace any <…> placeholders with your own values first.
Confirm that minirag tools appear in your client's MCP tool list. Ask it to sync your documents and search for a known fact; relevant passages confirm the connection and index are working.
Once connected, you can ask your AI assistant things like:
Listed from the project's documentation, not tested by this site.
MiniRAG MCP Server is a Python MCP server that indexes a chosen document folder and retrieves content using semantic vector search combined with BM25 keyword ranking. It uses multilingual embeddings by default, and indexing and queries run locally. First use downloads the model, and an explicit ingest_url call fetches the requested web page. The README describes the 2.0.0a prerelease; ordinary pip or uvx installation still installs 1.1.1.
Read and write Obsidian notes through authenticated remote access.
Convert files and web pages into clean Markdown on your machine.
Transcribe audio locally, without sending it off-device.
Search PDFs with page-level evidence.
Source revision ced10bc9d2a4 Data synced 2026-12-05 Read the FMRS scoring method Markdown