RAG Rat MCP Server

What a repository knows about itself. rag-rat is a local repo-intelligence index and MCP server for coding agents. It keeps source files read-only, writes only its own SQLite database, and answers with provenance on every result - current source, the code graph, git/GitHub history, and durable, source-anchored repo memories that persist across sessions and agents.

People connecting coding agent tools to Claude, Cursor, VS Code, or another MCP client. The project is written in Rust.

VERIFIED ACTIVE

LAST COMMIT 2026-08-20 · ★ 16 · #43 OF 194 MAINTAINED CODING AGENT · VERIFIED 2026-08-25

MIT · Rust servers · how we verify → /methodology

01 · Install RAG Rat

before you install - you'll need

LENS_TOKEN

Environment variables documented in the project's README - it lists which are required and which have defaults.

Claude Code

claude mcp add cq27-dev-rag-rat -- npx -y @rag-rat/bin

Claude Desktop / Cursor / VS Code - add to config

{
  "mcpServers": {
    "cq27-dev-rag-rat": {
      "command": "npx",
      "args": [
        "-y",
        "@rag-rat/bin"
      ]
    }
  }
}

Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.

Using another client? Same JSON, different key

Claude Desktop · mcpServers

Cursor · mcpServers

VS Code · servers

Windsurf · mcpServers

Zed · context_servers

Cline · mcpServers

Roo Code · mcpServers

Continue · mcpServers

LibreChat · mcpServers

Gemini CLI · mcpServers

Codex CLI · mcp_servers

Full setup guides: every client.

02 · Evidence

Security posture

What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.

runs as local process (stdio) - runs on your machine with your user's permissions

license MIT - declared in the repository

npm package @rag-rat/bin - the @rag-rat scope differs from the repo owner (cq27-dev); confirm it's the project's official package

registry namespace io.github.cq27-dev is GitHub-verified and matches the repo owner

03 · What RAG Rat can do

Prose above is summarized from the project's README and registry record - no invented capabilities.

Latest releases

v0.23.0 · 2026-08-17

Release Notes · Added · (sync) sync devices through active MCP (#1114) · Fixed · (index) match target include/exclude patterns as globs (#1072) (#1118) · Install rag-rat 0.23.0 · Install prebuilt binaries via shell…

v0.22.0 · 2026-08-02

Release Notes · Added · (sync) account-keyed peer discovery (#1078) · (oracle) give each checkout its own live oracle sessions and worklist (#1054) · (languages) add Go language support (#994) · (lens) add…

v0.21.1 · 2026-07-24

Release Notes · Other · (index) return freed heap to the OS at heavy-pass terminals (#910) · Install rag-rat 0.21.1 · Install prebuilt binaries via shell script · sh · curl --proto '=https' --tlsv1.2 -LsSf | sh…

04 · Who maintains RAG Rat

rag-rat is maintained by cq27-dev. It's the only MCP server we track from this author; the repo dates to Jun 2026.

05 · Facts

category
coding agent - ranked #43 of 194 actively-maintained coding agent servers as of 2026-08-25.
release cadence
10+ releases in the last 90 days (latest 2026-08-17)
registry
io.github.cq27-dev/rag-rat (active, first published 2026-08-02 · 2 versions)
packages
npm:@rag-rat/bin

06 · RAG Rat FAQ

What is RAG Rat?

What a repository knows about itself. rag-rat is a local repo-intelligence index and MCP server for coding agents. It keeps source files read-only, writes only its own SQLite database, and answers with provenance on every result - current source, the code graph, git/GitHub history, and durable, source-anchored repo memories that persist across sessions and agents.

Is RAG Rat still maintained?

Yes - as of 2026-08-25, its last commit was 2026-08-20 and it shipped 10+ releases in the last 90 days. We re-verify nightly.

How do I install RAG Rat?

Run `npx -y @rag-rat/bin`. The README documents one environment variable (LENS_TOKEN) to set first. You can also paste the ready-made client config above.

Does RAG Rat run locally?

Yes - it's a stdio server: it runs on your machine (via npx) with your user's permissions. Your data stays local unless the server itself calls external APIs.

07 · Alternatives to RAG Rat

More coding agent MCP servers · Rails AI Context · Aidex · Repomemory · Capsule · Misterdev

More Rust MCP servers · VelesDB Memory · Clipboard History MCP · Dakera MCP · Ovh API MCP · Deed · see all