Local MCP server that indexes repositories and provides provenance-aware code, history, graph, and memory queries.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by 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.
Explore the live VS Code Lens demo โ no installation required.
It surfaces clone classes, repo memories, and issue/decision context alongside the code; press
Ctrl+Alt+R to reveal clone overlays.
Every coding harness already has grep and file reads. rag-rat adds the layer they do not provide:
source-anchored rationale. It connects the code an agent is about to touch to its callers, callees,
tests, git/GitHub history, prior decisions, invariants, risks, and duplicate-code signals โ and
labels every result with confidence and coverage, so an agent can judge it instead of trusting it.
Invariant, Decision, Risk, โฆ) that survive
refactors and surface automatically during future queries โ the signal grep can't give you. They
are not assistant memory: they are versioned, local, source-anchored facts about this
repository that any future agent retrieves with evidence.Compiler confidence and ranks the load-bearing
symbols.For Claude Code, Codex, and opencode, install the plugin. It registers the MCP server, adds the
hooks, and installs a version-matched rag-rat binary on first run (the Claude Code and Codex
bundles also add the skills; on opencode add them with npx @rag-rat/skills):
After installing, approve the plugin so its tools and hooks run (opencode loads plugins without an approval step โ nothing to do there):
Claude Code asks before each rag-rat MCP tool the first time it runs โ choose "Yes, don't ask
again," or pre-allow them in ~/.claude/settings.json with
"permissions": { "allow": ["mcp__rag-rat__*"] }.
Codex shows a "Hooks need review" prompt on the first codex session started inside the
repo (the plugin ships grep-augmentation, clone-check, and session-digest hooks that run outside
the sandbox). Choose "Trust all and continue" to enable them. For unattended commands such as
codex review, also allow the plugin's MCP tools in ~/.codex/config.toml so the run cannot stall
on a per-tool approval prompt:
This trusts every current and future MCP tool exposed by the installed rag-rat plugin. Only enable it when you trust the plugin's source and installation origin, then restart Codex.
Then open the repository and ask:
Set up rag-rat in this repo.
The init-rag-rat skill scans the repo, explains the material choices, previews rag-rat.toml,
writes and indexes only after confirmation, and offers to set up the git hooks that keep the index
fresh. The MCP server starts dormant in an unconfigured repo; when setup finishes, reconnect it so it
restarts fully active against the new index.
Then put it to work โ the loop rag-rat is built for is in Try it.
Use this path for the standalone CLI, agents without plugin support, or building from source.
The prebuilt package needs no Rust toolchain and supports Apple Silicon macOS, glibc โฅ2.38 Linux (x86-64 and arm64), Windows x64, and Android/Termux arm64:
@rag-rat/bin fetches the full binary from the matching GitHub release. FastEmbed's ONNX Runtime is
statically linked.
To build from source instead:
The default source build needs glibc โฅ2.38 and is unavailable for Intel macOS and musl/Alpine. On those platforms, including Ubuntu 22.04, use the pure-Rust embedder:
--no-default-features alone produces a smaller hash-only build without real embeddings. SQLite is
bundled; see Platform support for toolchain details.
init scans the repo, guides language and embedding choices, writes rag-rat.toml, and builds the
initial index. Use rag-rat init --dry-run to preview without writing, or --yes for
non-interactive defaults. Configuration reference: docs/config.md.
Install the skills for Claude Code, Codex, Cursor, and 70+ other detected agents:
That installs using-rag-rat, dream-review, init-rag-rat, and
configure-rag-rat-dream. See skills/README.md for per-agent flags and
update, list, and remove.
The MCP server uses STDIO: the client launches rag-rat mcp from the repository so it discovers the
correct rag-rat.toml and repository scope in the consolidated machine-global store.
Or add the equivalent project configuration:
rag-rat init prints the registration command but does not register the server itself. Pass
rag-rat mcp --json if the client must parse JSON; tool text defaults to TOON. Full tool
schemas: docs/mcp-tools.md.
Claude Code asks once before each rag-rat MCP tool first runs. Choose "Yes, don't ask again," or
allow the tool namespace in ~/.claude/settings.json:
Do not pin a global server to one repository's config. A user-scoped server with
--config /some/repo/rag-rat.tomlserves that repository everywhere. Register MCP per project and let the process discover the config from its working directory.
Once the repo is indexed, the code graph, symbols, git history, semantic search, and clone
detection are ready โ these answer on the first query. Repo memories start empty: they accrue as
agents record findings with memory_create and then surface automatically in later answers.
(Tracker issue/PR rationale needs a rag-rat papertrail sync.)
Ask your MCP client:
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/cq27-dev-rag-rat)<a href="https://allmcps.com/mcp/cq27-dev-rag-rat"><img src="https://allmcps.com/api/badge/cq27-dev-rag-rat?style=directory" alt="Rag Rat on AllMCPs" /></a>