Package

mcp-local-rag

Easy-to-setup local RAG server with minimal configuration

io.github.shinpr/mcp-local-ragSource repository
Version0.19.0latest catalog version
ConnectionPackagenpm
PublishedSep 20, 2026catalog
UpdatedSep 20, 2026catalog
Overview

What this server provides

Easy-to-setup local RAG server with minimal configuration

Install

Packages

1
Package 1npm
mcp-local-rag0.19.0
  • BASE_DIR

    Base directory for document storage (defaults to current working directory). Ignored when BASE_DIRS is set.

    Format: string
    Optional
  • BASE_DIRS

    JSON array of base directories (e.g. '["/a","/b"]'). Takes precedence over BASE_DIR.

    Format: string
    Optional
  • DB_PATH

    Path to LanceDB database directory (defaults to ./lancedb/)

    Format: string
    Optional
  • CACHE_DIR

    Directory where Transformers.js models are cached (defaults to ./models/)

    Format: string
    Optional
  • HF_ENDPOINT

    Hugging Face model download endpoint. Set this to a mirror URL when direct downloads are blocked (defaults to https://huggingface.co).

    Format: string
    Optional
  • MODEL_NAME

    Embedding model name (defaults to Xenova/all-MiniLM-L6-v2)

    Format: string
    Optional
  • MAX_FILE_SIZE

    Maximum file size in bytes (defaults to 104857600 / 100MB)

    Format: string
    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)

    Format: string
    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

    Format: string
    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.

    Format: string
    Optional
  • CHUNK_MIN_LENGTH

    Minimum chunk length in characters (1-10000, defaults to 50). Chunks shorter than this threshold are filtered out during ingestion.

    Format: string
    Optional
  • STORE_IMAGES

    Store supported PDF and DOCX images during ingestion and return them with matched chunks (defaults to false).

    Format: string
    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.

    Format: string
    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.

    Format: string
    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.

    Format: string
    Optional
  • RAG_RERANK_CMD

    External command that reorders query_documents results (unset disables reranking). The search query and the matched document chunks, including their text, are passed to this command, so a command that contacts a remote service sends that content off this machine.

    Format: string
    Optional
  • RAG_RERANK_TIMEOUT_MS

    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.

    Format: string
    Optional
View server metadata