MCP server that exposes Go package and module documentation via the pkgsite tool, letting AI assistants look up Go docs locally.
README
An MCP server that exposes the pkg.go.dev API as tools, so an LLM can search for Go packages and inspect modules, packages, symbols, importers, and vulnerabilities — without downloading anything.
It wraps the pkg.go.dev v1beta HTTP API (see
the announcement), the same API used by the
pkgsite-cli reference client. The server speaks MCP over stdio, the
transport used by Claude Code, Claude Desktop, and most IDE integrations.
go install github.com/sv-tools/pkgsite-mcp@latest
This installs the pkgsite-mcp binary into $(go env GOPATH)/bin.
claude mcp add pkgsite --scope=user -- pkgsite-mcp
codex mcp add pkgsite -- pkgsite-mcp
Add the server to your client's MCP config (for Claude Desktop,
claude_desktop_config.json):
{
"mcpServers": {
"pkgsite": {
"command": "pkgsite-mcp"
}
}
}
Use the absolute path to the binary if it is not on your PATH.
| Tool | Description |
|------------------------|--------------------------------------------------------------------------------------------------|
| search | Search pkg.go.dev for packages by name or keywords. |
| get_package | Package details: module, version, synopsis, and optionally rendered docs, imports, and licenses. |
| get_package_symbols | Exported symbols (functions, types, methods, vars, consts) of a package. |
| get_imported_by | Packages from other modules that import a given package (re