UCPScan
Developers

Developer docs

Quickstart, command line, MCP tools, limits and changes of the UCPscan API.

Every endpoint is listed with a working example on API; the machine-readable description is /api/v1/schema (OpenAPI 3.1). /api/v1/* answers are JSON with the result under data; an error is JSON with an error code (and often a message) and an HTTP 4xx or 5xx status. Two answers are bare documents: /api/v1/score-model and the schema. /mcp answers in JSON-RPC: a protocol error comes as a JSON-RPC error with HTTP 200, a failed tool as a result with isError. /ard/search errors carry errorCode.

Quickstart

Status of one store

curl -s 'https://ucpscan.org/api/v1/status/00f1b4-86.myshopify.com'

Stores that declare checkout, best first

curl -s 'https://ucpscan.org/api/v1/search?q=dev.ucp.shopping.checkout&limit=3'

Validate a profile body

curl -s -X POST 'https://ucpscan.org/api/v1/validate' -d '{"ucp": {"version": "2026-08-25"}}'

Call an MCP tool

curl -s -X POST 'https://ucpscan.org/mcp' -H 'Content-Type: application/json' -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "get_store_status", "arguments": {"domain": "00f1b4-86.myshopify.com"}}}'

Command line

A small client ships in the repository. It needs Python 3.9 and nothing else and talks to https://ucpscan.org by default (--base or the UCPSCAN_BASE_URL variable to change it). It prints one line per store (validate: the status, then one line per code), or the raw JSON with --json. A domain may be given as a URL; the scheme and path are dropped. Exit code: 0 verified (search: something found), 1 not verified (search: nothing found), 2 an error.

python3 -m ucpscan.cli status <domain>

Latest recorded check of a store: status, score, grade, release, HTTP code, latency.

python3 -m ucpscan.cli search <query> [--limit N]

Stores by domain, capability, payment handler, transport or label, best first.

python3 -m ucpscan.cli validate <file|->

Validate a profile body from a file or stdin with the recorded probe's rules.

python3 -m ucpscan.cli check <domain>

Live check: fetch the store's /.well-known/ucp now (rate limited, stored in public).

MCP server

Endpoint https://ucpscan.org/mcp: Streamable HTTP, stateless, JSON answers, protocol versions 2025-11-25, 2025-06-18. Server card: /.well-known/mcp/server-card.json.

ToolArgumentsRead-onlyWhat it returns
get_store_statusdomain: stringyesLatest recorded check of one store: status, score and grade, release, latency, and what its /.well-known/ucp profile declares.
search_storesquery: string, limit: integer (optional)yesFind stores by domain, declared capability, payment handler or transport, or store-list label (country, industry, niche, theme). Best score first.
list_tokenskind: string, limit: integer (optional)yesEvery capability, payment handler or transport declared in the sample, with its holder count.
get_token_holderskind: string, name: string, limit: integer (optional), offset: integer (optional)yesStores whose profile declares one capability, payment handler or transport, best score first.
validate_profileprofile: stringyesCheck a pasted /.well-known/ucp body with the rules the recorded probe used; returns status, error and warning codes, and a score without timing. Nothing is fetched or stored.
get_error_cardcode: stringyesWhat an error or warning code means, the status it leads to, and how to fix it.
get_statsyesTotals and distributions of the sample: statuses, releases, grades, transports, top capabilities.
get_score_modelyesThe UCPscan score: weights, grades and every check with its points.
check_domaindomain: stringno (live fetch)Fetch a domain's /.well-known/ucp now, classify it with the probe's rules, check the spec's hosting rules and score it. A domain's result is reused for a minute; a repeat returns the last result.

Keys and limits

There are no API keys and no rate tiers: every endpoint is open. Reads of the sample have no rate limit in the app; a request whose queries would take longer than 1 s answers 400 "Filter too broad". The live check (POST /api/v1/check, MCP check_domain) is limited to 10 a minute per client and 60 a minute for the site, with at most 4 running at once; a domain's result is reused for 60 s. Over a limit, POST /api/v1/check answers HTTP 429 (503 when live checks are off) and MCP check_domain returns a tool result with isError and the reason. Browser requests to /mcp and the live check are refused from origins other than this site and localhost; requests without an Origin header (curl, the CLI, servers) are accepted.

Changelog

2026-11-27

2026-11-18

2026-11-17

2026-11-14