What is UCP? Universal Commerce Protocol Explained for Developers
A developer-focused primer on UCP. What it is, what problems it solves, and how the protocol works under the hood.
The Short Version
UCP (Universal Commerce Protocol) is an open standard that lets AI agents discover products, initiate checkouts, and complete purchases on behalf of consumers. It defines a shared interface between agents and merchants so that any agent can transact with any UCP-enabled store.
Think of it like this: HTTP lets browsers talk to web servers. UCP lets shopping agents talk to stores.
Why Developers Should Care
Before UCP, building an AI shopping agent meant writing custom integrations for every retailer. Scraping product pages, reverse-engineering checkout flows, handling different auth schemes. It was fragile, slow, and didn't scale.
UCP standardizes the entire transaction lifecycle:
- Discovery. Agents query a merchant's
/.well-known/ucpendpoint to get product catalog metadata, supported capabilities, and payment options. - Checkout. A structured checkout flow with defined request/response schemas. No more screen-scraping.
- Payment. Tokenized payment exchange through registered payment handlers. The agent never sees raw card data.
- Order management. Status tracking, returns, and cancellations through a consistent API.
How It Works
A UCP merchant hosts a JSON manifest at /.well-known/ucp. This manifest advertises:
- What products or categories the merchant offers
- Which UCP capabilities they support (checkout, identity linking, order management)
- Which payment handlers they accept
- Their UCP endpoint URL for agent interactions
When an AI agent wants to shop, it reads this manifest, understands the merchant's capabilities, and initiates a transaction through the UCP endpoint.
Here's a simplified flow:
- Agent discovers merchant via UCP registry or
/.well-known/ucp - Agent queries products matching consumer preferences
- Agent initiates checkout with selected items
- Payment handler processes tokenized payment
- Consumer confirms the purchase (required step)
- Order is placed and tracking begins
The Key Players
UCP was co-developed by Shopify and Google, with support from Visa, Mastercard, PayPal, and other payment networks. The spec is open source and lives at ucp.dev.
Shopify has built native UCP support into the platform, meaning any Shopify merchant can enable UCP from their admin panel. Google Shopping acts as a discovery layer, surfacing UCP merchants to agents.
Getting Started
If you want to build with UCP:
- Read the spec. The official documentation is well-written and comprehensive.
- Pick an SDK. Official SDKs exist for Python, JavaScript, and Go.
- Use the tools. Our UCP validator checks your manifest. The generator creates one from a form.
- Browse the ecosystem. The UCPList directory tracks every known UCP implementation.
UCP is still early. The ecosystem is growing fast, and the tooling gets better every week. If you build commerce software, this protocol is going to matter.
Read next
Everything you need to know about UCP, the open protocol enabling AI agents to shop, compare, and checkout on behalf of consumers across the internet.
Practical project ideas using the Universal Commerce Protocol, with code snippets and links to tools and merchants you can start building against right now.
A practical guide for connecting LangChain, CrewAI, AutoGen, and other AI agent frameworks to UCP merchant endpoints. Includes code examples for each framework.