Codegraph (cgh) creates a detailed local code graph of your repository, mapping files, functions, classes, Terraform resources, and Markdown documentation into an embedded Kuzu graph database and SQLite FTS5 index. It then exposes this intelligence as an MCP server, allowing AI coding agents like Claude Code, Cursor, Codex, and Gemini to perform precise symbol lookups and context queries. This approach drastically reduces token consumption for navigation tasks, delivering significant cost savings and improved AI interaction efficiency by providing structured, on-demand code knowledge.
主な機能
01Exposes indexed data as an MCP server for seamless integration with AI coding agents.
02Offers a CLI for initialization, indexing, serving, and monitoring (stats, logs, call history).
03Parses and indexes source code (Python, TypeScript, Terraform, Markdown, Vue) into a graph database.
04Includes full-text search (BM25 FTS) for comprehensive code and documentation queries.
05Provides symbol-level lookup, call graph analysis, documentation outlining, and graph visualization.
060 GitHub stars
ユースケース
01Enable AI coding agents to perform precise symbol lookups and context queries within a codebase.
02Reduce AI model token usage by 60-90% for typical code navigation and understanding tasks.
03Provide rich, structured context to AI agents for complex coding assignments like bug fixes or feature development.