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
Extended access
Why this level
- Reads all project code and stores an index in .codegraph
- Edits MCP configuration of installed agents
Install
- Works in
Manual install
curl -fsSL https://raw.githubusercontent.com/colbymchenry/codegraph/main/install.sh | sh
codegraph install
codegraph initOpen 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 reviewExtended 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 signatureMCP
- 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.
Related
MCP serversCodeGraph (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
An MCP server that builds a code graph of functions, classes, calls and routes and answers the agent's structural queries locally
Local code structure graph: builds a repository map with tree-sitter and serves the assistant only the context a change actually touches over MCP
Code graph and project memory in one Rust program: the agent gets excerpts with file and line citations
Deep Graph MCP: a code graph of a repository for agents
Deep Graph MCP
An MCP server that gives an agent a repository code graph: search by meaning, symbol links and the places an edit would touch
Indexes a codebase into a knowledge graph and gives the agent call chains, change blast radius and code search over MCP
Comparison with similar tools
Entries that share the main search query, and how they differ.
| Entry | Official | Authentication | Repository stars | Main difference |
|---|---|---|---|---|
| CodeGraph (this entry) | no | not required | 75,798 | |
| Ix | no | 1,137 | ix turns a repository into a persistent graph of symbols | |
| codesight | no | not required | 1,421 | codesight maps a project in one run |
| Trail-code (formerly Graft) | no | 10,866 | a 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.