captjt/godoc-mcp
If you are the rightful owner of godoc-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server that provides real-time access to Go package documentation from pkg.go.dev, ensuring LLMs always have the latest and most accurate Go ecosystem information.
The godoc-mcp server is designed to bridge the gap between rapidly evolving Go package documentation and the static knowledge of Large Language Models (LLMs). By integrating with pkg.go.dev, it offers real-time access to the latest Go package documentation, ensuring that developers and LLMs have the most current information at their fingertips. This server supports comprehensive coverage of public Go packages, allowing users to search for packages by name or functionality, and even query specific versions. With intelligent caching mechanisms, godoc-mcp provides fast and reliable responses, even in the face of network issues. Its seamless integration with any MCP-compatible LLM client makes it a versatile tool for developers looking to stay updated with the Go ecosystem.
Features
- Real-time Documentation: Fetches the latest documentation directly from pkg.go.dev.
- Comprehensive Coverage: Access any public Go package documentation.
- Smart Search: Search for packages by name or functionality.
- Version Support: Query specific versions or get the latest stable version.
- Performance Optimized: Intelligent caching for fast responses.
Usages
usage with Claude Desktop
{ "mcpServers": { "godoc": { "command": "node", "args": ["/absolute/path/to/godoc-mcp/dist/index.js"] } } }
usage with Claude Desktop Global Installation
{ "mcpServers": { "godoc": { "command": "godoc-mcp" } } }
Tools
get_package_doc
Retrieves comprehensive documentation for a Go package, with optional version support.
get_function_doc
Gets detailed documentation for a specific function, with optional version support.
get_type_doc
Retrieves documentation for types and their methods, with optional version support.
search_packages
Searches for Go packages by name or description.
get_package_examples
Retrieves example code for a package, with optional version support.
get_package_versions
Lists all available versions of a Go package from the official module index.