code-graph-rag
Code-Graph-RAG is a graph-based retrieval-augmented generation system for codebases. It analyses multi-language code with Tree-sitter, builds a knowledge graph of the structure, stores it in Memgraph and lets you query and edit the codebase in natural language. The README's news highlights an MCP server integration with Claude Code and, from October 2025, semantic code search with UniXcoder embeddings, so you can find functions by what they do (for example error handling or authentication code) instead of by name.
A language table lists fully supported languages such as C++, Java, JavaScript, Lua and Python, with details like templates and C++20 modules for C++ or type inference for Python. Natural-language questions are turned into Cypher queries by a model of your choice: Google Gemini in the cloud, local models through Ollama, or OpenAI models. Prerequisites are Python 3.12+, Docker and Docker Compose for Memgraph, cmake (to build the pymgclient dependency), ripgrep and the uv package manager. The code is MIT licensed.
Features
Why choose it
Trade-offs
Maintenance check
- Last commit
- 2026-10-21
- Commits, last 90 days
- 100+
- Releases, last 90 days
- 18
- Latest release
- v0.2.10 (2026-10-18)
- Open issues
- 543
- Recent issues with at least one comment
- 0/4
Oldest week on the left; the latest four weeks are orange. Source: GitHub commit activity.
Status rule: archived on GitHub = Archived; last commit within 90 days = Active; 91 to 365 days = Slowing; older = Stale. All figures come from the GitHub API on the date shown.
Who it fits
- You want to parse a multi-language monorepo with Tree-sitter into a Memgraph knowledge graph and query or edit it via natural language or Claude Code MCP.
- You want semantic code search using UniXcoder embeddings paired with Cypher graph queries.
- You want RAG over PDFs, Word files, and slides rather than source code repositories; use RAGFlow or MaxKB.
- You want a zero-dependency code context MCP server without running Docker and Memgraph; jCodeMunch or Context7 are much lighter.
How it differs
code-graph-rag builds a full graph database in Memgraph (via Docker) and translates questions into Cypher queries. jCodeMunch indexes symbols locally with Tree-sitter without requiring a graph database container.
Compatibility
Quick start
Use cases
Alternatives
Featured in these lists
Comments
No comments yet. Be the first!