Loading...

The godoc-mcp-server searches Go packages and their documentation from pkg.go.dev, providing the information to an LLM via the Model Context Protocol.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
The godoc-mcp-server searches Go packages and their documentation from pkg.go.dev, providing the information to an LLM via the Model Context Protocol.
This server is generally safe due to its read-only nature and limited network exposure. However, the security of the overall system depends on the LLM's security. It is safe to use when the LLM is trusted and the information retrieved is not considered highly sensitive. Risky scenarios involve using the server with an untrusted LLM or when the retrieved documentation contains vulnerabilities.
Performance depends on the speed of pkg.go.dev and network latency. The local cache helps to mitigate performance issues by avoiding repeated searches.
There are no direct costs associated with using the server itself. However, excessive use may impact the availability of pkg.go.dev for other users.
searchPackageSearches for Go packages on pkg.go.dev based on a query.
Read-only operation; only retrieves package names.
getPackageInfoRetrieves detailed information about a specific Go package from pkg.go.dev.
Read-only operation; only retrieves package documentation.
None
local
This server is generally safe due to its read-only nature and limited network exposure. However, the security of the overall system depends on the LLM's security. It is safe to use when the LLM is trusted and the information retrieved is not considered highly sensitive. Risky scenarios involve using the server with an untrusted LLM or when the retrieved documentation contains vulnerabilities.
The server only provides read-only access to package documentation, limiting the risk of unintended modifications.
Production Tip
Implement robust error handling and logging in the client application to handle potential issues with the server or pkg.go.dev.
You can download a pre-compiled binary from the releases page or install it from source using `go install github.com/yikakia/godoc-mcp-server/cmd/godoc-mcp-server@latest`.
No, the server does not require any authentication.
The server uses a local cache to store package information, reducing the number of requests to pkg.go.dev and improving performance.
No, the server only provides read-only access to package documentation.
The server will be unable to retrieve package information and may return errors.
No, the Go API is currently unstable and subject to breaking changes.
You can contribute by submitting bug reports, feature requests, or pull requests on GitHub.