CodeGraph

•

Transforms a codebase into a machine-readable knowledge graph, enabling AI coding agents to reason about dependencies, impact, and system architecture.

CodeGraph is a powerful tool that scans your repository, intelligently parses source files using Tree-sitter, and constructs a detailed knowledge graph of your codebase. This graph-based representation provides structured architectural insights, which are then exposed via the Model Context Protocol (MCP). By offering advanced query capabilities such as tracing dependencies, performing impact analysis, and identifying shortest paths between code elements, CodeGraph empowers AI coding agents to understand and interact with your code on a deeper, more informed level, significantly enhancing their reasoning abilities for development tasks.

Características Principales

010 GitHub stars
02Offers flexible deployment options including Docker, Railway, and Fly.io
03Provides structured architectural queries (e.g., search, dependency tracing, impact analysis)
04Generates a machine-readable knowledge graph of codebases
05Supports multiple transport modes for the MCP server (stdio, SSE, streamable-http)
06Parses source files using Tree-sitter for TypeScript and Java

Casos de Uso

01Enabling AI coding agents to understand code dependencies and architecture
02Performing comprehensive impact analysis before making code changes
03Querying codebase structure to identify relationships between components