Minirag MCP logo

Minirag MCP

Local-first hybrid RAG over folders, with tools for indexing, searching, reading, filtering, and managing document sources.

Install Minirag MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "minirag-mcp": {
      "command": "uvx",
      "args": [
        "minirag-mcp"
      ],
      "env": {
        "BASE_DIR": "YOUR_VALUE_HERE",
        "ALLOW_PRIVATE_URLS": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

minirag-mcp MCP server indexes local document folders and exposes hybrid search through MCP, combining semantic similarity with keyword ranking. It can reconcile folder contents, ingest individual files, client-held text, or permitted web URLs, then return ranked passages with source and section context. Use it when an agent needs grounded answers from a local corpus, including document filtering by labels or dates. Local ingestion, indexing, and querying stay on the machine; network access is limited to model downloads and explicit URL ingestion.

Use cases

  • Index a local project documentation folder for agent questions
  • Search manuals and source files with semantic and exact-term matching
  • Filter a document corpus by labels and date ranges
  • Ingest client-held notes or HTML without creating local files
  • Fetch and index an approved public web page

Key features

  • Hybrid vector and keyword search
  • Incremental folder synchronization
  • File, text, HTML, and URL ingestion
  • Chunk-neighbor and full-document reading
  • Optional OCR and document classification
  • Local index status and source management

Tools11

What Minirag MCP lets your agent do. Expand a tool for its parameters.

Verified live~2.8k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

24/24 checks healthy over the last 84d

What it can do

From the 11 tools this server returned when we ran it.

Runs commands · 1Can delete or modify data · 1Makes network requests · 5Read-only tools · 9
Network at startup2 connections
Files written at startup30

Observed 2026-10-24 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · minirag-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars59Stargazers on the source repository.
Last commit5d agoMost recent push to the default branch.
Tools exposed11Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Minirag MCP works

What minirag-mcp does

minirag-mcp turns a folder of documents into a searchable local RAG index for MCP clients. It combines vector similarity with keyword ranking, helping exact identifiers and error codes surface alongside semantically related passages. The index can also contain text, Markdown, or HTML supplied directly by a client, as well as content fetched from an HTTP or HTTPS URL.

Supported document ingestion includes common office, web, data, notebook, ebook, PDF, Markdown, and plain-text formats through its document conversion layer. OCR support is optional for scanned PDFs and images. An optional classification setup adds document labels and dates that can be used as search filters.

How it works

Use sync_start to reconcile configured document roots. The operation returns a job ID immediately; sync_status reports progress, per-file errors, and counts for ingested, skipped, moved, deleted, relabelled, unreadable, and failed items. Identical files are skipped, removed files are deleted from the index, and moved files can retain their existing chunks when their contents and names match.

query_documents searches indexed content and returns ranked chunks, source records, scores, titles, and parent sections. Parent sections provide more context around a matching chunk, while read_chunk_neighbors retrieves nearby chunks and read_file reconstructs an entire indexed document as Markdown. Search can be narrowed by labels and inclusive date ranges when classification data is available.

The index is local. Model downloads occur when needed, and ingest_url is the only MCP tool that fetches network content. URL hosts are restricted away from private and local addresses unless ALLOW_PRIVATE_URLS=1 is set.

Setup and configuration

Run the package with uvx minirag-mcp and configure an absolute document directory through BASE_DIR, for example when adding it to an MCP client. The server uses the same indexes through its MCP interface and command-line operation. A status call reports roots, database path, model, hybrid weight, source and chunk counts, chunking-scheme state, OCR availability, and classification state when configuration is valid.

The Claude Code setup uses claude mcp add with BASE_DIR and the uvx command. A Claude Desktop extension can also be built from a clone and installed as an .mcpb package; that extension supports Apple Silicon Macs running macOS 14 or later and 64-bit Intel/AMD Windows.

Tools and capabilities

  • sync_start and sync_status manage asynchronous index reconciliation.
  • ingest_file, ingest_data, and ingest_url add or replace indexed content.
  • query_documents performs hybrid search with optional label and date filters.
  • read_chunk_neighbors and read_file provide focused or complete document context.
  • list_files reports disk and indexed sources, including stale, missing, unreadable, and unlisted states.
  • delete_file removes a file, data item, or URL item from the index.
  • status reports configuration, index, model, chunking, OCR, and label state.

Limitations and notes

Only one synchronization job can run against an index at a time, although individual ingestion and queries can continue. Sync job records are limited to the latest job and are discarded on restart. A failed or inaccessible folder is retained rather than treated as an instruction to delete its indexed files.

read_file returns the full reconstructed document and can create large responses; neighboring chunks are preferable for focused context. Search results include displayPath values intended for citations, and answers should finish with a plain-text Sources list containing the paths actually used.

Scanned PDFs and images require the optional OCR extra. Classification and label-based filtering require the optional classification setup. Changing the embedding model or chunking scheme can leave older chunks marked stale until a new synchronization rebuilds them.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Minirag MCP

minirag-mcp is an MCP server that connects AI clients to local document folders and indexed text or URL sources. Its main tools synchronize and ingest content, run hybrid semantic and keyword searches, read matching context or full documents, list sources, delete index entries, and report index status.

Install and launch it with `uvx minirag-mcp`, then configure an absolute document directory with `BASE_DIR`. Claude Code can add the command through `claude mcp add`; Claude Desktop can use the buildable `.mcpb` extension.

Configure the folder as a document root, then call `sync_start` and poll `sync_status` until it succeeds or fails. New and changed files are ingested, identical files are skipped, vanished files are removed, and moved files may retain their existing chunks.

Yes, it can index PDFs, and scanned PDFs require the optional OCR extra. Images also require OCR support. Without that extra, unreadable indexed sources are retained and reported rather than refreshed.

Yes, Cursor is named as a supported MCP client for minirag-mcp. Configure it to launch the same `uvx minirag-mcp` process and provide the document-root configuration.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMinirag MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/minirag-mcp?style=directory)](https://allmcps.com/mcp/minirag-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/minirag-mcp"><img src="https://allmcps.com/api/badge/minirag-mcp?style=directory" alt="Minirag MCP on AllMCPs" /></a>