mcp-local-rag
io.github.shinpr/mcp-local-rag
About mcp-local-rag
mcp-local-rag is an MCP server published by the GitHub account shinpr. Easy-to-setup local RAG server with minimal configuration
It runs on your own machine: your AI client starts it from the npm package mcp-local-rag at version 0.23.1.
It asks for no keys or passwords.
Version 0.23.1 was published on 22 October 2026, and the source code is public, so you can read it before installing.
Written from the registry entry. 9 automated checks on the registry entry and the package code: 7 pass, 0 warn, 0 fail, 2 info. How we check.
What it asks for
| Variable | Required | Secret | Description |
|---|---|---|---|
BASE_DIR | No | No | Base directory for document storage (defaults to current working directory). Ignored when BASE_DIRS is set. |
BASE_DIRS | No | No | JSON array of base directories (e.g. '["/a","/b"]'). Takes precedence over BASE_DIR. |
IGNORE_PATHS | No | No | JSON array of glob patterns for files to keep out of the index, each matched against the file's path relative to its root (e.g. '["plugs/**","**/*.draft.md"]'). |
DB_PATH | No | No | Path to LanceDB database directory (defaults to ./lancedb/) |
CACHE_DIR | No | No | Directory where Transformers.js models are cached (defaults to ./models/) |
HF_ENDPOINT | No | No | Hugging Face model download endpoint. Set this to a mirror URL when direct downloads are blocked (defaults to https://huggingface.co). |
MODEL_NAME | No | No | Embedding model name (defaults to Xenova/all-MiniLM-L6-v2) |
MAX_FILE_SIZE | No | No | Maximum file size in bytes (defaults to 104857600 / 100MB) |
RAG_MAX_DISTANCE | No | No | Maximum distance threshold for filtering search results. Results with distance greater than this value will be excluded. Lower values mean stricter filtering (e.g., 0.5 for high relevance only) |
RAG_GROUPING | No | No | Grouping mode for quality filtering. 'similar' returns only the most similar group (stops at first distance jump). 'related' includes related groups (stops at second distance jump). Unset means no grouping filter |
RAG_MAX_FILES | No | No | Maximum number of files to keep in search results. Results are filtered to include only chunks from the top N best-scoring files. For example, 1 returns only the single best-matching file's chunks. Unset means no file filtering. |
CHUNK_MIN_LENGTH | No | No | Minimum chunk length in characters (1-10000, defaults to 50). Chunks shorter than this threshold are filtered out during ingestion. |
STORE_IMAGES | No | No | Store supported PDF and DOCX images during ingestion and return them with matched chunks (defaults to false). |
EMBED_TITLE_PREFIX | No | No | Embed each chunk together with its document title, which can help when passages don't restate the topic the title names (defaults to false). After changing it, use a new DB_PATH or delete the index and re-ingest. |
EMBED_HEADING_PREFIX | No | No | Add section headings to chunk embeddings when they fit (defaults to false). Independent of EMBED_TITLE_PREFIX. Re-ingest documents after changing it. |
RAG_DEVICE | No | No | Execution device for the embedder (defaults to cpu). Passed straight to ONNX Runtime; see the Transformers.js device source for the supported backend names. If the requested device fails to initialize, the server throws an error. |
RAG_DTYPE | No | No | Embedding quantization dtype for the embedder (defaults to fp32). Opt-in and pass-through; accepts any dtype the chosen model provides (fp32, fp16, q8, int8, ...). If the model has no variant for the requested dtype, the server throws an error. Changing this changes the embedding space — re-ingest existing data. |
RAG_HYBRID_WEIGHT | No | No | Keyword boost factor for hybrid search (0.0-1.0, defaults to 0.6). 0 means semantic similarity only; higher values increase the keyword-match contribution to the final score. |
RAG_RERANK_CMD | No | No | External reranker command template. Use {query} and {top} for query text and result count; unset disables reranking. |
RAG_RERANK_TIMEOUT_MS | No | No | Time budget per rerank call in milliseconds (100-600000, defaults to 10000). On timeout the spawned command is killed and the pre-rerank ordering is returned. |
Checks
| Check | Result | Detail |
|---|---|---|
| Source repository linked | Pass | https://github.com/shinpr/mcp-local-rag |
| Version pinned | Pass | Every package has an explicit version |
| Secrets requested | Info | Asks for no secrets |
| Known package registry | Pass | All packages come from npm, PyPI, OCI, NuGet or MCPB |
| Namespace ownership | Info | Name verified via GitHub account shinpr |
| Registry text aimed at the AI | Pass | Description and settings contain no hidden characters or instructions to the AI |
| Install scripts | Pass | mcp-local-rag@0.23.1 runs nothing at install |
| Code red flags | Pass | Read 146 files in mcp-local-rag@0.23.1: no obfuscation, encoded execution, credential reads or data-collection endpoints found |
| Text aimed at the AI | Pass | No hidden characters or instructions to the AI in 146 files, including comments and the README |
Popularity & health: 76 / 100
Worked out from public numbers and our own checks, not from user reviews or ratings. It says how used and how looked-after a server is, not whether it is safe.
82 forks, 173 merged pull requests. Sources: GitHub, npm, PyPI (pypistats.org) and Hacker News (Algolia), fetched 2026-10-31.
What people say
No Hacker News threads link to its source code.
Look further: search Reddit, search Hacker News, read its GitHub issues. These are not reviews we checked.
Facts
| Registry name | io.github.shinpr/mcp-local-rag |
|---|---|
| Publisher | GitHub account shinpr |
| How the name is verified | Name verified via GitHub account shinpr. The registry ties the name prefix to that account or domain; it does not check the code. |
| Type | Local: runs on your machine from a package |
| Packages | npm mcp-local-rag 0.23.1 (stdio) |
| Version | 0.23.1 |
| Published | |
| Last updated | |
| Source repository | https://github.com/shinpr/mcp-local-rag |
| Website | None linked |
| Category | Other (assigned by keyword rule, not by hand) |
Related servers in Other
- wg-easy7/7Administer wg-easy (WireGuard Easy) v15: manage VPN clients,…
- mulmocast-vision7/7Easy and stylish presentation slide generator.
minddy3/3Minimal issue tracker: projects, objectives and trackable plans,…- Agent-Native Chat3/3Minimal chat-first app with durable threads, actions, and the…
- pwsh-exec-mcp7/7A minimal, transparent PowerShell 7 MCP for Windows — one tool: raw…
- qiita-mcp-server2/2Publish articles to Qiita via MCP tools. Minimal, fast, and focused…