Domain Rating by Ahrefs7
Description
Code-Graph-RAG is an AI-powered codebase analysis tool that builds knowledge graphs from multi-language codebases. It uses Tree-sitter parsing to read code in 14 languages, and it stores functions, classes, modules, imports and call relationships in Memgraph, so you can query the structure of a monorepo. You can ask questions in plain English, and the tool translates them into Cypher graph queries. It can edit code by targeting a function through its AST, with visual diff previews, and it can optimize code against language-specific practices through an approval workflow. Structural search and replace uses ast-grep to match and rewrite code by its structure rather than by text. Data-flow tracing follows values from sources through assignments, calls and returns to I/O sinks. Dead-code detection walks call and reference edges from entry points to find unreachable functions, with a failure mode that suits CI. The tool works as an MCP server with Claude Code and exposes 15 tools for indexing, querying, editing and searching from your IDE. The site shows an install with uv tool install, a daemon started with cgr daemon up, and the claude mcp add command. The core is free and open source, and the site offers enterprise support, consulting and custom development.…
Highlights
- Knowledge graphs across 14 languages
- Ask questions in plain English
- AST-based edits with visual diff previews
- Data-flow tracing and dead-code detection
- MCP server with 15 tools for Claude Code
Ratings & Reviews
No ratings yet
Be the first to rate Code-Graph-RAG.
People also visit

repowise-dev/repowise
Codebase intelligence: indexes a repo into a dependency graph, git history
Code-Graph-RAG FAQ
What does Code-Graph-RAG do?
It builds a knowledge graph of your codebase so you can query its structure, find dependencies and edit code with AI help.
How do I install it?
The site shows uv tool install with the code-graph-rag package, then cgr daemon up to start Memgraph and Qdrant.
How do I connect it to Claude Code?
The site shows the claude mcp add code-graph-rag command. The MCP server provides 15 tools.
Which languages does it parse?
14 languages, using Tree-sitter parsing.
Can it change my code?
Yes. It supports AST-based function replacement with visual diff previews, and optimization with an approval workflow.
Is it free?
The core is free and open source. Enterprise support, consulting and custom development are offered separately.
What are the best Code-Graph-RAG alternatives?
Popular alternatives to Code-Graph-RAG include Codegraph Rust, GraphMind and SocratiCode Cloud. See all Code-Graph-RAG alternatives












