CodeGraph MCP

Local code graph for agents: an MCP server returns entry points, symbol links and change impact in one call

  • 75,798 ★ on the repository
  • Last commit
  • MIT
MCP server

Extended access

Why this level

  • Reads all project code and stores an index in .codegraph
  • Edits MCP configuration of installed agents
All reasons and checks

colbymchenry/codegraph

Install

Manual install

curl -fsSL https://raw.githubusercontent.com/colbymchenry/codegraph/main/install.sh | sh
codegraph install
codegraph init

Open a new terminal after installing the CLI. On Windows: irm https://raw.githubusercontent.com/colbymchenry/codegraph/main/install.ps1 | iex.

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • Reads all project code and stores an index in .codegraph
  • Edits MCP configuration of installed agents

This is third-party code. Review the repository files before installing.

What it does

CodeGraph indexes a project into a SQLite graph of symbols, calls, imports and web framework routes across dozens of languages, from TypeScript and Python to Swift, Kotlin and COBOL. Through its MCP server the agent gets relevant code snippets and related symbols in one request instead of reading files step by step, searches a full-text index and checks what an edit will affect. The index stays fresh via file system events. The installer wires the server into Claude Code, Cursor, Codex, OpenCode, Gemini CLI, Kiro and GitHub Copilot, and no data leaves the machine.

Who it is for. For developers using agents in large repositories who want fewer tool calls and tokens.

Good fit when

  • The agent spends long searching for where a function lives and who calls it
  • You need the impact radius before a refactor
  • The project is mixed, for example iOS with React Native

Not a fit when

  • A small project with a few files
  • The agent does not support MCP

Example request

Show which parts of the code are affected if I change the createOrder signature

MCP

Transport
stdio
Authentication
not required

Limitations

Each project needs its own index via codegraph init. Only one index writer is allowed per project; extra clients should go through the shared daemon. The graph is static and does not replace running tests.

How to disable. Run codegraph uninstall to remove MCP config from every agent and the CLI itself. Remove a project index with codegraph uninit.

FAQ

Are API keys required?

No, per the README everything runs locally on SQLite with no external services.

Do I need to sync manually?

No, a file watcher updates the graph after changes automatically.

Discussion

No questions or reviews yet.

CodeGraph (Rust)

codegraph-rust

A Rust code graph for agents: four MCP tools show what an edit will touch, how the architecture fits together and where the fragile spots are

MCP serverExtended access908Repository stars

An MCP server that builds a code graph of functions, classes, calls and routes and answers the agent's structural queries locally

MCP serverExtended access47.7KRepository stars

Local code structure graph: builds a repository map with tree-sitter and serves the assistant only the context a change actually touches over MCP

MCP serverExtended access32.5KRepository stars
Editors’ pick

Indexes a codebase into a knowledge graph and gives the agent call chains, change blast radius and code search over MCP

MCP serverExtended access48.1KRepository stars

Comparison with similar tools

Entries that share the main search query, and how they differ.

EntryOfficialAuthenticationRepository starsMain difference
CodeGraph (this entry)nonot required75,798
Ixno1,137ix turns a repository into a persistent graph of symbols
codesightnonot required1,421codesight maps a project in one run
Trail-code (formerly Graft)no10,866a CLI that builds a map of your repo's code and keeps team decisions

README in short

The README covers a three-step setup: the CLI via script or npm, codegraph install to wire agents, and codegraph init per project. Features listed: a Rust core, full-text search, impact analysis, auto-sync, routes for 17 frameworks and bridges between Swift, Objective-C and React Native. It also covers uninstalling and common MCP connection issues. MIT licensed.

README badge

Report a problem

Foxx AICodeGraph
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.