Feedback

Local RAG MCP Server

@shinpr Claim

Basic information

Runtime
TypeScript
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
shinpr
Submitted by
Community
Quality
25
Stars
151

About Local RAG MCP Server

Local RAG enables semantic document search using retrieval augmented generation (RAG) without external API calls.

Local RAG is a MCP server in the Ai Ml category listed in the AddMCP.net directory, published by shinpr. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 151 GitHub stars. Source code is hosted on github.com. Related topics: ai-ml, community, developer-tools, knowledge, local.

Setup

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

Local RAG MCP Server config

Add this server to your MCP-compatible client using the configuration below.

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

Local RAG MCP Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Local RAG?

Local Rag is a persistent project memory tool for AI coding agents. It provides semantic code search, cross-session conversation memory, auto-generated project wikis, and dependency graph analysis—all running fully locally using SQLite and in-process embeddings.

How to use Local RAG?

Install with bunx mimirs init --ide <ide> (e.g., claude, cursor, windsurf, copilot, jetbrains). Ensure SQLite with extension support is installed (brew install sqlite on macOS). No API keys, cloud, or Docker required—just Bun and SQLite.

Key features of Local RAG

  • Hybrid vector + BM25 search boosted by dependency graph centrality
  • Cross-session conversation indexing and checkpoints
  • Auto-generated structured markdown wiki with Mermaid diagrams
  • Annotations attached to files or symbols surfacing in results
  • Dependency graph and reverse-dependency lookup for blast radius
  • Local analytics logging zero-result and low-relevance queries

Use cases of Local RAG

  • Quickly find code by meaning instead of filename or keyword search
  • Recover context from past sessions—discussions, decisions, and blockers
  • Understand codebase structure and impact before refactoring
  • Expose documentation gaps through query analytics
  • Mark milestones and direction changes with searchable checkpoints

Frequently asked questions

1 What does Local Rag do that alternatives don’t?

It combines AST-aware chunking (24 languages), local embeddings, cross-session memory, and checkpoints—all in one local tool with no API keys. The table in the README shows it reduces token cost from ~380K to ~91K per prompt with 93–98% recall.

2 Where does my data live?

All data is stored in a .mimirs/ directory inside your project. Nothing leaves your machine—the tool is fully local and privacy-preserving.

3 What languages and file formats does it support?

AST-aware chunking covers 24 languages via tree-sitter (TypeScript, Python, Go, Rust, Java, C, C++, C#, Ruby, PHP, Scala, Kotlin, Lua, Zig, Elixir, Haskell, OCaml, Dart, Bash/Zsh, TOML, YAML, HTML, CSS/SCSS/LESS). Many other formats fall back to paragraph splitting.

4 Does Local Rag require an embedding API or cloud service?

No. Embeddings are computed in-process using Transformers.js + ONNX with the all-MiniLM-L6-v2 model. The vector store is sqlite-vec—a single .db file.

5 What transport and authentication does it use?

Local Rag uses stdio transport via the MCP SDK. There is no network service; authentication is not required because everything runs locally.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬