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 who work with call graph, local first and papertrail and want it reachable from Claude, Cursor, VS Code, or another MCP client. The project is written in Rust.
VERIFIED ACTIVE
LAST COMMIT 2026-09-17 · ★ 20 · #51 OF 229 MAINTAINED CODING AGENT · VERIFIED 2026-09-18
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.2 · 2026-09-13
Release Notes · Added · (sync) publish each symbol anchor's scope so a rebind between twin impls follows (#1303) · (sync) relay contributors' logs and memories through the owner's sessions (#1293) · (sync) admit a…
v0.23.1 · 2026-09-10
Release Notes · Added · (sync) subscribe from a checked-in stream locator, pinned on first use (#1266) · (cli) expose tool catalog as native subcommands (#1273) · (memory) demote a synced memory whose anchored text…
v0.23.0 · 2026-08-17
Release Notes · Added · (sync) add sync pull so a store can fetch another account's memories (#1174) (#1181) · (sync) let a contributor read back the owner's memories (#1164) (#1169) · (sync) route a contributor's…
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
- repository
- github.com/cq27-dev/rag-rat
- website
- https://rag-rat.cq27.dev/
- category
- coding agent - ranked #51 of 229 actively-maintained coding agent servers as of 2026-09-18.
- release cadence
- 10+ releases in the last 90 days (latest 2026-09-13)
- registry
- io.github.cq27-dev/rag-rat (active, first published 2026-08-02 · 4 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-09-18, its last commit was 2026-09-17 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
Alternatives to RAG Rat
Maintained coding agent servers if RAG Rat isn't the fit.
- Serena A powerful toolkit for coding, providing semantic retrieval and editing capabilities. ★ 29,556 · 2026-09-17
- Desktop Commander MCP server for terminal commands, file operations, and process management ★ 9,633 · 2026-09-17
- Ouroboros Pins an acceptance spec; the verify command and expected output never enter the success contract. ★ 6,016 · 2026-09-15
- Socraticode MCP server for enterprise local codebase indexing, semantic search, and code dependency graphs. ★ 3,312 · 2026-09-17
- Omnara Deploy durable AI agents with Omnara, an open-source managed-agent platform. ★ 2,858 · 2026-09-18
- Docs Search and read Empryo's documentation. Read-only, no auth, no local access. ★ 1,246 · 2026-09-17
Pairs well with
Servers that cover what RAG Rat doesn't - only shown when the pairing reason fits the companion.
- Context7 → documentation companion documentation · ★ 62,152
- GitLab MCP → documentation companion documentation · ★ 1,984
- Xcode Build MCP → developer tools companion developer tools · ★ 6,397
- Sentry MCP → developer tools companion developer tools · ★ 855
- Server Filesystem → filesystem companion filesystem · ★ 39,038
- Pdf MCP → filesystem companion filesystem · ★ 135
More coding agent MCP servers · Rails AI Context · Aidex · Repomemory · Capsule · Misterdev
More Rust MCP servers · VelesDB Memory · Clipboard History MCP · Tokenectomy Razor (daffa2555) · Dakera MCP · Ovh API MCP · see all