MCP server for UCP. Gives your LLM access to all the UCP schemas, specs, and a few handy tools.
UCP (Universal Commerce Protocol) defines how commerce stuff should talk to each other — checkout flows, payments, fulfillment, etc. This MCP server lets you query those definitions, validate payloads against them, and poke around merchant discovery endpoints.
list_schemas— browse all 50+ UCP schemasget_schema— grab a specific schema by namevalidate_json— check if your JSON matches a schemaget_openapi_spec— the REST API spec (OpenAPI 3.1)get_openrpc_spec— the JSON-RPC speclist_capabilities— what UCP can do (checkout, payment, fulfillment, etc)get_discovery_profile_schema— the/.well-known/ucpschemadiscover_merchant— hit a merchant's discovery endpoint and see what they supportgenerate_checkout_request— spit out a sample checkout payload
git clone https://github.com/sakinaroufid/ucp-mcp.git
cd ucp-mcp
npm install
npm run buildDrop this in your MCP config:
{
"mcpServers": {
"ucp": {
"command": "node",
"args": ["/path/to/ucp-mcp/dist/index.js"]
}
}
}Find checkout schemas:
list_schemas(category: "checkout")
Generate a test checkout:
generate_checkout_request(
items: [
{ name: "Keyboard", quantity: 1, price_cents: 14900 }
],
currency: "USD"
)
Check what a merchant supports:
discover_merchant(merchant_url: "https://shop.example.com")
| Thing | What it does |
|---|---|
| Checkout | Cart, line items, tax calc |
| Order | Order events — shipped, delivered, returned |
| Payment | Payment methods, tokenization |
| Fulfillment | Shipping options, delivery |
Plus extensions for discounts, buyer consent, and AP2 mandates.
npm install
npm run build
npm startApache-2.0