minirag-mcp
A local-first RAG MCP server in Python that performs hybrid search (semantic vector similarity plus BM25 keyword boost) over a local folder of documents. It supports 11 MCP tools, CLI ingestion for 12 formats via markitdown, multilingual embeddings using fastembed, and stores data in LanceDB. It is designed to keep data on the user's machine, requiring only a local model endpoint for embeddings and reranking.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Perform hybrid semantic and keyword search over local documents
- Ingest local files in 12 formats using markitdown
- Find all mentions of a word or phrase across indexed documents
- Identify look-alike documents sharing similar text content
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
minirag-mcp 1.1.1
{
"version": "1.1.1",
"transport": "stdio",
"identifier": "minirag-mcp",
"runtimeHint": "uvx",
"registryType": "pypi",
"registryBaseUrl": "https://pypi.org",
"environmentVariables": [
{
"name": "BASE_DIR",
"format": "filepath",
"description": "One document root; also the security boundary for file access. Defaults to the process working directory. Ignored when BASE_DIRS is set."
},
{
"name": "BASE_DIRS",
"format": "string",
"description": "JSON array of document roots, e.g. [\"/docs/a\", \"/docs/b\"]. Takes precedence over BASE_DIR. An invalid value is a hard configuration error.",
"placeholder": "[\"/docs/a\", \"/docs/b\"]"
},
{
"name": "DB_PATH",
"format": "filepath",
"description": "LanceDB index directory. Defaults to <first root>/.minirag/lancedb, so each corpus gets its own index."
},
{
"name": "CACHE_DIR",
"format": "filepath",
"description": "Embedding model cache. Defaults to the platform user cache dir, so the ~220 MB model is downloaded once and shared."
},
{
"name": "MODEL_NAME",
"format": "string",
"default": "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2",
"description": "fastembed model id. Changing it makes existing vectors incompatible with new queries; pair with a new DB_PATH or a full re-ingest."
},
{
"name": "MAX_FILE_SIZE",
"format": "number",
"default": "104857600",
"description": "Per-file size limit in bytes, enforced before parsing."
},
{
"name": "CHUNK_TOKEN_BUDGET",
"format": "number",
"default": "110",
"description": "Retrieval-unit size in the embedding model's own tokens. Range 16-128; the ceiling is the model's trained sequence length."
},
{
"name": "RAG_HYBRID_WEIGHT",
"format": "number",
"default": "0.6",
"description": "Keyword weight in the weighted RRF fusion, range 0.0-1.0. 0 is vector-only; higher values raise the BM25 contribution."
},
{
"name": "RAG_GROUPING",
"format": "string",
"choices": [
"similar",
"related"
],
"description": "Result grouping filter. 'similar' keeps only the closest group; 'related' also keeps the next one. Unset means no grouping filter."
},
{
"name": "RAG_MAX_DISTANCE",
"format": "number",
"description": "Drop results whose vector distance exceeds this value. Lower is stricter. Unset means no distance filter."
},
{
"name": "RAG_MAX_FILES",
"format": "number",
"description": "Keep chunks from at most this many best-scoring files. Unset means no per-file filter."
},
{
"name": "RAG_INSTRUCTIONS_APPEND",
"format": "string",
"description": "Extra paragraph appended to the instructions the server hands the client at connect time, for corpus-specific guidance."
},
{
"name": "ALLOW_PRIVATE_URLS",
"format": "boolean",
"default": "false",
"description": "Let ingest_url fetch hosts resolving to loopback, link-local, private, reserved or unspecified addresses. Off by default."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"minirag-mcp-mcp": {
"command": "uvx",
"args": [
"minirag-mcp==1.1.1"
],
"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>"
}
}
}
}Cline
{
"mcpServers": {
"minirag-mcp-mcp": {
"command": "uvx",
"args": [
"minirag-mcp==1.1.1"
],
"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>"
}
}
}
}VS Code
{
"servers": {
"minirag-mcp-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"minirag-mcp==1.1.1"
],
"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>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"minirag-mcp-mcp": {
"command": "uvx",
"args": [
"minirag-mcp==1.1.1"
],
"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>"
}
}
}
}Let your agent find its tools
Find servers like minirag-mcp from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.