CodeGraphContext
MCP server and CLI that index local code into a graph database so AI assistants can query code relationships.
Updated
✨ Try AgentScout's free AI image generator →Good for: writing code, coding in the terminal, data analysis, connecting tools with MCP
Use cases
About CodeGraphContext
CodeGraphContext is listed in our coding category and is aimed at builders. MCP server and CLI that index local code into a graph database so AI assistants can query code relationships. Pricing, as the maker states it: Free and open source (MIT). Maturity: Active. We last checked the official link on 2026-12-01.
What is CodeGraphContext?
CodeGraphContext (CGC) turns a code repository into a queryable graph for AI agents. It parses code with Tree-sitter (and optional SCIP indexers) into a graph database of files, symbols, calls, inheritance and imports.
You can use it as a standalone CLI for code analysis, or connect it to an AI IDE as an MCP server so the assistant can answer questions like how a call chain connects across files. Typical uses are tracing call chains, mapping class hierarchies and module boundaries, and finding dead code, hotspots and unexpected dependencies. It installs with pip.
Sources: the official README and our directory listing, checked 2026-10-24. Official site: cgc.codes.
Who is CodeGraphContext for?
Developers who want their coding assistant to understand how a large codebase fits together.
CodeGraphContext at a glance
- Open source: Yes (MIT License)
- GitHub: CodeGraphContext/CodeGraphContext · 4,465 stars (as of Dec 2, 2026)
Key features
- Code graph of files, symbols and calls
- MCP server for AI IDEs
- Standalone analysis CLI
- Tree-sitter and optional SCIP indexing
- Dead code and dependency discovery
CodeGraphContext FAQ
What is CodeGraphContext?
CodeGraphContext (CGC) turns a code repository into a queryable graph for AI agents. It parses code with Tree-sitter (and optional SCIP indexers) into a graph database of files, symbols, calls, inheritance and imports.
Who is CodeGraphContext for?
Developers who want their coding assistant to understand how a large codebase fits together.
Is CodeGraphContext free?
CodeGraphContext's pricing, as the maker states it: Free and open source (MIT). Check the official site for current plans.
Is CodeGraphContext open source?
Yes. CodeGraphContext is released under the MIT License, according to its GitHub repository.
What are alternatives to CodeGraphContext?
Similar tools include Fallow, Container Use, AOCI-CODE, Talor, ripwire and Pydantic Deep Agents.
CodeGraphContext ratings and reviews
Be the first to rate CodeGraphContext: tap 1 to 5 stars below. A written review is optional.
CodeGraphContext alternatives
Other coding tools in our directory. See all coding tools →
Fallow
Codebase intelligence for TypeScript and JavaScript in a single Rust binary. It reports health, complexity hotspots, duplication, circular dependencies, architecture boundaries and unused code, and ships as a CLI, a GitHub Action, an LSP, an MCP server and a VS Code extension.
Container Use
Dagger's MCP server and CLI that gives each coding agent its own containerized environment so several can work in parallel safely.
AOCI-CODE
AOCI-CODE keeps a persistent, Git-versioned map of your whole codebase and database schema that your coding agent writes and a local MCP server governs. Agents in Codex, Claude Code, Cursor or OpenCode read the map once and know what each file is for, what it depends on and what must not break, instead of re-reading the repo on every task. It can index an existing codebase of up to about half a million lines and report how well it knows each area before taking over development.
Talor
Talor keeps servers, databases and credentials local and lets AI agents run Talor Commands instead of receiving your passwords.
ripwire
Zero-dependency CLI and MCP server that gives coding agents a ranked call graph, blast radius and tests-to-run before and after edits.
Pydantic Deep Agents
Self-hosted terminal AI assistant and Python framework on Pydantic AI, with tool calling, sandboxed execution, multi-agent teams and checkpoints.