MCP.Market

Local Rag MCP server

by shinpr·io.github.shinpr/mcp-local-rag·v0.23.1·405 stars

Easy-to-setup local RAG server with minimal configuration

A92/100grade A
What users say
No reviews yet
Be the first
Safety scan
A92/100

not scanned yet

Adoption
Established

405 stars7.2k downloads/wk

Reviews

Write one

Nobody has reviewed Local Rag yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Local Rag tools

No tool declarations could be read from the package source. They show once the server is installed.

Not scanned yet. New listings are scanned within a day or two of arriving.

How Local Rag compares

Against every graded AI and agents MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
92/100
higher than 90% of 4,460 AI and agents servers
GitHub stars
405
more than 95% of 2,711 AI and agents servers
Downloads a week
7,180
more than 95% of 1,538 AI and agents servers with a package

Release history: 12 versions in the registry since 2026-09-15, latest 2026-10-22, typically one every 3 days.

Install Local Rag in Claude Code, Cursor or VS Code

Runs npx -y mcp-local-rag on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add mcp-local-rag -- npx -y mcp-local-rag
Add to Cursor

What the publisher says

From the Local Rag repository's README, as published. We do not edit it. Read it on GitHub

MCP Local RAG

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

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

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

exact technical terms.

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

domain of your documents.

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

counts. Markdown code blocks stay intact.

  • Semantic chunking: Documents are split at topic boundaries instead of fixed character
  • 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 first use to download the npm package and embedding model
  • A directory containing the documents you want to search

Set BASE_DIR to that directory. It is also the security boundary for file operations. Replace /absolute/path/to/your/documents below with the directory's absolute path.

mcp-local-rag uses the standard MCP protocol over a local stdio server, so it works with AI coding tools and other MCP hosts that support local MCP servers.

Use one of the examples below, or register npx -y mcp-local-rag and set BASE_DIR using your client's MCP configuration format.

For Claude Code: Run this command:

claude mcp add local-rag --scope user --env BASE_DIR=/absolute/path/to/your/documents -- npx -y mcp-local-rag

For Codex: Add to ~/.codex/config.toml:

[mcp_servers.local-rag]
command = "npx"
args = ["-y", "mcp-local-rag"]

[mcp_servers.local-rag.env]
BASE_DIR = "/absolute/path/to/your/documents"

For OpenCode: Add to ~/.config/opencode/opencode.json (or opencode.jsonc):

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "local-rag": {
      "type": "local",
      "command": ["npx", "-y", "mcp-local-rag"],
      "environment": {
        "BASE_DIR": "/absolute/path/to/your/documents"
      }
    }
  }
}

For Cursor: Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "local-rag": {
      "command": "npx",
      "args": ["-y", "mcp-local-rag"],
      "env": {
        "BASE_DIR": "/absolute/path/to/your/documents"
      }
    }
  }
}

Restart the client, then ask it to build the index:

Sync all documents in the configured root and wait until it finishes.

The first sync downloads the default embedding model (about 90 MB) and may take 1–2 minutes before ingestion starts. Later runs use the local cache.

Once the sync completes:

What does the API documentation say about authentication?

CLI Quick Start

To use the CLI without an MCP client:

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Local Rag: common questions

Is Local Rag MCP server safe?
Yes, by our scan: it is graded A (92/100). Read the Local Rag safety report
How do I install Local Rag?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Local Rag need an API key?
No secret keys are declared. It reads 20 settings from the environment.
Is Local Rag maintained?
The last commit was 34 days ago (2026-10-01). The latest release is v0.23.1.
What can I use instead of Local Rag?
Servers from other publishers that do the same job: Agent-Native Chat MCP server, Butterbase AI MCP server and Guaardvark MCP server.
How does Local Rag compare with other AI and agents MCP servers?
safety score 92/100 (higher than 90% of 4,460 AI and agents servers); github stars 405 (more than 95% of 2,711 AI and agents servers); downloads a week 7,180 (more than 95% of 1,538 AI and agents servers with a package). Full comparison.

Alternatives to Local Rag

Same job from other publishers: the closest match first, then the best rated.

  • Agent-Native Chat
    Minimal chat-first app with durable threads, actions, and the app-agent loop
    A
  • Butterbase AI
    Butterbase MCP server — manage your backend: schemas, auth, functions, storage, RAG, deploys.
    A
  • Guaardvark
    Local AI studio on your GPU: images, video, music, voice, RAG. Needs the Guaardvark app installed.
    B
  • PDF
    Agentic RAG over one PDF or a whole folder: hybrid search, selective page reads, tables, OCR.
    A
  • DataSinking
    Full-text financial reports (US, China, Japan, Korea, Taiwan, UK) as clean Markdown for RAG agents.
    A

More from shinpr →