MCP Catalogs
Home

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.

developer-toolsai-llmfile-system
16
Forks
0
Open issues
2 mo ago
Last commit
2d ago
Indexed

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:

you:Exploring Go projects by discovering packages and their purposes
you:Understanding Go interfaces and API documentation for implementation guidance
you:Efficiently analyzing Go codebases without loading entire source files into context
you:What transport modes does godoc-mcp support?
you:Can godoc-mcp access documentation for third-party Go packages?

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 README
  • get_doc

    Get documentation for a Go package, type, function, or method.

  • list_packages

    List all sub-packages under a Go package path.

Comparable tools

doc-mcpgo-docshell-mcp

Installation

Installation

Go Install

go install github.com/mrjoshuak/godoc-mcp@latest

Docker

docker pull ghcr.io/mrjoshuak/godoc-mcp:latest

Claude 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

GitHub →

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