Skip to content

codegraph

Local code knowledge graph that gives AI coding agents queryable project context

Permissive (OSI) · MIT AI-native

Listed by , founder & editor

83

Health

Thriving

Overview

Stars

78,577

Last commit

today

Nov 2026

Repository age

10 months

since Jan 2026

Latest version

v1.6.4

Nov 2026

Contributors

–

9 active in 90 days

Releases

25

last 12 months

Language

TypeScript

CodeGraph indexes a codebase into a local knowledge graph and exposes it to AI coding agents through an MCP server. Agents can query code structure instead of scanning files. The kernel is written in Rust, and the project is TypeScript.

You install the CLI with a shell script on macOS and Linux, a PowerShell script on Windows, or npm. Then codegraph install wires the MCP server into supported agents, including Claude Code, Cursor, Codex CLI, Gemini CLI, Windsurf and GitHub Copilot. Running codegraph init in a project builds the graph in a local .codegraph directory.

Auto-sync watches the project and updates the graph on each file change. The CLI bundles its own runtime, so Node.js is not required. It also documents framework-aware routes and mixed iOS and React Native bridging.

It is MIT licensed and has had 25 releases in the past year. A hosted product is announced separately. It is an alternative for developers who want code intelligence on their own machine.

Who it's for

Developers using AI coding agents on large repositories

A local graph gives the agent structured context and updates as files change.

Skip if: Your projects are small enough that the agent handles them without an index.

Teams working with several agents across tools

One installer configures many agents with the same MCP server.

Skip if: You want a hosted service with team features today.

The problem it solves

AI coding agents often read many files to understand how code connects. CodeGraph keeps a local graph of the project that agents can query directly.

Strengths

  • Auto-sync updates the graph on every file change
  • Installer configures many agents, including Claude Code and Cursor
  • Bundled runtime, no Node.js required
  • MIT license with 25 releases in the past year
  • Index stays in a local .codegraph directory

Trade-offs

  • Installer is a piped shell script from the internet
  • Indexes built by older versions need rebuilding after upgrade
  • The hosted platform is a separate, not-yet-open product
  • Project started in 2026, so its track record is short

Self-host codegraph

Self-hostable
No (desktop or local app)

Quick start

npm i -g @colbymchenry/codegraph

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is it free?

Yes. The tool is MIT licensed.

Do I need Node.js?

No. The installer bundles its own runtime, though npm also works.

Which agents does it support?

Claude Code, Cursor, Codex CLI, opencode, Gemini CLI, Windsurf and GitHub Copilot, among others.

Does it index my code automatically?

codegraph init builds the graph once. Auto-sync then keeps it current.

Similar tools in MCP servers and tooling

mcp-gateway

MCP servers and tooling

Docker CLI plugin that runs and secures MCP servers behind one gateway for AI clients

1.6k 297 4 days ago Active MIT

codebase-memory-mcp

MCP servers and tooling

Local MCP server that indexes your codebase into a knowledge graph for AI coding agents

49k 4.1k today Thriving MIT

MCPJungle

MCP servers and tooling

Self-hosted gateway that puts all your MCP servers behind one endpoint

1.6k 205 4 days ago Active MPL-2.0

mobile-mcp

MCP servers and tooling

MCP server that lets AI agents drive iOS and Android apps on devices and emulators

11k 967 today Thriving Apache-2.0

DesktopCommanderMCP

MCP servers and tooling

MCP server that lets AI chat clients run terminal commands and edit files on your computer

10k 1.3k 5 days ago Thriving MIT

OpenConnector

MCP servers and tooling

6.3k 622 today Thriving Unknown