← Back to directory
M

MiniRAG MCP Server

Community
A multilingual hybrid-search RAG MCP server for local documents.
Category
Filesystem #5 of 37
Stars
★ 59 Popular
Transport
stdio (local process) · Streamable HTTP
Runtime
Python 3.11+
Credentials
No credential needed
License
MIT
Last commit
62FMRS · C

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

Reliability
10/20
Security and permissions
15/20
Maintenance
10/20
Documentation
15/20
Setup experience
12/20
Why each score
Reliability 10/20
The README describes stdio and HTTP modes, tool listings, configuration error handling, index states, and several failure paths, and gives some manual verification reports. These are README claims; no reviewable source code, CI workflow, or committed tests covering key paths are provided. The README also gives conflicting v2 tool counts (11 and 13), so the happy path appears plausible but is not strongly verified.
Security and permissions 15/20
The documentation discloses local-root boundaries, default refusal of private URL hosts, HTTP bearer tokens, Origin and Host checks, and model-endpoint data flows; it also describes network activity such as URL fetching and model downloads. Points are deducted because no source code is available here to verify these protections, and the write scope of ingestion tools, confirmation for destructive operations, and per-tool permissions are not fully evidenced. No red-line evidence is present.
Maintenance 10/20
The repository is listed as unarchived and MIT-licensed, and the README describes a v2 prerelease, upgrade paths, and compatibility with earlier versions. Points are deducted because the supplied material contains no commit history, dependency update record, security-response channel, or evidence of maintainer responsiveness. The issue count and stars do not increase this score.
Documentation 15/20
The README gives detailed installation and mainstream client configuration examples, configuration options, model download and memory costs, supported formats, OCR behavior, network disclosures, troubleshooting, and limitations, while distinguishing v1 from v2. Points are deducted because it is very long, gives conflicting v2 tool counts of 11 and 13, and its key security and behavior claims cannot be checked against source files in the supplied material.
Setup experience 12/20
The README provides configuration examples for Claude Code, Claude Desktop, Cursor, and Codex, plus uv/uvx installation guidance, prerelease selection, and platform limitations. Points are deducted because v2 is still a prerelease, the default install remains 1.1.1, and first use involves a roughly 2.24 GB model download and substantial memory. No reviewable CI workflow or committed key-path tests are supplied as reproducible setup evidence, so the static calibration cap applies.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesUses the networkConnects to a database

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.

Not for

  • Users who need a fully offline first installation or first model download.
  • Users who need embedded image content indexed; embedded pictures are not indexed, and image OCR requires the optional OCR extra.
  • Users who need the server to work without access to the selected document folders or local model resources.

Required permissions

  • Needs read access to the configured document roots; BASE_DIR is the file-access boundary, and BASE_DIRS can specify multiple roots.
  • Needs network access to download the embedding model on first use; an explicit ingest_url call accesses the requested URL.
  • Index data and the model cache require local disk space; the default embedding model is about 2.24 GB.

Risks and side effects

  • Documents are parsed and stored in a local index, so choose document roots carefully.
  • ingest_url makes network requests; hosts resolving to private or local addresses are refused by default unless ALLOW_PRIVATE_URLS is enabled.
  • When model endpoints are configured, text to be embedded, reranked, or labeled is sent to those endpoints.
  • The README describes v2 as a test prerelease; its default model has significant disk and memory requirements.

Setup

Before you start

Runtime:Python 3.11+

Other optional settings (13)
BASE_DIR optional Set the absolute path to one document root; defaults to the process working directory.
BASE_DIRS optional Set a JSON array of document root paths; takes precedence over BASE_DIR.
DB_PATH optional Set the index directory; defaults to .minirag/v2 under the first document root.
CACHE_DIR optional Set the model cache directory; defaults to the platform user cache directory.
MODEL_NAME optional Set the fastembed model ID; defaults to intfloat/multilingual-e5-large.
MAX_FILE_SIZE optional Set the per-file size limit in bytes, enforced before parsing; defaults to 104857600.
CHUNK_TOKEN_BUDGET optional Set the retrieval unit's token budget; the default depends on the model.
RAG_HYBRID_WEIGHT optional Set the keyword-ranking weight in hybrid search; defaults to 0.6.
RAG_GROUPING optional Set the result grouping filter to similar or related; unset means no grouping filter.
RAG_MAX_DISTANCE optional Set the maximum vector distance; unset means no distance filter.
RAG_MAX_FILES optional Set the maximum number of best-scoring files contributing chunks; unset means no per-file filter.
RAG_INSTRUCTIONS_APPEND optional Set a paragraph to append to the instructions provided to the client at connection time.
ALLOW_PRIVATE_URLS optional 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.

.mcp.json
{
  "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.

.vscode/mcp.json
{
  "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).

~/.codex/config.toml
[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).

Terminal
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.

Check that it works

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.

Troubleshooting

  1. Check that BASE_DIR points to a readable document folder; if unset, it defaults to the process working directory.
  2. The first sync may download the model; check network access, available disk space, and the model cache.
  3. Confirm the client configuration requests the v2 prerelease; without a prerelease specifier, pip and uvx still install 1.1.1.
  4. If the index is empty, run a sync and wait for sync_status to report success before querying.
  5. If files are missing from the index, check supported formats, the file-size limit, and whether the optional OCR extra is needed.

Things to try

Once connected, you can ask your AI assistant things like:

  • Sync my documents, then find the contract's termination date.
  • Search my documents for passages that mention the project deadline.
  • List every document that contains the word “renewal”.

Use cases

Search a local document collection by topic or exact terms.
Index and retrieve multilingual material across PDFs, Office documents, Markdown, and other supported formats.
Manage and query document indexes through the CLI or MCP.

Supported clients

Claude Code
Claude Desktop
Cursor
Codex

Listed from the project's documentation, not tested by this site.

Overview

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.

Similar servers

Source revision ced10bc9d2a4 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/minirag-mcp.svg)](https://followmcp.com/en/servers/minirag-mcp)