1. Conduid
  2. Automation
  3. shinpr/mcp-local-rag
MCP server · Automation

shinpr/mcp-local-rag

Local-first RAG server for developers. Semantic + keyword search for code and technical docs. Works with MCP or CLI. Fully private, zero setup.

82Strong

Scored 20 hours ago · breakdown

About shinpr/mcp-local-rag

shinpr/mcp-local-rag is an MCP server published by shinpr in the Automation category: local-first RAG server for developers. Semantic + keyword search for code and technical docs. Works with MCP or CLI. Fully private, zero setup. Conduid read 9 tools from its source: delete_file, ingest_data, ingest_file, list_files, query_documents, read_chunk_neighbors and 3 more. It is published to npm as mcp-local-rag and starts with npx.

The repository has 440 stars and 82 forks, is licensed MIT, and its last commit was on 13 Nov 2026. The latest release is v0.23.3 (11 Nov 2026): IGNORE_PATHS directory patterns such as node_modules/ now exclude everything under the directory. It follows v0.23.2 (4 Nov 2026), and the 5 most recent releases go back to v0.22.1 (14 Oct 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include rag, vector-search, lancedb, transformers, local-ai and privacy.

Install

Claude Code
claude mcp add local-rag -- npx -y mcp-local-rag
npx
npx -y mcp-local-rag
From source
git clone https://github.com/shinpr/mcp-local-rag

Tools (9)

delete_fileDelete an indexed file or an `ingest_data` item
ParameterTypeDescription
filePathstringAbsolute path to the file (for ingest_file). Example: "/Users/user/documents/manual.pdf"
sourcestringSource identifier used in ingest_data. Examples: "https://example.com/page", "clipboard://2024-12-30"
ingest_dataIngest text, Markdown, or HTML already held by the client
ParameterTypeDescription
content *stringThe content to ingest (text, HTML, or Markdown)
metadata *object
ingest_fileIngest or replace one file
ParameterTypeDescription
filePath *stringAbsolute path to the file to ingest. Example: "/Users/user/documents/manual.pdf"
visualbooleanRun VLM captioning on figure pages (PDF only; default false).
visualQualitystringVLM profile when visual is true (default "fast"). "quality" is more accurate on figures with in-image text but much heavier and slower. Ignored when visual is false.
list_filesShow supported files and their ingestion state
ParameterTypeDescription
scopeanyOptional absolute path prefix(es) — one string or a list (unioned) — restricting the listing to files reachable at a path equal to or under a prefix within the base directories. "/docs/api" matches "/docs/api/x.md" but not "/docs/apiv2". Must be absolute (server OS style); a relative prefix matches nothing. A prefix outside every base directory yields an empty files list, so compare it against the baseDirs in the response before concluding no files exist. Scope filters files by their scan path; ingest_data sources, which have no base-directory path, are always listed.
query_documentsSearch with semantic matching and keyword boost
ParameterTypeDescription
limitnumberMax results (default 10, range ${MIN_QUERY_LIMIT}-${MAX_QUERY_LIMIT}). Lower favors precision, higher recall.
query *stringSearch query. Preserve specific user terms (for keyword match); add context when the query is vague (for semantic match).
scopeanyOptional absolute path prefix(es) — one string or a list (unioned) — restricting results to a filePath equal to or under a prefix. "/docs/api" matches "/docs/api/auth.md" but not "/docs/apiv2". Must be absolute (server OS style); a relative prefix matches nothing — derive one from a filePath returned by an earlier query, or omit scope.
read_chunk_neighborsRead surrounding chunks from a search result
ParameterTypeDescription
afternumberNumber of chunks to retrieve after the target (0–${MAX_NEIGHBOR_COUNT}, default 2).
beforenumberNumber of chunks to retrieve before the target (0–${MAX_NEIGHBOR_COUNT}, default 2).
chunkIndex *numberZero-based target chunk index (non-negative integer).
filePathstringAbsolute path to the file (for ingest_file documents). Provide exactly one of filePath or source. Example: "/Users/user/documents/manual.pdf".
sourcestringSource identifier (for ingest_data documents). Provide exactly one of filePath or source. Examples: "https://example.com/page", "clipboard://2024-12-30".
statusShow index and search status
sync_startReconcile the index with all configured roots or one path
ParameterTypeDescription
pathstringOptional absolute path to a file or directory inside a configured base directory; list_files returns those directories as baseDirs. A file synchronizes only itself and a directory only its own subtree, leaving every path outside it untouched. Omit it to synchronize every configured base directory.
sync_statusPoll a running sync job
ParameterTypeDescription
jobId *stringIdentifier returned by sync_start.

Security checks

Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 2.5K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by pnpm-lock.yaml.
  • ✓No dynamic code executionScanned 69 source files and found no eval, dynamic Function or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

What the source scan found

Transport
stdiosrc/server/index.ts:8
Starts other programs
1 callsrc/rerank/index.ts:74
Outbound network calls
1 callsrc/embedder/sentence-transformers-config.ts:68
Writes or deletes files
No file writes or deletes
Lockfile
pnpm-lock.yaml

Pattern matches on the source text of 69 files: places to read, not proof of what the code does at run time.

Releases

v0.23.3Release: v0.23.3 · 11 Nov 2026`IGNORE_PATHS` directory patterns such as `node_modules/` now exclude everything under the directory. Before, files under a directory whose name starts with `.`, such as `node_modules/<pkg>/.github/`, were still indexed. Run `sync` once…
v0.23.2Release: v0.23.2 · 4 Nov 2026Text embedding no longer downloads or loads vision and audio encoders it never uses. With `onnx-community/embeddinggemma-2-ONNX`, the download drops from 482 MB to 197 MB and memory use after loading from 871 MB to 687 MB. Embeddings are…
v0.23.1Release: v0.23.1 · 22 Oct 2026Requires Node.js 22.23.4+ on 22.x, 24.22.1+ on 24.x, or 26.12.1 and later, which include the October 21 security fixes. Update the Node.js runtime used by your MCP client. Updating mcp-local-rag does not update Node.js itself.
v0.23.0Release: v0.23.0 · 21 Oct 2026Breaking Changes Node.js 22.20 or later is now required. The first time v0.23.0 opens an existing database, it removes the unused `metadata` column from stored chunks. Your indexed documents stay searchable, but v0.22.1 and earlier can no…
v0.22.1Release: v0.22.1 · 14 Oct 2026Fix the "no position-window token limit" warning with `onnx-community/embeddinggemma-2-ONNX`, and reuse saved embeddings with this model. Reuse saved embeddings with `onnx-community/embeddinggemma-300m-ONNX`.

README

The repository's README runs to about 2.5K words, fetched 2 days ago. The original in the repository is authoritative.

Read full README
Questions

About shinpr/mcp-local-rag

How do I install shinpr/mcp-local-rag?

In Claude Code, run claude mcp add local-rag -- npx -y mcp-local-rag. Other MCP clients take the command after "--" in their server configuration.

Is shinpr/mcp-local-rag safe to use with an AI agent?

Its trust score is 82 out of 100 (strong). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Conduid's scan of 69 source files found that it serves MCP over stdio, starts other programs (1 call) and makes outbound network calls (1 call). Its dependencies are pinned by pnpm-lock.yaml. It has no ConduID identity yet, so agent calls to it are not receipted.

Is shinpr/mcp-local-rag still maintained?

Yes — the latest release is v0.23.3 (11 Nov 2026), and the last commit was 19 days ago. The repository has 440 stars and 1 open issues.

What tools does shinpr/mcp-local-rag provide?

Conduid read 9 tools from the source: delete_file, ingest_data, ingest_file, list_files, query_documents, read_chunk_neighbors, status, sync_start and 1 more. 8 of them publish their parameters, listed under Tools above.

What license is shinpr/mcp-local-rag released under?

The repository declares the MIT license. That applies to the latest release, v0.23.3, as well.