CodeGraphContext/CodeGraphContext
An MCP server plus a CLI tool that indexes local code into a graph database to provide context to AI assistants.
What it solves
CodeGraphContext solves the problem of limited code understanding in AI assistants and manual code review. While standard text search (like grep) or basic AI retrieval can find keywords, they often miss the structural relationships—such as call chains, class hierarchies, and import dependencies—that define how a codebase actually functions. This tool bridges that gap by turning your repository into a queryable knowledge graph.
How it works
It parses your source code using tree-sitter (and optionally SCIP indexers for higher precision) to map out files, symbols, and their relationships. This data is stored in a local graph database (such as KuzuDB or FalkorDB). You can interact with this graph in two ways: via a command-line interface (CLI) for direct analysis, or as an MCP server that provides AI assistants with deep, structural context about your project.
Who it’s for
It is designed for developers who need to perform repository-wide reasoning, trace complex call chains, or identify dead code and hotspots. It is also for users of AI-powered IDEs who want to provide their AI agents with a structural map of their code rather than just raw text chunks.
Highlights
- Supports 23 programming languages, including Python, JavaScript, Rust, Go, and C++.
- Functions as both a standalone CLI toolkit and an MCP server for AI integration.
- Offers live file watching to update the code graph automatically as you make changes.
- Includes built-in analysis tools for finding dead code, complex functions, and call hierarchies.
- Provides flexible database backends, including zero-config embedded options for local development.
Related
- Project
- Project
- Project
- Project