CGIS Code Graph MCP server
io.github.zaebee/codegraph-brain·v0.39.2·2 starsCode graph for AI agents: impact, call tracing in Python, TypeScript, Go; opt-in JSON and YAML keys
not scanned yet
2 stars1.2k downloads/wk
Reviews
Write oneNobody has reviewed CGIS Code Graph yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
CGIS Code Graph tools
No tool declarations could be read from the package source. They show once the server is installed.
How CGIS Code Graph compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 92/100
- higher than 95% of 48,255 servers
- GitHub stars
- 2
- more than 75% of 28,688 servers
- Downloads a week
- 1,197
- more than 95% of 12,191 servers with a package
Release history: 13 versions in the registry since 2026-09-17, latest 2026-10-31, typically one every 6 days.
Install CGIS Code Graph in Claude Code, Cursor or VS Code
claude mcp add codegraph-brain -- uvx codegraph-brain
What the publisher says
From the CGIS Code Graph repository's README, as published. We do not edit it. Read it on GitHub
🧠 CGIS: Code Graph Intelligence System
<!-- mcp-name: io.github.zaebee/codegraph-brain -->
A code graph your AI agent can query instead of guess
Ask "what breaks if I change this?" and get the call chain, not a guess.
CGIS parses a repository with tree-sitter into a graph of fully qualified symbols and the calls, imports and containment between them, stores it in SQLite, and serves it to AI agents over MCP. An agent that would otherwise grep and read whole files asks the graph instead.
- Languages: Python · TypeScript / TSX
- Runs: locally — no account, no telemetry; the graph never leaves your disk (the one opt-in exception)
$ cgis ingest src --output graph.db
$ cgis impact cgis.query.engine.QueryEngine.get_flow_graph --db graph.db --depth 2
🔍 Analyzing transitive upstream callers of: cgis.query.engine.QueryEngine.get_flow_graph
METHOD cgis.query.engine.QueryEngine.get_flow_graph (cgis/query/engine.py:215)
├── FUNCTION cgis.query.context.context_service._collect_callees (cgis/query/context/context_service.py:44)
│ └── FUNCTION cgis.query.context.context_service.build_context (cgis/query/context/context_service.py:96)
└── METHOD cgis.guardian.collector.ContextCollector._graph_sections (cgis/guardian/collector.py:174)
├── METHOD cgis.guardian.collector.ContextCollector.collect_graph_context (cgis/guardian/collector.py:213)
└── METHOD cgis.guardian.collector.ContextCollector.collect_for_chunk (cgis/guardian/collector.py:303)Real output — CGIS run on its own source.
🚀 Quickstart
In Claude Code (fastest)
/plugin marketplace add zaebee/codegraph-brain
/plugin install cgis@codegraph-brainThat ships the MCP server, a skill that teaches the agent when to query the graph instead of reading files, and /cgis:ingest to build the graph on first use. The server is pulled from PyPI on demand via uvx, so there is nothing to clone or build.
Any other MCP client (Cursor, Claude Desktop, …)
{
"mcpServers": {
"cgis": { "command": "uvx", "args": ["--from", "codegraph-brain", "cgis-mcp"] }
}
}From the terminal
# No install needed — uvx fetches it from PyPI
uvx --from codegraph-brain cgis ingest ./my-project --output graph.db
uvx --from codegraph-brain cgis impact "my_module.core_function" --db graph.db --depth 5 # who calls this
uvx --from codegraph-brain cgis trace "my_module.MyClass.run" --db graph.db --depth 3 # what this calls
# add --format mermaid (or json) to either for a diagram or machine-readable outputOr install it for good: pip install codegraph-brain (Python 3.12+), then use cgis directly. The full command list is in CLI_USAGE.md.
📈 Proof at Real Scale
CGIS runs on a working twelve-repository estate — four languages, 8,146 commits, shipping daily. On its FastAPI backend it classifies 82.7% of 87,845 edges definitively and prints the remaining 17.3% rather than inventing targets for them — including the part that is CGIS's own gap.
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Grade history
- 2026-09-18restoreB → Ascore 94
CGIS Code Graph: common questions
- Is CGIS Code Graph MCP server safe?
- Yes, by our scan: it is graded A (92/100). Read the CGIS Code Graph safety report
- How do I install CGIS Code Graph?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does CGIS Code Graph need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is CGIS Code Graph maintained?
- The last commit was 33 days ago (2026-10-02). The latest release is v0.39.2.
- How does CGIS Code Graph compare with other MCP servers?
- safety score 92/100 (higher than 95% of 48,255 servers); github stars 2 (more than 75% of 28,688 servers); downloads a week 1,197 (more than 95% of 12,191 servers with a package). Full comparison.