
code-graph
Local dependency graph that shows agents which callers, routes and tables a change touches
- Platforms
- CLI, Linux, macOS
- Runs
- Locally
- Version
- 0.23.14
- Listing updated
- today
Similar MCP servers
About code-graph
code-graph is an MCP server for developer tools. It runs locally on your machine and is started by your AI client.
Before an edit, ask what reaches a table, a connection, a config key or a method, and follow each hop as a file and line. The graph is deterministic, so re-indexing the same tree gives the same answer, and the database stays on your machine with no hosted index.
Routes, calls, data access and platform boundaries sit in one index that can span several linked repositories. Extractors cover PHP (Laravel), Python (Django, FastAPI, Flask), TypeScript and JavaScript (Next.js, NestJS, Express, Nuxt and others), Dart/Flutter, Kotlin, Java (Spring Boot), Swift, Rust, and C and C++; Go and others can be imported through SCIP.
It also checks planned changes: a YAML plan lists the nodes and edges you intend to add, plus forbidden paths, and plan_check reports what is missing, what conflicts and, after you implement and re-index, whether the plan was met.
Install
Run in a terminal
claude mcp add cg-code-graph -- uvx cg-code-graphAdd to claude_desktop_config.json
{
"mcpServers": {
"cg-code-graph": {
"command": "uvx",
"args": [
"cg-code-graph"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"cg-code-graph": {
"command": "uvx",
"args": [
"cg-code-graph"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"cg-code-graph": {
"type": "stdio",
"command": "uvx",
"args": [
"cg-code-graph"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"cg-code-graph": {
"command": "uvx",
"args": [
"cg-code-graph"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"cg-code-graph": {
"command": "uvx",
"args": [
"cg-code-graph"
]
}
}
}Using several servers? Build one config file with the MCP config generator.
Tools this server provides (1)
Taken from the project documentation; the running server may differ.
- plan_check
- Checks a planned change against the graph and reports gaps, conflicts and verification.
What it does
- Impact queries
- Ask what reaches a table, config key or method, with each hop given as file:line.
- Deterministic index
- The same source tree produces the same graph every time.
- Plan checks
- A YAML plan is checked for gaps, conflicts and forbidden paths, then verified after implementation.
- Multi-repo graph
- Routes, calls, tables and config keys share one index across linked repositories.
- Wide language support
- PHP, Python, TypeScript, Dart, Kotlin, Java, Swift, Rust and C/C++, with SCIP import for others.
Good for
- Check what a refactor will affect before an agent edits code
- Trace which routes and jobs write to a given table
- Verify an implementation matches an agreed change plan
- Map dependencies across several linked repositories
Pricing
Pricing unknown
Prices not published
Prices change. Check code-graph.cyberchronos00.workers.dev before you buy.
code-graph FAQ
Does it send my code anywhere?
The graph database stays on your machine and queries do not need a hosted index.
How do I install it?
It is a Python 3.11+ package named cg-code-graph that provides the cg and cg-mcp commands; pipx or uv tool install both work.
Which languages does it read?
PHP, Python, TypeScript/JavaScript, Dart, Kotlin, Java, Swift, Rust and C/C++, with other languages importable through SCIP.
How do I add code-graph to Claude Code?
Run this command in your terminal: claude mcp add cg-code-graph -- uvx cg-code-graph
What are the best alternatives to code-graph?
The closest alternatives to code-graph are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.
Where this comes from
- Description: written from the project's README and the project's website.
- Install steps: from the official MCP Registry entry.


