code-graph-context logo
code-graph-context
★ 17
vs
code-graph-rag logo
code-graph-rag
★ 5.3k

code-graph-context vs code-graph-rag

code-graph-context: Code Graph Context is an MCP server that builds a semantic graph of TypeScript codebases, enabling AI assistants like Claude to understand dependencies, perform impact analysis, and coordinate multi-file changes. It supports local or OpenAI embeddings, incremental parsing, and swarm coordination for parallel refactoring.; code-graph-rag: Code-Graph-RAG is an accurate Retrieval-Augmented Generation (RAG) system designed for multi-language codebases. It uses Tree-sitter to analyze code, build comprehensive knowledge graphs, and allows natural language querying of codebase structure and relationships. The system also includes advanced editing capabilities, enabling users to modify code directly through natural language prompts.

01

TL;DR

code-graph-context logo
code-graph-contextRAG / Knowledge Base · ★ 17

Understand codebase dependencies and perform refactoring risk analysis

code-graph-rag logo
code-graph-ragRAG / Knowledge Base · ★ 5.3k
When to choose:
  • 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.
When to skip:
  • 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.
02

Side-by-Side Comparison

Field
code-graph-context logocode-graph-context
code-graph-rag logocode-graph-rag
Category
RAG / Knowledge Base
RAG / Knowledge Base
Stars
★ 17
★ 5.3k
License
MIT
MIT
Install Command
npm install -g code-graph-context && code-graph-context init
git clone https://github.com/vitali87/code-graph-rag.git && cd code-graph-rag && uv sync --extra treesitter-full && cp .env.example .env && docker-compose up -d
Updated
1w ago
1d ago
Open Source
Yes
Yes
Tags
ai-code-analysis, claude-code, code-graph-rag
ai, ast, claude-code
03

Features

code-graph-context logocode-graph-context
01Multi-project support with complete isolation
02Semantic code search via vector embeddings
03Framework-aware parsing with custom schema support
04Weighted graph traversal for impact analysis
05Swarm coordination for parallel multi-agent tasks
code-graph-rag logocode-graph-rag
01Multi-Language Support
02Tree-sitter Parsing
03Knowledge Graph Storage
04Natural Language Querying
05Advanced File Editing
04

Use Cases

code-graph-context logocode-graph-context
↳Understand codebase dependencies and perform refactoring risk analysis
↳Find duplicate code, dead code, and semantic similarities
↳Coordinate multiple AI agents for parallel code changes
code-graph-rag logocode-graph-rag
↳Analyze and ingest multi-language codebases into a knowledge graph.
↳Query codebase structure and relationships using natural language.
↳Receive AI-powered optimization suggestions and perform surgical code edits.
FAQ

FAQ

What is the difference between code-graph-context and code-graph-rag?
Both code-graph-context and code-graph-rag are in the RAG / Knowledge Base category. code-graph-context has 17 stars, while code-graph-rag has 5.3k stars.
Which is better, code-graph-context or code-graph-rag?
The best choice depends on your use case. Choose code-graph-context if Understand codebase dependencies and perform refactoring risk analysis, and code-graph-rag if Analyze and ingest multi-language codebases into a knowledge graph..
Is code-graph-context free or open source?
Yes, code-graph-context is open source on GitHub (MIT).
Is code-graph-rag free or open source?
Yes, code-graph-rag is open source on GitHub (MIT).
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit
→

Related