# CodeGraphContext/CodeGraphContext

An MCP server plus a CLI tool that indexes local code into a graph database to provide context to AI assistants.

Repository: https://github.com/CodeGraphContext/CodeGraphContext
Canonical: https://ross.abutalabs.com/products/codegraphcontext
Homepage: https://cgc.codes
Language: Python
License: MIT
License Family: permissive
Topics: hacktoberfest2025, social-winter-of-code
Last push: 2026-08-26T19:17:00+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 96, longevity 27
- inputs: {"age_days": 382, "days_push": 7, "days_rel": 25, "gap_med": 0.0, "n_releases_24m": 21}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4126, forks 823 (observed 2026-08-28T04:08:36.027473+00:00)

## What it is
CodeGraphContext (CGC) is an MCP server and CLI tool that indexes local codebases into a graph database, exposing code structure and relationships as queryable context for AI assistants. It bridges deep code graphs with LLM-based agents via the Model Context Protocol.

## Use cases
- give my AI coding assistant context about my codebase structure
- index a repository into a graph database for LLM queries
- let Claude or Cursor navigate call graphs and dependencies
- build a queryable code knowledge graph from local source code
- MCP server for code understanding and navigation
- analyze code relationships and dependencies with AI agents

## When to choose
- you use MCP-compatible AI assistants and want them to understand a large codebase
- you need structural code context (call graphs, dependencies) rather than plain text search
- you want a local, self-hosted code indexing tool with a CLI

## When to avoid
- you only need simple keyword or semantic code search without graph structure
- you don't run any MCP-compatible AI assistant
- you need hosted multi-repo code intelligence at organizational scale

## Facets
- artifact type: service
- maturity: active
- function: mcp, search-engine, parser, developer-tools, cli
- domain: developer-tools, large-language-models, parsers
- platform: python, cli, cross-platform
- tags: code-graph, graph-database, code-indexing, mcp-server, ai-context, static-analysis, ai-agents

## Member repositories
- CodeGraphContext/CodeGraphContext (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:36.027473+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:23:04.158107+00:00, confidence not recorded.
  - readme: https://github.com/CodeGraphContext/CodeGraphContext (fetched 2026-08-28T04:08:36.027473+00:00, sha 834f3da557be)
  - homepage: https://cgc.codes (fetched 2026-08-29T09:14:12.762526+00:00, sha e0be49ce2e86)
  - registry_pypi: https://pypi.org/pypi/codegraphcontext/json (fetched 2026-08-29T09:14:12.772543+00:00, sha 579ba92983c8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
