mcp-local-rag
io.github.damoqiongqiu/mcp-local-rag
About mcp-local-rag
mcp-local-rag is an MCP server published by the GitHub account damoqiongqiu. Semantic code & doc search with keyword boost. AST code nav, auto HF mirror, local, privacy-first.
It runs on your own machine: your AI client starts it from the npm package @damoqiongqiu/mcp-local-rag at version 0.21.0.
It asks for no keys or passwords.
Version 0.21.0 was published on 23 July 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. |
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/) |
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. |
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_WATCH | No | No | Enable automatic file watcher to detect changes and re-index modified files (true/1 to enable). Useful during active development. |
HF_ENDPOINT | No | No | Explicit HuggingFace endpoint URL to use for model downloads. When set, auto-mirror detection is skipped and this URL is used directly. Useful when you have a full-featured mirror. |
HF_AUTO_MIRROR | No | No | Enable automatic mirror detection for HuggingFace downloads (defaults to true). Set to "false" or "0" to disable and use huggingface.co directly. The mirror chain is: huggingface.co → hf-mirror.com → modelscope.cn. |
HTTPS_PROXY | No | No | HTTPS proxy URL for downloading embedding models (e.g. http://proxy:8080). Required only if behind a corporate proxy. |
HTTP_PROXY | No | No | HTTP proxy URL for downloading embedding models. Fallback if HTTPS_PROXY is not set. |
Checks
| Check | Result | Detail |
|---|---|---|
| Source repository linked | Pass | https://github.com/damoqiongqiu/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 damoqiongqiu |
| Registry text aimed at the AI | Pass | Description and settings contain no hidden characters or instructions to the AI |
| Install scripts | Pass | @damoqiongqiu/mcp-local-rag@0.21.0 runs nothing at install |
| Code red flags | Pass | Read 144 files in @damoqiongqiu/mcp-local-rag@0.21.0: 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 144 files, including comments and the README |
Popularity & health: 49 / 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.
0 forks, 0 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.damoqiongqiu/mcp-local-rag |
|---|---|
| Publisher | GitHub account damoqiongqiu |
| How the name is verified | Name verified via GitHub account damoqiongqiu. 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 @damoqiongqiu/mcp-local-rag 0.21.0 (stdio) |
| Version | 0.21.0 |
| Published | |
| Last updated | |
| Source repository | https://github.com/damoqiongqiu/mcp-local-rag |
| Website | None linked |
| Category | Files & documents (assigned by keyword rule, not by hand) |
Related servers in Files & documents
- URL to Markdown (Article Extractor)7/7Turn any URL into clean Markdown or text for LLMs, RAG and agents.…
- memory-boost7/7Markdown memory for coding agents that audits itself: drift reports…
- mcp-file-processor7/7Text extraction, keyword extraction, language detection, and…
- mcp-file-processor7/7Text extraction, keyword extraction, language detection, and…
- filesift7/7Local file search for AI agents — semantic + keyword indexing over…
- Synaplan4/4Self-hosted AI workspace: semantic RAG document search, long-term…