Codegraph MCP server
io.github.codegraph-ai/codegraph·v0.21.0·98 starsSemantic code graph: 42 tools, 38 languages. Callers, impact, AI context, memory, PR review.
not scanned yet
98 stars594 downloads/wk
Reviews
Write oneNobody has reviewed Codegraph yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Codegraph tools
No tool declarations could be read from the package source. They show once the server is installed.
How Codegraph compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 75/100
- higher than 45% of 48,255 servers
- GitHub stars
- 98
- more than 95% of 28,688 servers
- Downloads a week
- 594
- more than 90% of 12,191 servers with a package
Release history: 2 versions in the registry since 2026-08-10, latest 2026-10-06, typically one every 57 days.
Install Codegraph in Claude Code, Cursor or VS Code
Runs npx -y @astudioplus/codegraph-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add codegraph -- npx -y @astudioplus/codegraph-mcp
What the publisher says
From the Codegraph repository's README, as published. We do not edit it. Read it on GitHub
CodeGraph
Cross-language code intelligence for AI agents and developers.
CodeGraph builds a semantic graph of your codebase — functions, classes, imports, call chains — and exposes it through 42 MCP tools, a VS Code extension, a JetBrains IDE plugin, and a persistent memory layer. Parses 38 languages via tree-sitter. AI agents get structured code understanding instead of grepping through files.
Quick Start
MCP Server (Claude Code, Cursor, any MCP client)
Add to ~/.claude.json (or your MCP client config):
{
"mcpServers": {
"codegraph": {
"command": "/path/to/codegraph-server",
"args": ["--mcp"]
}
}
}The server indexes the current working directory automatically.
VS Code Extension
Install the VSIX:
code --install-extension codegraph-0.20.1.vsixOne VSIX serves every platform. The analysis engine is not bundled: on first activation the extension offers to download the engine built for your platform, verifies it against the published checksum, and installs it into ~/.codegraph/bin - the same location the JetBrains plugin uses, so one download serves both. The download is offered rather than performed automatically, because it is a native binary that runs with your permissions. Decline it and run CodeGraph: Download Analysis Engine from the command palette whenever you are ready.
Once an engine is present, the extension starts it automatically and registers all tools as Language Model Tools for Copilot.
JetBrains IDEs
A plugin for IntelliJ IDEA, PyCharm, GoLand, Android Studio and the rest of the family drives the same engine over LSP: Code Vision, Symbols and Memories tool windows, a graph panel, and one-click MCP registration for the AI Assistant. It resolves or downloads the engine the same way the VS Code extension does, sharing ~/.codegraph/bin.
→ jetbrains/README.md for surfaces, engine resolution order, and building from source.
Rules for AI agents
Pre-configured rule files that teach AI coding agents (Claude, Cursor, Windsurf, Codex, Cline) to use CodeGraph MCP tools before falling back to grep / multi-file reads. Maps natural-language intent to the right codegraph_* tool.
→ codegraph-ai/codegraph-rules-for-agents
Setup is cp /codegraph.md ~// (one line per agent — see the rules repo's README).
GitHub Action — PR review in CI
Drop a workflow into your repo to get an automatic code-graph analysis comment on every PR — blast radius, test gaps, stale docs, suggested reviewers. Runs graph-only (no embeddings, no ONNX model), so it's fast and needs no API keys — just the built-in GITHUB_TOKEN.
Copy .github/workflows/codegraph-pr.yml into your repo. The core invocation is a single command:
codegraph-server --graph-only \
--run-tool codegraph_pr_context \
--tool-args '{"baseBranch":"main","format":"markdown"}'This prints a ready-to-post markdown comment. The --graph-only flag skips embedding generation (10-50× faster indexing); --run-tool runs one tool and exits without the MCP stdio handshake — ideal for scripting.
Configuration
MCP Server flags
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Codegraph: common questions
- Is Codegraph MCP server safe?
- Mostly: it is graded B (75/100). Read the Codegraph safety report
- How do I install Codegraph?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Codegraph need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Codegraph maintained?
- The last commit was 52 days ago (2026-09-13). The latest release is v0.21.0.
- What can I use instead of Codegraph?
- Servers from other publishers that do the same job: Codebase Memory MCP server, Sem MCP server and Neo4j Memory MCP server. Compare all Codegraph alternatives.
- How does Codegraph compare with other MCP servers?
- safety score 75/100 (higher than 45% of 48,255 servers); github stars 98 (more than 95% of 28,688 servers); downloads a week 594 (more than 90% of 12,191 servers with a package). Full comparison.
Alternatives to Codegraph
Same job from other publishers: the closest match first, then the best rated.
- Codebase MemoryCodebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.not reviewedWidely usedC
- SemEntity-level code intelligence: semantic diff, impact analysis, blame, and context for AI agentsnot reviewedWidely usedB
- Neo4j MemoryMCP Neo4j Knowledge Graph Memory Servernot reviewedEstablishedA
TraceCode graph MCP: 81 languages, 91 frameworks, 72.7% fewer PR-review tokens, comprehension at paritynot reviewedEstablishedA
State Memory MCPPersistent workflow graph server tracking tasks, decisions, spatial entities, and blockers.not reviewedEstablishedA