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 mcp add local-rag -- npx -y mcp-local-ragnpx -y mcp-local-raggit clone https://github.com/shinpr/mcp-local-ragTools (9)
delete_fileDelete an indexed file or an `ingest_data` item| Parameter | Type | Description |
|---|---|---|
| filePath | string | Absolute path to the file (for ingest_file). Example: "/Users/user/documents/manual.pdf" |
| source | string | Source 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| Parameter | Type | Description |
|---|---|---|
| content * | string | The content to ingest (text, HTML, or Markdown) |
| metadata * | object |
ingest_fileIngest or replace one file| Parameter | Type | Description |
|---|---|---|
| filePath * | string | Absolute path to the file to ingest. Example: "/Users/user/documents/manual.pdf" |
| visual | boolean | Run VLM captioning on figure pages (PDF only; default false). |
| visualQuality | string | VLM 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| Parameter | Type | Description |
|---|---|---|
| scope | any | Optional 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| Parameter | Type | Description |
|---|---|---|
| limit | number | Max results (default 10, range ${MIN_QUERY_LIMIT}-${MAX_QUERY_LIMIT}). Lower favors precision, higher recall. |
| query * | string | Search query. Preserve specific user terms (for keyword match); add context when the query is vague (for semantic match). |
| scope | any | Optional 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| Parameter | Type | Description |
|---|---|---|
| after | number | Number of chunks to retrieve after the target (0–${MAX_NEIGHBOR_COUNT}, default 2). |
| before | number | Number of chunks to retrieve before the target (0–${MAX_NEIGHBOR_COUNT}, default 2). |
| chunkIndex * | number | Zero-based target chunk index (non-negative integer). |
| filePath | string | Absolute path to the file (for ingest_file documents). Provide exactly one of filePath or source. Example: "/Users/user/documents/manual.pdf". |
| source | string | Source 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 statussync_startReconcile the index with all configured roots or one path| Parameter | Type | Description |
|---|---|---|
| path | string | Optional 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| Parameter | Type | Description |
|---|---|---|
| jobId * | string | Identifier 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
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