gograph
Lets your AI agent explore a Go repository through call graphs, impact analysis and symbol search, all run locally.
231 stars on GitHubby ozgurcdLicense MITUpdated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Download the .mcpb file and open it with Claude Desktop.
Download the .mcpb file βReady! Now test it
Restart the app and paste one of these requests in the chat:
Build a precise graph of this repo and show me the hotspots.
Who calls this function, and which tests cover it?
What it is
gograph builds a local structural graph of a Go repository, with optional type-checked enrichment. Your agent can trace callers, find interface implementations and plan the impact of a change before refactoring. It runs on your machine and sends nothing to a hosted service.
What it can do
build: build the repository graph, with a precise optionsummaryandhotspot: find places to startexploreandcontext: read a symbol with callers, callees and testsplan: plan a change before refactoringvalidate: check one structural predicate
When to use
- βΊWhen you want your agent to find every caller of a Go function before changing it
- βΊWhen you plan a big refactor and need the impact first
- βΊWhen you want a repository overview without a hosted code index
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
codegraphHelps your agent analyze an indexed codebase through its call graph, dependencies, dead code, hotspots and semantic search.smart-exploreSearches code intelligently and efficiently. It helps understand code structure, find functions, and explore projects without reading everything.graph-queryLets your agent query a code dependency graph to find callers, related components and the impact of a change before the code is edited.Frequently asked questions
Is it free and open source?
Yes. The badge in the readme shows the MIT license.
Does it run my code?
No. The readme says it does static analysis and does not execute target code.
Does it send data anywhere?
No. Session telemetry stays local under .gograph/sessions and nothing is sent to gograph services.
How do I install it?
Use brew install --cask ozgurcd/tap/gograph or go install github.com/ozgurcd/gograph/cmd/gograph@latest.
Where does it store its graph?
In a .gograph folder in the target directory, which it adds to your gitignore.
Can I use it with Codex?
Yes. The readme points to a Codex MCP setup guide.
If it does not work
- βΊRun gograph doctor --json to see which installation runs and whether another copy shadows it.
- βΊRebuild the graph after upgrading gograph or changing build tags.
- βΊIf a precise build fails on unrelated folders, use --exclude-dirs to skip them.
5 new skills a week. 1 minute to read.