Loading...

godoc-mcp provides efficient access to Go documentation for LLMs, reducing token usage and improving understanding of Go projects.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
godoc-mcp provides efficient access to Go documentation for LLMs, reducing token usage and improving understanding of Go projects.
godoc-mcp is generally safe for use as it primarily provides read-only access to Go documentation. However, care should be taken to sanitize inputs to prevent command injection vulnerabilities. Ensure GOPATH and GOMODCACHE are correctly configured to avoid unexpected behavior.
Performance depends on the speed of the go doc command and the size of the documentation. Caching can significantly improve performance.
No direct cost, but excessive use may consume CPU resources.
{
"mcpServers": {
"godoc": {
"command": "/path/to/godoc-mcp",
"args": [],
"env": {
"GOPATH": "/path/to/go",
"GOMODCACHE": "/path/to/go/pkg/mod"
}
}
}
}get_docRetrieves Go documentation for a specified package or symbol.
Read-only access to documentation.
None
cloud
godoc-mcp is generally safe for use as it primarily provides read-only access to Go documentation. However, care should be taken to sanitize inputs to prevent command injection vulnerabilities. Ensure GOPATH and GOMODCACHE are correctly configured to avoid unexpected behavior.
godoc-mcp is designed for read-only access to documentation, so autonomy is limited to information retrieval.
Production Tip
Cache responses aggressively to reduce the load on the `go doc` command.
godoc-mcp is an MCP server that provides efficient access to Go documentation for LLMs.
It reduces token usage by providing only the essential documentation, improving efficiency.
It supports local file paths and import paths for both standard library and third-party packages.
No, it does not require an internet connection to access documentation.
You need to add it to the `mcpServers` section of your Claude configuration file, specifying the command, arguments, and environment variables.
The key parameters are `path` (the package or file path) and `target` (the specific symbol to document).
It automatically creates temporary Go projects and sets up module context for external packages.