# callgraph

MCP server for Claude Code that builds a token-efficient code map and categorized call graph using AST parsing.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 18 repo stars
- Author: GeRiY
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/GeRiY/callgraph
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/callgraph

## What it does

callgraph inspects classes, methods with exact line ranges, imports, and branches directly from the AST. It answers structural questions and performs impact analysis without reading entire source files into context.

The server ships as a standalone native Rust binary with zero external runtime dependencies and maintains an incremental JSONL project index. It supports PHP, Rust, TypeScript, JavaScript, Vue, Swift, Python, Go, CSS, JSON, Markdown, and HTML.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Install**
- The MCP registry has no launch command for it: see the repository README

## When to use it
- generate a token-efficient code map
- trace who calls a specific method
- analyze the impact of code changes
- inspect method bodies with line numbers
- explore framework routes and dependencies

## Example prompts
- Show the call graph for saveTranslations
- Inspect the structure of Order.php
- Find all callers of the validate method

## Similar
- [jscodeshift](https://affpapa.org/en/nevibecode/skills/jscodeshift.md) — skill · 422 installs
- [codesurface](https://affpapa.org/en/nevibecode/mcp/codesurface.md) — MCP server · ★ 21 repo stars
- [hivemind-graph](https://affpapa.org/en/nevibecode/skills/activeloopai-hivemind-graph.md) — skill · ★ 1658 repo stars
- [code-slop](https://affpapa.org/en/nevibecode/skills/code-slop.md) — skill · 862 installs
- [technical-debt](https://affpapa.org/en/nevibecode/skills/technical-debt.md) — skill · 771 installs
- [react-typescript-symfony-cursorrules-prompt-file](https://affpapa.org/en/nevibecode/rules/react-typescript-symfony-cursorrules-prompt-file.md) — rule · ★ 41178 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
