Pkgsite
БесплатноНе проверенMCP server exposing the pkg.go.dev API for searching and inspecting Go modules, packages, symbols, versions, and vulnerabilities.
Описание
MCP server exposing the pkg.go.dev API for searching and inspecting Go modules, packages, symbols, versions, and vulnerabilities.
README
An MCP (Model Context Protocol) server that exposes the pkg.go.dev v1beta API, letting an AI agent search and inspect Go modules, packages, symbols, versions, and vulnerabilities. It also runs as a standalone CLI for quick queries and debugging.
Features
- Eight focused MCP tools, one per pkg.go.dev endpoint:
pkgsite_search— search packages (optionally by symbol)pkgsite_module— module metadata, optionally with licenses and READMEpkgsite_package— package metadata and rendered documentation (text/html/markdown)pkgsite_packages— packages within a modulepkgsite_symbols— exported symbols of a packagepkgsite_versions— module version historypkgsite_imported_by— packages that import a given packagepkgsite_vulns— known vulnerabilities from the Go vulnerability database
- Stdio JSON-RPC transport, ready to drop into any MCP client.
- CLI mode for the same queries from a shell.
- Zero third-party dependencies (standard library only).
- Hard 30-second timeout on every request, with the API's error body (including its fix suggestions) surfaced on failure.
Installation
go install github.com/hegner123/pkgsite@latest
Or build from source:
git clone https://github.com/hegner123/pkgsite
cd pkgsite
just build # go build -o pkgsite && codesign -s - pkgsite
just install # builds, then sudo cp pkgsite /usr/local/bin/
Usage
As an MCP server
Register it with your MCP client. For Claude Code:
claude mcp add --transport stdio --scope user pkgsite -- /usr/local/bin/pkgsite
Or via a project .mcp.json:
{
"mcpServers": {
"pkgsite": {
"command": "pkgsite"
}
}
}
Running pkgsite with no arguments starts the stdio MCP server.
As a CLI
pkgsite --cli <operation> [--key value | --key=value | --flag]
Examples:
# Search for packages
pkgsite --cli search --q "yaml parser" --limit 2
# Module metadata at the latest version
pkgsite --cli module --path github.com/spf13/cobra --version latest
# Package documentation as text
pkgsite --cli package --path encoding/json --doc text
# Version history
pkgsite --cli versions --path github.com/spf13/cobra --limit 3
Each call prints the API's raw JSON response to stdout. Errors go to stderr with a non-zero exit code.
License
Released under the MIT License.
Установка Pkgsite
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/hegner123/pkgsiteFAQ
Pkgsite MCP бесплатный?
Да, Pkgsite MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Pkgsite?
Нет, Pkgsite работает без API-ключей и переменных окружения.
Pkgsite — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Pkgsite в Claude Desktop, Claude Code или Cursor?
Открой Pkgsite на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Pkgsite with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
