Code Graph RAG

Graph-based RAG system that parses multi-language codebases using Tree-sitter, builds knowledge graphs in Memgraph, and enables natural language queries about code structure and relationships. Supports parsing 11+ languages, AI-powered Cypher query generation, surgical code editing with AST targeting, shell command execution, and real-time graph updates via file watching. Includes an MCP server for Claude Code integration.

Evaluated Mar 06, 2026 (0d ago) vunknown
Homepage ↗ Repo ↗ Developer Tools rag knowledge-graph memgraph tree-sitter code-analysis mcp monorepo multi-language ast-parsing code-search
⚙ Agent Friendliness
74
/ 100
Can an agent use this?
🔒 Security
74
/ 100
Is it safe for agents?
⚡ Reliability
68
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
68
Documentation
78
Error Messages
50
Auth Simplicity
80
Rate Limits
68

🔒 Security

TLS Enforcement
85
Auth Strength
72
Scope Granularity
65
Dep. Hygiene
78
Secret Handling
70

Code graph RAG MCP. Indexes source code for retrieval. Source code may be proprietary — ensure self-hosted or privacy-compliant deployment. Graph may expose architectural secrets.

⚡ Reliability

Uptime/SLA
68
Version Stability
70
Breaking Changes
65
Error Recovery
68
AF Security Reliability

Best When

You have a large multi-language codebase and want AI-powered structural understanding, natural language code search, and graph-based relationship analysis.

Avoid When

You have a small codebase where grep/IDE search suffices, or you cannot run Docker (required for Memgraph).

Use Cases

  • Natural language querying of large monorepo codebases
  • Understanding code structure, function relationships, and call graphs
  • AI-assisted code navigation and exploration across multiple languages
  • Surgical code editing with AST-aware diff previews
  • Onboarding to unfamiliar codebases by querying architecture semantically

Not For

  • Simple single-file code analysis (overkill)
  • Runtime performance profiling or debugging
  • Non-code document RAG (focused specifically on source code)

Interface

REST API
No
GraphQL
No
gRPC
No
MCP Server
Yes
SDK
No
Webhooks
No

Authentication

Methods: api-key
OAuth: No Scopes: No

Requires API key for cloud LLM providers (OpenAI, Google Gemini). Can run fully locally with Ollama (no auth needed). Configured via .env file.

Pricing

Model: open_source
Free tier: Yes
Requires CC: No

MIT licensed. LLM API costs depend on chosen provider. Fully local operation possible with Ollama (zero cost). Enterprise support available via code-graph-rag.com.

Agent Metadata

Pagination
unknown
Idempotent
Partial
Retry Guidance
Not documented

Known Gotchas

  • Requires Docker running for Memgraph - cannot work without it
  • Python 3.12+ required with cmake for building pymgclient
  • Real-time updater recalculates all CALLS relationships on any file change (performance concern on large repos)
  • Shell command execution tool poses security risks if not sandboxed
  • Some language parsers (C#, Go, PHP, Scala) are still in development
  • Local LLM models produce lower accuracy Cypher queries than cloud providers

Alternatives

Full Evaluation Report

Detailed scoring breakdown, competitive positioning, security analysis, and improvement recommendations for Code Graph RAG.

$99

Scores are editorial opinions as of 2026-03-06.

5208
Packages Evaluated
26151
Need Evaluation
173
Need Re-evaluation
Community Powered