# gograph

> Local call graphs and structural analysis for Go repositories.

- **URL**: https://followmcp.com/en/servers/gograph
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 234
- **FMRS Score**: 68/100 (Grade C)
- **Source**: https://github.com/ozgurcd/gograph
- **Transports**: stdio (local process)
- **Runtimes**: Prebuilt binary, Go
- **Auth**: No credential needed

## Overview
gograph provides Go repository call graphs and structural analysis through a local stdio MCP server. It can analyze callers, impact, dependencies, test selection, and architecture boundaries, and produce Mermaid diagrams. It uses AST analysis by default, with optional CHA/SSA enrichment.

## Best for
- Developers and coding agents analyzing Go repository structure locally.
- Go teams tracing change impact, selecting relevant tests, or checking package boundaries.

## Not for
- Projects that need analysis across multiple programming languages.
- Tasks requiring runtime behavior, complete dynamic call relationships, or proof of exploitability.
- Users seeking a replacement for the compiler, type checker, or live Go IDE diagnostics.

## Required permissions
- Needs access to the specified local Go repository to parse its source code.
- Invokes the installed Go toolchain for module and build context; precise mode also loads packages.
- The default MCP mode builds or refreshes the graph in memory; refreshed `.gograph/` artifacts are written only when `--persist-refresh` is enabled.

## Risks
- Default AST mode uses heuristics; precise mode adds CHA/SSA enrichment only for compilable repository packages and may fall back if enrichment fails.
- Open interface dispatch is conservative; reflection, `unsafe`, plugins, unnamed concrete types, and runtime-generated SQL may be incompletely analyzed.
- Test attribution and security-flow analysis are review aids, not proof of runtime coverage or exploitability.
- Precise builds may invoke the Go toolchain; the README gives `GOPROXY=off GOTOOLCHAIN=local` as an offline-run setting.

## Client config (JSON)
```json
{
  "command": "gograph",
  "args": [
    "mcp",
    "."
  ]
}
```
