Skip to content
mcp/skillhub

Local Rag MCP Server

by shinprio.github.shinpr/mcp-local-ragv0.22.1

Local document search: semantic search over PDF, DOCX, TXT and Markdown files with LanceDB vector storage and local embeddings.

415Node.jsstdioofficial registry

context tax

pending

security

97/100

cold start

pending

freshness

Active27d ago

Our reading of Local Rag, from the data

Local Rag is a notes & knowledge MCP server from shinpr, listed in the official MCP Registry.

We haven't measured its tool list yet, so its token cost is unknown.

Maintenance is active: the last public signal was 27 days ago (2026-10-15). For comparison, 70% of notes & knowledge servers are active or maintained.

With 415 GitHub stars it ranks #45 of 1,114 notes & knowledge servers we index.

It runs locally on your machine over stdio.

Install Local Rag MCP server

Install in Claude Code

claude mcp add local-rag -- npx -y mcp-local-rag

Try it in a sandbox first: this installs it with scripts off and starts it with no network, then lists its tools and token cost. How it works

npx mcpskillhub test mcp-local-rag

Configuration

VariableRequiredSecretDescription
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/)
HF_ENDPOINT——Hugging Face model download endpoint. Set this to a mirror URL when direct downloads are blocked (defaults to https://huggingface.co).
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.
STORE_IMAGES——Store supported PDF and DOCX images during ingestion and return them with matched chunks (defaults to false).
EMBED_TITLE_PREFIX——Embed each chunk together with its document title, which can help when passages don't restate the topic the title names (defaults to false). After changing it, use a new DB_PATH or delete the index and re-ingest.
EMBED_HEADING_PREFIX——Add section headings to chunk embeddings when they fit (defaults to false). Independent of EMBED_TITLE_PREFIX. Re-ingest documents after changing it.
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_RERANK_CMD——External reranker command template. Use {query} and {top} for query text and result count; unset disables reranking.
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.

Security signals

97/100 — no known issues found as of 2026-10-19, from the checks below. This is not a guarantee of safety; review what a server can do before connecting it.

Deductions

  • No security policy (SECURITY.md)-3

Checks

  • ✓Repository hygiene (archived, activity, license, security policy)
  • ○Package metadata (install scripts, provenance) — pending
  • ○Tool descriptions (prompt-injection and hidden-text heuristics) — pending
  • ○Source scan (secrets, CVEs, risky code) by vectra-guard — pending

Scan it yourself before installing with vectra-guard, the open-source agent security CLI (made by NavyaAI, which also runs MCPSkillHub). Scoring rules

Freshness

Active — last maintenance signal 27d ago. The newest of the signals below sets the band.

  1. Last commit (default branch)

    2026-10-15 · 27d ago · GitHub

  2. Latest release

    2026-10-14 · 28d ago · GitHub · v0.22.1

  3. Package published

    no data · npm/PyPI

  4. Registry entry updated

    2026-10-14 · 28d ago · official registry · v0.22.1

How it compares in Notes & Knowledge

Against the most-starred notes & knowledge servers we index. Token cost is per model turn, measured from each server's live tool list.

ServerStarsToolsTokens / turnFreshnessRuns
Local Rag (this)415—not measuredActivelocal
Memory91,3569949Activelocal
Context763,26421,188Activelocal + hosted
Hindsight51,304—not measuredActive—
Cognee32,506—not measuredActive—
Docs28,892133,429Activelocal
All notes & knowledge MCP servers

FAQ

›How do I install the Local Rag MCP server in Claude Code?

Run: claude mcp add local-rag -- npx -y mcp-local-rag. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.

›Does Local Rag require an API key?

No required environment variables are declared in its published metadata.

›Can I use Local Rag as a remote (hosted) MCP server?

No hosted endpoint is published; it runs locally over stdio.

›Is Local Rag in the official MCP registry?

Yes, as io.github.shinpr/mcp-local-rag.

Sources and method

Official MCP Registry entry
updated 2026-10-14
GitHub repository
fetched 2026-10-19
Package registry (npm / PyPI)
listed
Last checked against all sources
2026-10-19

The description, packages and links come from the maintainer's own published metadata. Token cost, security signals, freshness and the reading above are MCPSkillHub's own measurements; see the methodology. Editorial standards are owned by Ramachandra Vikas Chamarthi, Founder & AI HPC Architect. Spot an error? Request a correction or claim the listing.

Alternatives to Local Rag

Other notes & knowledge MCP servers.

View all