MCP servers

vitali87/code-graph-rag

The ultimate RAG for your monorepo. Query, understand, and edit multi-language codebases with the power of AI and knowledge graphs

Stars
5,392
+7 days
—
Forks
726
Language
Python
License
MIT
Last push
22 Nov 2026

Summary

Summary written by AI from the README; it may be imprecise.

This tool indexes multi-language codebases into a unified knowledge graph stored in an embedded database using Tree-sitter, compiler frontends, and optional runtime traces. It provides an interactive CLI and an MCP server that convert natural language queries into Cypher to analyze dependencies, find dead code, and perform AST-based code edits.

Use it when

  • Indexing a multi-language monorepo into a knowledge graph without running a dedicated database server
  • Enabling Claude Code to inspect codebase architecture and code relationships through an MCP server
  • Finding dead code and tracing function call graphs across large projects

Install

pip
uv tool install "code-graph-rag[treesitter-full,ast-grep,semantic]"
pip
pipx install "code-graph-rag[treesitter-full,ast-grep,semantic]"
pip
uv tool install "code-graph-rag[treesitter-full,ast-grep,semantic] @ git+https://github.com/vitali87/code-graph-rag@main"

Commands quoted from the repo's README. Read the README before running them.

Stars over 90 days

Collecting: 2 of 90 days so far. The chart appears after 7 days.

Type to search the reference, templates and lessons.