An MCP (Model Context Protocol) server for OpenSSF Scorecard. It exposes Scorecard's security-posture data to MCP clients (Claude Desktop/Code, VS Code, and others) as well-typed, read-only tools and resources.
Status: experimental. This server currently reads pre-computed results from the public Scorecard REST API (
api.scorecard.dev). On-demand, in-process scanning (via the Scorecard library) is designed for but not yet implemented — see Roadmap. The intended endgame is to contribute this as an in-treescorecard mcpsubcommand inossf/scorecard.
Results are heuristic signals to inform a human decision, not a verdict. The server never asserts that a repository "is secure" or "is insecure."
| Tool | Description |
|---|---|
get_repo_score |
Aggregate score + per-check summary for a repository |
get_check_result |
Full result (score, reason, details) for one check on a repository |
compare_repos |
Aggregate scores across several repositories |
list_checks |
Catalog of Scorecard checks (offline) |
explain_check |
Methodology, risk, and remediation for one check (offline) |
scorecard://checks— index of all checksscorecard://checks/{name}— documentation for a single check
Every result carries provenance (resolved commit SHA, scan date, Scorecard version, and which provider produced it), cached-data caveats, and a CDLA Permissive 2.0 data-license attribution.
Requires Go 1.25+.
go install github.com/uwu-tools/scorecard-mcp/cmd/scorecard-mcp@latestOr build from source:
git clone https://github.com/uwu-tools/scorecard-mcp
cd scorecard-mcp
go build -o bin/scorecard-mcp ./cmd/scorecard-mcpTroubleshooting: if
go installorgo buildfails withcompile: version "X" does not match go tool version "Y"across many stdlib packages, you have a strayGOROOTenvironment variable pointing at a different Go toolchain than the one onPATH(common with multiple Go version managers, e.g. gimme). Runenv -u GOROOT go install ...(orenv -u GOROOT go build ...) instead, or unsetGOROOTin your shell profile.
The server speaks MCP over stdio; no credentials are required for the cached REST provider.
go installplaces the binary in$(go env GOPATH)/bin(or$GOBINif set), which is not onPATHby default on most systems. Either add that directory toPATH, or use its absolute path ($(go env GOPATH)/bin/scorecard-mcp) in the configs below.
Claude Code — register globally with the CLI instead of hand-editing JSON:
claude mcp add scorecard --scope user -- "$(go env GOPATH)/bin/scorecard-mcp"Claude Desktop / Claude Code (.mcp.json or the app's MCP config):
{
"mcpServers": {
"scorecard": {
"command": "scorecard-mcp"
}
}
}VS Code (.vscode/mcp.json):
{
"servers": {
"scorecard": {
"type": "stdio",
"command": "scorecard-mcp"
}
}
}(Use an absolute path to the binary if it is not on your PATH.)
The MCP Inspector is the
quickest way to exercise the server directly, without wiring it into a client.
It needs Node.js (for npx); nothing to install ahead of
time.
Point it at the binary you installed or built — scorecard-mcp if it is on your
PATH, otherwise an absolute path such as ./bin/scorecard-mcp or
$(go env GOPATH)/bin/scorecard-mcp.
npx @modelcontextprotocol/inspector scorecard-mcpThis launches a local web UI and prints a URL with a session token. Open it,
click Connect, then use the Tools and Resources tabs to browse and
invoke everything — for example, call get_repo_score with
repo = github.com/ossf/scorecard.
The same Inspector has a --cli mode for non-interactive checks — handy for a
quick smoke test or CI:
# List the registered tools, resources, and resource templates
npx @modelcontextprotocol/inspector --cli scorecard-mcp --method tools/list
npx @modelcontextprotocol/inspector --cli scorecard-mcp --method resources/list
npx @modelcontextprotocol/inspector --cli scorecard-mcp --method resources/templates/list
# Offline tools (no network)
npx @modelcontextprotocol/inspector --cli scorecard-mcp \
--method tools/call --tool-name list_checks
npx @modelcontextprotocol/inspector --cli scorecard-mcp \
--method tools/call --tool-name explain_check --tool-arg check=Branch-Protection
# Read a documentation resource
npx @modelcontextprotocol/inspector --cli scorecard-mcp \
--method resources/read --uri scorecard://checks
# Live query against api.scorecard.dev
npx @modelcontextprotocol/inspector --cli scorecard-mcp \
--method tools/call --tool-name get_repo_score --tool-arg repo=github.com/ossf/scorecardPass a tool's arguments with repeated --tool-arg key=value flags (for example,
add --tool-arg commit=<sha> to pin a query to a specific commit). An unknown
check name returns a tool error suggesting list_checks, which is a quick way to
confirm error handling works.
Asking a client "What's the OpenSSF Scorecard for ossf/scorecard?" calls
get_repo_score and returns structured content like:
{
"repo": { "platform": "github.com", "org": "ossf", "name": "scorecard" },
"commit": "64febf8c5229...",
"date": "2026-08-01T02:19:41Z",
"scorecard": { "version": "v5.3.0", "commit": "c22063e786c1..." },
"source": "cached-rest",
"score": 8.7,
"checks": [
{ "name": "Code-Review", "score": 10, "reason": "..." },
{ "name": "Fuzzing", "score": 10, "reason": "..." }
],
"caveats": [
"Cached results cover only projects that have opted in via publish_results: true.",
"The weekly public scan omits the CI-Tests, Contributors, and Dependency-Update-Tool checks."
],
"attribution": {
"data_license": "CDLA-Permissive-2.0",
"source_url": "https://api.scorecard.dev"
},
"complete": false
}commit is the target repository's resolved commit; scorecard.commit and
scorecard.version identify the build of the Scorecard tool that produced the
result — the two are unrelated and easy to confuse. complete reports whether
the provider ran the full check set (the cached REST provider always reports
false, since it omits three checks — see Caveats).
The cached REST provider:
- covers only public repositories that have opted in via
publish_results: true; - omits the
CI-Tests,Contributors, andDependency-Update-Toolchecks (excluded from the weekly public scan); - reports a check or aggregate score of
-1as inconclusive — not a failing score.reasonon an inconclusive check is passed through verbatim from the upstream API and can be a raw internal-error string (e.g. a GitHub token/permissions failure inside Scorecard itself) rather than a descriptive explanation; - passes
datethrough as returned byapi.scorecard.dev, which is not normalized to a single format (observed as both a full RFC 3339 timestamp and a bareYYYY-MM-DDdate depending on the repository).
This project is built spec-first with OpenSpec
(openspec/) and with the MCP dev Agent Skills.
See AGENTS.md for the workflow and conventions.
go test ./...
golangci-lint run ./...(See the Install troubleshooting note if these fail with a Go toolchain version mismatch.)
- Live scanning — a
LocalRunProviderusingpkg/scorecard.Runfor any repository a token can access (private repos, all checks, fresh results), behind the sameResultProviderseam. - Streamable HTTP transport for hosted/mixed environments.
- Upstreaming as an in-tree
scorecard mcpsubcommand inossf/scorecard.
Apache 2.0 — see LICENSE.
Data from the REST API is licensed under CDLA Permissive 2.0.