godoc-mcp
by mrjoshuak·★ 117·Score 47
MCP server that provides efficient access to Go documentation to reduce token usage when AI coding agents work with Go projects.
Overview
godoc-mcp is a specialized MCP server designed to improve LLM performance when working with Go code by replacing full source file dumps with structured documentation. It significantly reduces context usage while maintaining access to essential package information, including exported symbols, documentation, and source code. The server supports multiple transport modes (stdio, SSE, HTTP) and works with both local Go projects and external package documentation through Go's module system.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose godoc-mcp when working with Go projects and need efficient token usage when documenting code, especially with large codebases where reading entire source files would be too expensive.
When NOT to choose this
Don't use godoc-mcp if you're primarily working with languages other than Go, or if you need direct access to source code rather than documentation.
Tools this server exposes
2 tools extracted from the READMEget_docGet documentation for a Go package, type, function, or method.
list_packagesList all sub-packages under a Go package path.
Comparable tools
Installation
Installation
Go Install
go install github.com/mrjoshuak/godoc-mcp@latestDocker
docker pull ghcr.io/mrjoshuak/godoc-mcp:latestClaude Desktop
Add to your MCP configuration:
{
"mcpServers": {
"godoc": {
"command": "godoc-mcp"
}
}
}For local projects, set environment variables:
{
"mcpServers": {
"godoc": {
"command": "godoc-mcp",
"env": {
"GOPATH": "/path/to/go",
"GOMODCACHE": "/path/to/go/pkg/mod"
}
}
}
}FAQ
- What transport modes does godoc-mcp support?
- godoc-mcp supports three transport modes: stdio (default for local clients like Claude Desktop), SSE (Server-Sent Events over HTTP), and streamable HTTP mode.
- Can godoc-mcp access documentation for third-party Go packages?
- Yes, it supports both standard library and third-party packages through import paths, with automatic module context handling.
Compare godoc-mcp with
Last updated · Auto-generated from public README + GitHub signals.