← Back to directory
G

gograph

Community
Local call graphs and structural analysis for Go repositories.
Category
Dev Tools #2 of 751
Stars
★ 234 Popular
Transport
stdio (local process)
Runtime
Prebuilt binary · Go
Credentials
No credential needed
License
MIT
Last commit
68FMRS · C

This MCP server provides local Go static structure analysis over stdio. It suits code navigation, change-impact analysis, and architecture checks, with results subject to static-analysis limitations.

Strongest · Documentation 17/20 Weakest · Reliability 10/20

Reliability
10/20
Security and permissions
15/20
Maintenance
12/20
Documentation
17/20
Setup experience
14/20
Why each score
Reliability 10/20
The README describes stdio MCP, 70 project tools plus four session lifecycle tools, in-memory graph construction, incremental parsing, and graph-state metadata. It provides no actual handshake results, key server-path tests, or CI evidence, and acknowledges heuristic or incomplete analyses; under the static calibration, the score stays at or below 12.
Security and permissions 15/20
The material says analysis is local, target code is not executed, telemetry is not transmitted, and MCP avoids disk writes by default while persistent refresh is opt-in. It also invokes the installed Go toolchain, and some test workflows run go test. Per-tool permissions, confirmation for dangerous operations, and full data-flow verification are not shown. No red-line evidence appears, but these gaps warrant deductions.
Maintenance 12/20
The material shows an MIT license, version 1.7.33, release packages for multiple platforms, and an unarchived repository, indicating a release and usage path. It does not show commit or release cadence, dependency update practices, a security response channel, or governance. Issue and star counts do not add points.
Documentation 17/20
The README provides several installation methods, extensive command and MCP examples, client integration guidance, a security-model reference, and limitations on precision and analysis. Full tool parameter details depend on external documentation; the supplied material lacks a per-tool parameter reference, troubleshooting coverage, and cost information, so full marks are not justified.
Setup experience 14/20
Homebrew, go install, multi-platform MCPB packages, and a Claude client configuration example make setup reasonably clear. The supplied material lacks concrete configuration for clients such as Codex, verifiable execution evidence, and a demonstrated initialization handshake, so the score remains below the cap.

Static review · not runReviewed 2026-12-03

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local files

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 and side effects

  • 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.

Setup

Before you start

Runtime:Prebuilt binary · Go

Other optional settings (2)
GOPROXY optional Set to off to disable the Go module proxy for offline runs; no credentials are needed.
GOTOOLCHAIN optional Set to local to use the installed Go toolchain for offline runs; no credentials are needed.

Install gograph, then configure your MCP client to run gograph with arguments mcp and the repository path, such as .. The README documents claude mcp add gograph -- gograph mcp . for Claude Code and gograph add-claude-plugin for Claude Desktop. You can also start the server with gograph mcp ..

claude_desktop_config.json
{
  "command": "gograph",
  "args": [
    "mcp",
    "."
  ]
}

Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

Check that it works

Confirm that gograph tools appear in your MCP client's tool list, then ask one to summarize the current Go repository.

Troubleshooting

  1. Confirm `gograph` is installed and the configured repository path is correct.
  2. Check that the local Go toolchain and module build context are available.
  3. Run `gograph doctor --json` to check the binary path and graph health.
  4. If precise enrichment falls back, check whether repository packages compile; CI strict mode can use `--strict`.

Things to try

Once connected, you can ask your AI assistant things like:

  • Analyze the callers and impact of Store.Save in this Go repository.
  • Recommend tests to run for the uncommitted changes.
  • Show the package dependency graph for this repository.

Use cases

Find direct or transitive callers, callees, and impact for Go symbols.
Select relevant tests for uncommitted changes.
Inspect dependencies, HTTP routes, and static SQL queries.
Analyze package boundaries and inform CI architecture gates.
Generate Mermaid dependency or call graphs.

Supported clients

Claude Desktop
Claude Code
CodexPartial support

Listed from the project's documentation, not tested by this site.

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.

Similar servers

Source revision 90f747ded5f6 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/gograph.svg)](https://followmcp.com/en/servers/gograph)