================== /// MCP /// /// GOD /// ================== [server:online] [protocol:ready]
godoc-mcp
by mrjoshuak
MCP (Model Context Protocol) server that serves Go package documentation to LLMs in a highly-token-efficient format.
73
9
Open Source01
get_doc
Retrieve documentation (or, with flags, source code) for a specified Go package or symbol, given a path and optional flags or working directory.
Installation
1. Prerequisites:
• Go 1.22 or newer (https://go.dev/dl)
• Git installed and configured
2. Fetch the source code:
git clone https://github.com/mrjoshuak/godoc-mcp.git
cd godoc-mcp
3. Build & install the server binary:
go install ./...
# The binary will be placed in $GOPATH/bin (or $HOME/go/bin by default)
4. Run the server:
godoc-mcp
# By default the service binds to :8080. Use flags such as -addr or -port if provided by the project.
5. Container-based install (optional):
docker build -t godoc-mcp .
docker run -d -p 8080:8080 --name godoc-mcp godoc-mcp
6. Configuration (generic):
• MCP_PORT – override listening port
• MCP_ADDR – override bind address
• LOG_LEVEL – debug | info | warn | error
(Actual env-vars/CLI flags may differ – consult internal help: godoc-mcp --help)
Documentation
License: MIT License
Updated 7/30/2025