# shashankss1205/codegraphcontext

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/shashankss1205-codegraphcontext).**

3,748 stars · 731 forks · Python · MIT

## Links

- GitHub: https://github.com/Shashankss1205/CodeGraphContext
- Homepage: https://cgc.codes
- awesome-repositories: https://awesome-repositories.com/repository/shashankss1205-codegraphcontext.md

## Description

CodeGraphContext is a code graph indexer and visualization tool that analyzes source code to build graphs of functions, classes, and inheritance relationships. It functions as a Model Context Protocol server, providing a structured codebase index to AI assistants for context retrieval and natural language querying.

The project features an interactive web interface that uses force-directed layouts to visualize code dependencies and symbols. To accelerate the setup of large projects, it supports the import of pre-calculated knowledge bundles for popular repositories.

The system provides capabilities for automated code indexing, real-time file system synchronization, and static analysis. These tools enable call chain tracing, class hierarchy mapping, and the calculation of cyclomatic complexity to identify unused code.

## Tags

### Data & Databases

- [Code Knowledge Graphs](https://awesome-repositories.com/f/data-databases/knowledge-graph-indexing-engines/code-knowledge-graphs.md) — Analyzes source code to build a graph of functions, classes, and inheritance relationships for codebase navigation. ([source](https://cdn.jsdelivr.net/gh/shashankss1205/codegraphcontext@main/README.md))
- [Code Symbol Indices](https://awesome-repositories.com/f/data-databases/knowledge-graph-indexers/deterministic-symbol-indexing/code-symbol-indices.md) — Maps source code elements into a graph database to track relationships between functions, classes, and dependencies.
- [Code Relationship Mappers](https://awesome-repositories.com/f/data-databases/entity-relationships/code-relationship-mappers.md) — Provides call chain tracing and class hierarchy mapping to analyze interactions between different components of a codebase. ([source](https://cdn.jsdelivr.net/gh/shashankss1205/codegraphcontext@main/README.md))

### Artificial Intelligence & ML

- [Code Context Servers](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/integration-deployment/ai-agent-tooling/coding-agents/code-context-servers.md) — Implements a standardized server that exposes a live codebase index to AI coding agents via the Model Context Protocol. ([source](https://cdn.jsdelivr.net/gh/shashankss1205/codegraphcontext@main/README.md))
- [Codebase Dependency Mapping](https://awesome-repositories.com/f/artificial-intelligence-ml/knowledge-graphs/codebase-dependency-mapping.md) — Analyzes source code to create visual graphs of functions, classes, and dependencies.
- [Model Context Protocol Implementations](https://awesome-repositories.com/f/artificial-intelligence-ml/model-context-protocol-implementations.md) — Implements the Model Context Protocol to provide structured knowledge graphs of local files to AI models.
- [Model Context Protocol Servers](https://awesome-repositories.com/f/artificial-intelligence-ml/model-context-protocol-servers.md) — Implements an MCP server that provides a structured codebase index to AI assistants for context retrieval.

### Development Tools & Productivity

- [AI Coding Assistants](https://awesome-repositories.com/f/development-tools-productivity/ai-coding-assistants.md) — Connects local codebases to AI assistants to answer complex questions about project structure and logic.
- [Interactive Codebase Exploration](https://awesome-repositories.com/f/development-tools-productivity/interactive-codebase-exploration.md) — Provides an interactive web interface for exploring code dependencies and symbols through force-directed graph layouts.
- [Source Code Indexing](https://awesome-repositories.com/f/development-tools-productivity/source-code-indexing.md) — Builds a searchable graph database of source code symbols and inheritance relationships to accelerate project navigation.

### Graphics & Multimedia

- [Code Structure Visualizations](https://awesome-repositories.com/f/graphics-multimedia/code-structure-visualizations.md) — Provides interactive web graphs using force-directed layouts to visualize codebase symbols and dependencies. ([source](https://cdn.jsdelivr.net/gh/shashankss1205/codegraphcontext@main/README.md))

### Testing & Quality Assurance

- [Static Analysis AST Parsing](https://awesome-repositories.com/f/testing-quality-assurance/static-code-analysis/ast-extraction/static-analysis-ast-parsing.md) — Extracts abstract syntax trees across multiple languages to identify symbols and determine call-chain relationships.
- [Static Code Analysis Tools](https://awesome-repositories.com/f/testing-quality-assurance/code-quality-review/code-quality-tools/static-code-analysis-tools.md) — Calculates cyclomatic complexity and identifies unused code to improve project maintenance quality.
- [Static Code Analysis](https://awesome-repositories.com/f/testing-quality-assurance/static-code-analysis.md) — Measures cyclomatic complexity and identifies unused code to help perform maintenance and quality audits.

### Software Engineering & Architecture

- [Complexity Analysis](https://awesome-repositories.com/f/software-engineering-architecture/complexity-analysis.md) — Calculates cyclomatic complexity and identifies unused code to support maintenance and quality audits. ([source](https://cdn.jsdelivr.net/gh/shashankss1205/codegraphcontext@main/README.md))

### User Interface & Experience

- [Force-Directed Layouts](https://awesome-repositories.com/f/user-interface-experience/element-positioning/layout-engines/force-directed-layouts.md) — Uses physics-based simulations of attraction and repulsion to position nodes and edges in the interactive code visualization interface.

### Part of an Awesome List

- [Coding Agents and Orchestration](https://awesome-repositories.com/f/awesome-lists/ai/coding-agents-and-orchestration.md) — Indexes local code into a graph database for context.
