Atlas / MCP servers / shinpr / Local RAG

Local RAGSAFE

mcp/shinpr/local-rag-1

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

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
7 5r · 2w · 0d
Transport
stdio
License
MIT
Stars
405
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://github.com/shinpr/mcp-local-rag) [](https://www.npmjs.com/package/mcp-local-rag) [](https://opensource.org/licenses/MIT) [](https://registry.modelcontextprotocol.io/)

English | 简体中文 | Deutsch | Español | Português (Brasil) | Français

Search private documents from an MCP client or the terminal without sending them to an embedding API.

mcp-local-rag indexes PDF, DOCX, Markdown, and text files on your machine. Search combines semantic similarity with keyword matching, so queries can match both intent and exact technical terms such as API names, class names, and error codes.

Features

  • Runs locally: Document parsing, embeddings, storage, and search run on your machine.

After the initial model download, text ingestion and search work offline.

  • Hybrid search: Semantic retrieval finds related concepts, while keyword matching boosts

exact technical terms.

  • Configurable embeddings: Choose a Hugging Face embedding model that fits the language and

domain of your documents.

  • Semantic chunking: Documents are split at topic boundaries instead of fixed character

counts. Markdown code blocks stay intact.

  • MCP and CLI: Use the same index from an AI coding tool or directly from the terminal.

No API key, Docker, Python, or external database is required.

Quick Start

Requirements

  • Node.js 22 or later
  • Internet access on fi
Read from source at commit c7d0d3c39c80OBSERVED · 2026-10-02
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.

claude-code (npm)
claude mcp add mcp-local-rag -- npx -y [email protected]
03

Exposed tools (7)

5 read · 2 write · 0 destructive.

ToolRiskDescription
ingest_datareadIngest in-memory content as a string (use ingest_file for files on disk). The source identifier enables re-ingestion to update existing content. Returns { filePath, chunkCount, timestamp, fileTitle }.
ingest_filereadIngest a document file (PDF, DOCX, TXT, MD) into the vector database. Path must be absolute; re-ingesting the same path replaces its existing data. Returns { filePath, chunkCount, timestamp, fileTitle }.
list_filesreadList supported files (PDF, DOCX, TXT, MD) under the configured base directories and whether each is ingested. Returns { baseDirs, files, sources }; sources lists ingested items reported apart from the file scan, chiefly ingest_data content (web pages, clipboard, etc.).
query_documentsreadSearch ingested documents with hybrid keyword + semantic matching. Use the returned order as the ranking; score may disagree with it. Each has filePath, chunkIndex, text, fileTitle, score (lower is closer), and source (for ingest_data items).
statusreadGet index status: { documentCount, chunkCount, memoryUsage (MB), uptime (s), ftsIndexEnabled, searchMode }.
sync_startwriteReconcile the index with the files on disk: ingest new and changed files, leave unchanged files alone, and remove index entries for files that are gone. Each changed PDF is re-ingested with the visual profile (
sync_statuswriteGet the current or latest sync job record: { jobId, state (
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
declared (1 observation(s))
Shell
declared (1 observation(s))
Dependencies
not all pinned
Secrets in source
none-found

Findings (12)

LOWInventory / provenance · inv.binary · CWE-1104
tests/fixtures/sample-e2e.docx
sample-e2e.docx
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README
LOWFilesystem / path · fs.credential_store · CWE-22, CWE-59
src/__tests__/cli/options.test.ts:415
it('should reject ~/.ssh paths', () => {
Why it matters. touches a credential store
LOWFilesystem / path · fs.credential_store · CWE-22, CWE-59
src/__tests__/cli/options.test.ts:416
expect(validatePath('~/.ssh/keys', '--db-path')).toContain('sensitive system path')
Why it matters. touches a credential store
LOWFilesystem / path · fs.credential_store · CWE-22, CWE-59
src/__tests__/cli/options.test.ts:419
it('should reject ~/.gnupg paths', () => {
Why it matters. touches a credential store
LOWFilesystem / path · fs.credential_store · CWE-22, CWE-59
src/__tests__/cli/options.test.ts:420
expect(validatePath('~/.gnupg/data', '--cache-dir')).toContain('sensitive system path')
Why it matters. touches a credential store
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/__tests__/cli/cli-error-shim.ts:6
import { getCauseChain } from '../../utils/errors.js'
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/__tests__/cli/common.test.ts:28
const MOCKED_PATHS = ['../../vectordb/index.js', '../../embedder/index.js'] as const
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/__tests__/cli/common.test.ts:34
let createEmbedder: typeof import('../../cli/common.js').createEmbedder
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/__tests__/cli/common.test.ts:35
let createVectorStore: typeof import('../../cli/common.js').createVectorStore
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/__tests__/cli/common.test.ts:36
let formatCliError: typeof import('../../cli/common.js').formatCliError
LOWObfuscation / stealth · obf.base64_blob · CWE-506, CWE-94
src/server/__tests__/rag-server.protocol.integration.test.ts:91
'/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/wAALCAABAAEBAREA/8QAFAABAAAAAAAAAAAAAAAAAAAACf/EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gA
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@huggingface/transformers, @lancedb/lancedb, @modelcontextprotocol/sdk, jsdom, jszip, mammoth, mupdf, @types/jsdom
Why it matters. 17 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass.

Audited 2026-10-02 · audit v0.4.1 · source sha c7d0d3c39c80full audit observations/trust-audit/mcp-server/shinpr__local-rag-1.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-02c7d0d3c39c80SAFEB89first audit
06

Questions

What is the Local RAG MCP server?

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

What tools does Local RAG expose?

7 in total: 5 read-only, 2 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is Local RAG safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.

What credentials does Local RAG need?

No credential environment variables were found in its source, so it appears to need none.

How does Local RAG run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as mcp-local-rag at 0.20.0.

How current is this page?

The grade is for one exact copy of the source (c7d0d3c39c80), read on 2026-10-02. The repository is watched and re-audited when it changes.

Advertisement