MCP Catalogs
Homegograph screenshot

gograph

by ozgurcd·118·Score 47

A local AST/type-aware Go repository context indexer that creates optimized graphs for AI coding agents.

developer-toolsai-llmknowledge-graph
7
Forks
1
Open issues
this month
Last commit
2d ago
Indexed

Overview

gograph is a fast, local-only CLI tool designed to generate repository structures and improve IDE context awareness specifically for Go codebases. It builds a compact graph of packages, symbols, calls, routes, config reads, tests, and code-quality signals so AI agents can navigate Go repositories with fewer raw file reads. Unlike language servers like gopls, which are optimized for human IDEs, gograph is specifically built for terminal-based LLMs to save context tokens by extracting exact structural slices in native Markdown format.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Enhancing AI code understanding in Go projects by providing structured context
you:Code refactoring assistance by showing impact analysis of changes
you:Code quality analysis through cyclomatic complexity and coupling metrics
you:How is gograph different from language servers like gopls?
you:Does gograph support languages other than Go?

When to choose this

Choose gograph when working with Go codebases that need efficient AST analysis and context generation for AI coding assistants.

When NOT to choose this

Don't choose gograph if you're not working with Go codebases or if you specifically need an MCP server implementation.

Tools this server exposes

12 tools extracted from the README
  • boundaries

    Verify package architecture constraints using boundaries.json

  • callers

    See what functions call a specific symbol

  • callees

    See what a specific function calls

  • complexity

    Calculate cyclomatic complexity for functions

  • focus

    Generate highly targeted context for a specific package

  • hotspot

    Rank functions by incoming call count

  • impact

    View the full blast radius of a symbol

  • interfaces

    See which interfaces a struct satisfies

  • path

    Find the shortest call chain between two symbols

  • context

    Get node, source, callers, callees, and tests in one response

  • trace

    Trace an error string backwards to entry points

  • deps

    Show direct or transitive import dependencies for a package

Comparable tools

goplsgo-outlinegomodifytags

Installation

# MacOS / Linux (via Homebrew)
brew install ozgurcd/tap/gograph

# Or using Go:
go install github.com/ozgurcd/gograph/cmd/gograph@latest

To use as an MCP server, you would need to integrate it with your MCP client configuration. The tool supports JSON output for machine-parseable results which is ideal for MCP integration.

FAQ

How is gograph different from language servers like gopls?
While gopls has similar AST and type data, connecting an AI agent to it is difficult and inefficient. gograph extracts exact structural slices in native Markdown format rather than just file coordinates, saving tokens and providing better context for AI agents.
Does gograph support languages other than Go?
Currently gograph only parses and maps Go codebases. However, the architecture is extensible and contributions for other languages are welcome.

Compare gograph with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.