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

VariableRequiredSecretDescription
BASE_DIRNoNoBase directory for document storage (defaults to current working directory). Ignored when BASE_DIRS is set.
BASE_DIRSNoNoJSON array of base directories (e.g. '["/a","/b"]'). Takes precedence over BASE_DIR.
DB_PATHNoNoPath to LanceDB database directory (defaults to ./lancedb/)
CACHE_DIRNoNoDirectory where Transformers.js models are cached (defaults to ./models/)
MODEL_NAMENoNoEmbedding model name (defaults to Xenova/all-MiniLM-L6-v2)
MAX_FILE_SIZENoNoMaximum file size in bytes (defaults to 104857600 / 100MB)
RAG_MAX_DISTANCENoNoMaximum 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_GROUPINGNoNoGrouping 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_FILESNoNoMaximum 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_LENGTHNoNoMinimum chunk length in characters (1-10000, defaults to 50). Chunks shorter than this threshold are filtered out during ingestion.
RAG_DEVICENoNoExecution 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_DTYPENoNoEmbedding 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_WEIGHTNoNoKeyword 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_WATCHNoNoEnable automatic file watcher to detect changes and re-index modified files (true/1 to enable). Useful during active development.
HF_ENDPOINTNoNoExplicit 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_MIRRORNoNoEnable 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_PROXYNoNoHTTPS proxy URL for downloading embedding models (e.g. http://proxy:8080). Required only if behind a corporate proxy.
HTTP_PROXYNoNoHTTP proxy URL for downloading embedding models. Fallback if HTTPS_PROXY is not set.

Checks

CheckResultDetail
Source repository linkedPasshttps://github.com/damoqiongqiu/mcp-local-rag
Version pinnedPassEvery package has an explicit version
Secrets requestedInfoAsks for no secrets
Known package registryPassAll packages come from npm, PyPI, OCI, NuGet or MCPB
Namespace ownershipInfoName verified via GitHub account damoqiongqiu
Registry text aimed at the AIPassDescription and settings contain no hidden characters or instructions to the AI
Install scriptsPass@damoqiongqiu/mcp-local-rag@0.21.0 runs nothing at install
Code red flagsPassRead 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 AIPassNo 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.

Popularity13 / 40

13 GitHub stars, 132 downloads last week, no Hacker News posts found. Best two of the three, each on a log scale.

Activity8 / 25

Last push 2026-07-23, last release 2026-07-11, 0 commits in 90 days.

Issue health8 / 15

0 closed of 0 issues, too few to judge. No data, so half marks.

Our checks20 / 20

0 warnings, each costing a fifth.

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 nameio.github.damoqiongqiu/mcp-local-rag
PublisherGitHub account damoqiongqiu
How the name is verifiedName verified via GitHub account damoqiongqiu. The registry ties the name prefix to that account or domain; it does not check the code.
TypeLocal: runs on your machine from a package
Packagesnpm @damoqiongqiu/mcp-local-rag 0.21.0 (stdio)
Version0.21.0
Published
Last updated
Source repositoryhttps://github.com/damoqiongqiu/mcp-local-rag
WebsiteNone linked
CategoryFiles & documents (assigned by keyword rule, not by hand)

Related servers in Files & documents