get_package_doc
Retrieves comprehensive documentation for a Go package, with optional version support.
Current Go package docs from pkg.go.dev — functions, types, examples and versions — instead of what a model remembers.
LABSCO SUMMARY
A model's picture of a fast-moving Go package is often a release or two behind. These six tools read the current signature, type, examples or version list straight from pkg.go.dev, or at the exact version you name. It is still marked as in development, and pkg.go.dev's rate limits are the practical ceiling.
A Go documentation server that fetches package docs live from pkg.go.dev, with package search and version lookup from the official Go module index. Its README marks it as still in development.
No account or key. Node.js and npm to build a clone (npm install, then npm run build); your client then runs dist/index.js with node. The README warns that pkg.go.dev rate-limits requests aggressively.
Build from source — git clone https://github.com/captjt/godoc-mcp.git
USE CASES
Ask for strings.Split or http.HandleFunc and get the signature and documentation as pkg.go.dev shows them today, not as the model remembers them.
List the versions a module has published, then read a type and its methods at the version you actually depend on.
Search Go packages by name or description, then pull a candidate's example code before adding it.
Listed in project docs. Your client may show a different list.
get_package_docRetrieves comprehensive documentation for a Go package, with optional version support.
get_function_docGets detailed documentation for a specific function, with optional version support.
get_type_docRetrieves documentation for types and their methods, with optional version support.
search_packagesSearches for Go packages by name or description.
get_package_examplesRetrieves example code for a package, with optional version support.
get_package_versionsLists all available versions of a Go package from the official module index.
BEFORE YOU INSTALL
6 tools named in the project's documentation.
Node.js and npm, to install and build the clone
The documented client runs the server on your machine.
INSTALLATION
You clone and build this one yourself.
Clone the repository
git clone https://github.com/captjt/godoc-mcp.git
cd godoc-mcpInstall dependencies
npm installBuild the server
npm run build{
"mcpServers": {
"godoc": {
"command": "node",
"args": [
"<YOUR_PATH_TO_GODOC_MCP>/dist/index.js"
],
"env": {
"LOG_LEVEL": "info"
}
}
}
}