CodeGraphContext

Active
GitHub Python MIT

Description

CodeGraphContext is an MCP server that indexes local codebases into a graph database, providing structural context to AI coding assistants for precise code understanding and navigation.

Key Features

  • MCP server and CLI that indexes code repos into a queryable graph database
  • Supports parsing and analysis for 22 programming languages
  • Query callers, callees, class hierarchies, and call chains
  • Multiple graph DB backends: FalkorDB, KuzuDB, Neo4j, and more
  • Live file watching with automatic graph updates
  • Pre-indexed .cgc bundles for instant loading of popular repos

Use Cases

πŸ’‘ Providing deep code context for AI coding assistants
πŸ’‘ Structure analysis and navigation of large codebases
πŸ’‘ Code dependency and call chain visualization
πŸ’‘ Automated code review and impact analysis
πŸ’‘ Querying codebase structure via natural language

Quick Start

Install via pip install codegraphcontext, run codegraphcontext init for interactive setup, codegraphcontext index to index your code, then connect via MCP server to your AI IDE or query the code graph directly with the CLI.

Related Projects