# CodeGraphContext

> Index local code into a graph database to give AI assistants and developers repository-wide context

Source: https://talira.ai/catalog/codegraphcontext-35d3ccb4
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: MCP server, Command-line tool, Library
- Categories: [developer tools / ai coding / context](https://talira.ai/categories/developer-tools/ai-coding/context), [ai / mcp / servers](https://talira.ai/categories/ai/mcp/servers), [developer tools / cli / code analysis](https://talira.ai/categories/developer-tools/cli/code-analysis)
- Platforms: macos, linux, windows, docker[^2]
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^2]
- MCP server: yes[^2]
- Supports: [MCP](https://talira.ai/standards/mcp.md)[^2]
- Backed by: [CodeGraphContext](https://talira.ai/orgs/codegraphcontext.md)

CodeGraphContext (CGC) is an MCP server and CLI that parses a repository with tree-sitter (and optional SCIP indexers) into a graph of files, symbols, calls, inheritance and imports, stored in a graph database. AI assistants query it over MCP for callers, callees, class hierarchies and call chains, and developers use the same queries from the CLI to trace dependencies, find dead code and generate interactive HTML graph visualizations. It runs locally on an embedded database (FalkorDB Lite, KuzuDB or LadybugDB) or on Neo4j, watches files to keep the graph current, and can load pre-indexed bundles of popular repositories. Python. MIT.

## Links

- Website: https://cgc.codes/
- GitHub: https://github.com/CodeGraphContext/CodeGraphContext
- Docs: https://codegraphcontext.github.io/

## Problems it solves

- give my AI coding assistant an understanding of how functions and classes in my repo connect
- find every caller of a function and the full call chain across files
- find dead code and unexpected dependencies in a codebase
- visualize my code's call graph and class hierarchy interactively
- a code knowledge graph stored in Neo4j that I can query

## Features

- indexes files, symbols, calls, inheritance and imports into a graph
- callers, callees, class hierarchies and call chain queries
- dead code analysis
- interactive HTML graph visualizations
- live file watching to update the graph
- pre-indexed .cgc bundles of popular repositories
- optional SCIP indexing
- graph backends: FalkorDB Lite, KuzuDB, LadybugDB, FalkorDB, Nornic DB or Neo4j
- MCP server and CLI

## Capabilities

- Has a command line tool: plan not known
- Has an MCP server: plan not known

## Trust

Overall: 0.38 out of 1.
Signals: backing 0.30, extensibility 0.40.

- has a company behind it
- has an MCP server for agents

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [codebase-memory-mcp](https://talira.ai/catalog/codebase-memory-mcp-bmyghda5.md): Local code intelligence for AI agents: a persistent knowledge graph of your code over MCP

## Sources

[^1]: https://github.com/CodeGraphContext/CodeGraphContext/blob/main/LICENSE (checked 22 Nov 2026)
[^2]: https://github.com/CodeGraphContext/CodeGraphContext#readme (checked 22 Nov 2026)
