CodeGraphContext

CodeGraphContext

FreeChina DirectOpen Source
0 views

MIT-licensed MCP server and CLI that indexes local repos into a graph database, giving AI assistants symbol-level call-chain and dependency context.

Visit Website
💻Coding & DevelopmentFreeOpen SourceAPI AvailableFor Developers
github.com
CodeGraphContext preview

CodeGraphContext Quick Specifications & Verdict

CodeGraphContext is a free Coding & Development tool listed and verified on Aifyles (github.com). MIT-licensed MCP server and CLI that indexes local repos into a graph database, giving AI assistants symbol-level call-chain and dependency context. It supports direct access from mainland China without a proxy and is distributed as an open-source project.

AttributeVerified Specification
CategoryCoding & Development
Pricing ModelFree
China Direct AccessSupported (Direct)
Open SourceYes (Open Source)
Supported PlatformsCLI / REST API
Last Verified2026-12-05

In-Depth Review & Guide

Key Capabilities & Highlights

  • Parses a repository with Tree-sitter (optional SCIP indexers for deeper cross-file resolution) and materializes files, symbols, calls, inheritance and imports into a graph database — shifting questions from "where is this defined?" to "who calls this, and what breaks if I change it?".
  • Two modes from one install: a standalone CLI for offline graph analysis and visualization, or a stdio MCP server registered inside Claude Code, Cursor, Cline or Continue. The exposed tools cover symbol lookup, relationship analysis (callers/callees, inheritance chains), complexity and dead-code style queries, plus raw Cypher execution so an agent can draft its own architectural questions.
  • Python codebase, MIT license, ~4.4k GitHub stars, docs at cgc.codes and READMEs in Chinese, Japanese, Korean, Ukrainian, Russian, Hindi and Tamil. It is a young project (still pre-1.0), so expect CLI flags and schema names to move.

Pricing & Access

Free and fully open source — no seats, no token billing, no hosted tier. The only cost is local CPU, RAM and disk. Indexing and querying happen entirely on your machine, so proprietary code never leaves the intranet. Developers in mainland China can pip install codegraphcontext and clone from GitHub without a proxy; the only network dependency is the model behind your IDE assistant, which can be pointed at DeepSeek/Qwen OpenAI-compatible endpoints or a relay gateway if Claude/GPT access is restricted.

Best Use Cases

  • Onboarding onto a large legacy monorepo: trace an endpoint down through services, mappers and helpers in one query instead of a dozen greps.
  • Refactor impact analysis: enumerate callers and subclasses before renaming or deleting a function, and surface dead code.
  • Give coding agents structural awareness across packages so they stop re-implementing helpers that already exist three directories away.

Pros, Cons & Alternatives

Pros: symbol-level precision that chunk-based RAG and grep cannot match, fully offline, model-agnostic, and the graph is queryable directly. Cons: requires an explicit indexing step and a configured graph backend per the Database Options documentation; the first index of a very large repository takes noticeable time, and the graph ages until you re-index. Alternatives: Sourcegraph Code Search/Cody for hosted cross-repo search with AI answers, Serena for lightweight MCP symbol retrieval without a database, and GitMCP for zero-setup remote repository context.

Similar AI Tools to CodeGraphContext

Copyright © 2026 Aifyles
All rights reserved

Subscribe to Newsletter

Get the latest updates and news directly in your inbox.