io.github.shinpr

mcp-local-rag

Easy-to-setup local RAG server with minimal configuration

stdiocommunityknowledge

Package Details

Transportstdio

Environment Variables

BASE_DIR(str)

Base directory for document storage (defaults to current working directory)

DB_PATH(str)

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

CACHE_DIR(str)

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

MODEL_NAME(str)

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

MAX_FILE_SIZE(str)

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

RAG_MAX_DISTANCE(str)

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(str)

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