Skip to main content
MCP server CX Codex

callgraph — Claude Code MCP server: what it does, how to install

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

MIT ★ 18 updated 2026-11-16

Open on GitHub

What callgraph 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.

What it helps with

  • 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 for the agent

  • Show the call graph for saveTranslations
  • Inspect the structure of Order.php
  • Find all callers of the validate method

How to install callgraph

Install

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

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about callgraph

What does callgraph do?

It generates AST-based code maps and categorized call graphs so coding agents can inspect methods and trace dependencies without reading whole files.

Which languages are supported?

PHP, Rust, TypeScript, JavaScript, Vue, Swift, Python, Go, CSS, SCSS, JSON, Markdown, and HTML are fully supported with framework-aware detection.

How is callgraph packaged?

It is distributed as a single native Rust binary with no external runtimes like PHP or Node required, using an mtime-based cache.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open