Semantic code & doc search with keyword boost. AST code nav, auto HF mirror, local, privacy-first.
Mcp-local-rag is an MCP integration. Semantic code & doc search with keyword boost. AST code nav, auto HF mirror, local, privacy-first.
The published npm package is @damoqiongqiu/mcp-local-rag, version 0.21.0. Its declared MCP transport is stdio.
The package declares BASE_DIR: Base directory for document storage (defaults to current working directory). Ignored when BASE_DIRS is set.; BASE_DIRS: JSON array of base directories (e.g. '["/a","/b"]'). Takes precedence over BASE_DIR.; DB_PATH: Path to LanceDB database directory (defaults to ./lancedb/); CACHE_DIR: Directory where Transformers.js models are cached (defaults to ./models/); MODEL_NAME: Embedding model name (defaults to Xenova/all-MiniLM-L6-v2); MAX_FILE_SIZE: Maximum file size in bytes (defaults to 104857600 / 100MB); RAG_MAX_DISTANCE: 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: 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: 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: Minimum chunk length in characters (1-10000, defaults to 50). Chunks shorter than this threshold are filtered out during ingestion.; RAG_DEVICE: 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: 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: 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: Enable automatic file watcher to detect changes and re-index modified files (true/1 to enable). Useful during active development.; HF_ENDPOINT: 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: 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: HTTPS proxy URL for downloading embedding models (e.g. http://proxy:8080). Required only if behind a corporate proxy.; HTTP_PROXY: HTTP proxy URL for downloading embedding models. Fallback if HTTPS_PROXY is not set..
Check the maintainer’s instructions for account access, authentication and the supported client configuration. Once connected, inspect the tools your client receives and try a small task that matches the server’s stated purpose. The registry description does not include a verified, complete tool list.
View the publisher’s registry entry · Project repository. This profile uses version 0.21.0 from the registry. Registration identifies the publisher namespace; it does not establish that this is a first-party integration for every service it connects.
Browse related developer tools MCP servers for tools that cover the same kind of work.
| Variable | Description | Required |
|---|---|---|
| BASE_DIR | Base directory for document storage (defaults to current working directory). Ignored when BASE_DIRS is set. | Optional |
| BASE_DIRS | JSON array of base directories (e.g. '["/a","/b"]'). Takes precedence over BASE_DIR. | Optional |
| DB_PATH | Path to LanceDB database directory (defaults to ./lancedb/) | Optional |
| CACHE_DIR | Directory where Transformers.js models are cached (defaults to ./models/) | Optional |
| MODEL_NAME | Embedding model name (defaults to Xenova/all-MiniLM-L6-v2) | Optional |
| MAX_FILE_SIZE | Maximum file size in bytes (defaults to 104857600 / 100MB) | Optional |
| RAG_MAX_DISTANCE | 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) | Optional |
| RAG_GROUPING | 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 | Optional |
| RAG_MAX_FILES | 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. | Optional |
| CHUNK_MIN_LENGTH | Minimum chunk length in characters (1-10000, defaults to 50). Chunks shorter than this threshold are filtered out during ingestion. | Optional |
| RAG_DEVICE | 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. | Optional |
| RAG_DTYPE | 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. | Optional |
| RAG_HYBRID_WEIGHT | 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. | Optional |
| RAG_WATCH | Enable automatic file watcher to detect changes and re-index modified files (true/1 to enable). Useful during active development. | Optional |
| HF_ENDPOINT | 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. | Optional |
| HF_AUTO_MIRROR | 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. | Optional |
| HTTPS_PROXY | HTTPS proxy URL for downloading embedding models (e.g. http://proxy:8080). Required only if behind a corporate proxy. | Optional |
| HTTP_PROXY | HTTP proxy URL for downloading embedding models. Fallback if HTTPS_PROXY is not set. | Optional |
Official Redis server — search keys, inspect data structures and manage caches in natural language.
Enables AI agents and LLMs to interact with the web and extract information from web pages via the RAG Web Browser Actor.
Enables semantic search and retrieval of documentation using a vector database, allowing users to add and query documentation from URLs or local
Augments AI responses with relevant documentation context through vector search.
Augment AI responses with context by retrieving and processing documentation through vector search.
Enables semantic analysis of chat conversations through vector embeddings and knowledge graphs.