# callgraph MCP server

> Provides an AST-based code map and categorized call graph to help AI agents understand code structure and impact without reading entire files.

- Repository: https://github.com/GeRiY/callgraph
- Page: https://hostedmcp.org/servers/geriy/callgraph
- Transport: stdio
- Stars: 13
- License: MIT
- Latest version: 0.9.5

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `CALLGRAPH_LANG` | no | no |  |

## FAQ

### How does callgraph differ from reading whole files?

Instead of reading entire files and using grep, it uses the Abstract Syntax Tree (AST) to provide structured information like method bodies, line ranges, and categorized calls.

### Can I exclude specific files or folders from being processed?

Yes, you can use a .callgraphignore file in your project root to exclude extensions or specific paths using .gitignore-style patterns.

### Does it support impact analysis?

Yes, it can walk callers of callers across a whole project using a cached, incremental project index to perform impact analysis.
