UCP Explained: The Protocol That Lets AI Agents Buy Things For You

By Prahlad Menon 5 min read

You’ve probably noticed your AI assistant getting better at finding products. It can compare prices, read reviews, and make recommendations. But when it’s time to actually buy something, you’re back to clicking through checkout flows yourself.

That’s about to change. Google’s Universal Commerce Protocol (UCP) is designed to close that gap — giving AI agents the ability to complete purchases on your behalf, securely and at scale.

What Problem Does UCP Solve?

The e-commerce landscape is fragmented. Every platform has its own APIs, checkout flows, and integration requirements. If you’re an AI platform wanting to enable purchases, you face an N×N integration nightmare: custom connections for every merchant, every payment processor, every product catalog.

UCP collapses this into a single standard. One integration point. One common language. Every merchant, every AI surface, speaking the same protocol.

Think of it this way:

  • Before UCP: AI assistant finds product → hands off to you → you navigate checkout → you enter payment → done
  • After UCP: AI assistant finds product → confirms with you → completes purchase → done

The AI doesn’t just recommend. It transacts.

The Protocol Landscape: Where UCP Fits

If you’ve been following the agentic AI space, you’ve encountered alphabet soup: MCP, A2A, AP2, UCP. Here’s how they relate:

ProtocolPurposeWho Made It
MCPAgent ↔ Tools/DataAnthropic
A2AAgent ↔ AgentGoogle → Linux Foundation
AP2Secure payment authorizationGoogle
UCPAgent ↔ Commerce (full lifecycle)Google + Shopify, Walmart, Visa, etc.

MCP is the “USB-C of AI” — a universal way for agents to connect to tools and data sources. UCP is the commerce-specific layer that sits on top. They’re complementary:

  • MCP might connect your agent to a merchant’s product catalog
  • UCP handles the checkout, payment, and order management

In fact, UCP is transport-agnostic. Merchants can expose their capabilities via REST APIs, MCP, or A2A — whatever fits their infrastructure.

How UCP Works

UCP breaks commerce into composable building blocks:

Capabilities

These are the core functions a business can expose:

  • Checkout — Cart management, tax calculation, session handling
  • Identity Linking — OAuth 2.0 authorization for user actions
  • Order — Webhook-based order lifecycle updates (shipped, delivered, returned)
  • Payment Token Exchange — Secure credential handling between PSPs

Extensions

Capabilities can be enhanced with extensions:

  • Discounts — Promo codes, member pricing
  • Fulfillment — Shipping options, delivery tracking
  • Personalization — User preferences, saved addresses

Discovery

Businesses declare their supported capabilities in a standardized profile. AI platforms can dynamically discover what a merchant supports and configure themselves accordingly. No manual integration mapping.

The Architecture

Here’s the flow:

┌─────────────────┐     ┌─────────────┐     ┌─────────────────┐
│   AI Surface    │────▶│     UCP     │────▶│    Business     │
│ (Gemini, Agent) │     │   Gateway   │     │    Backend      │
└─────────────────┘     └─────────────┘     └─────────────────┘


                        ┌─────────────┐
                        │   Payment   │
                        │   Handler   │
                        │ (Stripe,    │
                        │  Visa, etc) │
                        └─────────────┘

Key design decisions:

Merchant of Record stays with the business. UCP doesn’t intermediate the transaction — it standardizes the interface. The merchant maintains control over pricing, inventory, and fulfillment.

Payments are modular. UCP separates instruments (what consumers use to pay) from handlers (payment processors). This allows any PSP to plug in.

Security is cryptographic. Every authorization is backed by verifiable proof of user consent. No agent can make purchases without explicit user approval.

Who’s Behind It?

This isn’t a paper spec. UCP launched with serious industry backing:

Retail: Shopify, Etsy, Wayfair, Target, Walmart, Best Buy, Macy’s, The Home Depot, Flipkart, Zalando

Payments: Visa, Mastercard, American Express, Stripe, Adyen

AI Platforms: Google (AI Mode in Search, Gemini)

When Shopify, Walmart, and Visa are all in the room agreeing on a standard, that’s not a proposal — that’s infrastructure.

For Developers: Getting Started

UCP is open source with SDKs and sample implementations:

Explore:

Sample Implementations:

Quick Start (Node.js):

// Declare capabilities in your UCP profile
{
  "capabilities": {
    "checkout": {
      "version": "1.0",
      "transports": ["rest", "mcp"]
    },
    "order": {
      "version": "1.0",
      "webhookUrl": "https://yourstore.com/webhooks/order"
    }
  }
}

Conformance Testing: Google provides conformance tests to validate your implementation: github.com/Universal-Commerce-Protocol/conformance

What This Means for Different Audiences

For E-commerce Developers: UCP is the new integration surface for AI-driven commerce. If your platform isn’t UCP-compatible, you’re invisible to the next generation of shopping agents. The good news: it’s designed to work with existing infrastructure, not replace it.

For AI Platform Builders: UCP provides the missing primitives for agentic commerce. Instead of building bespoke integrations with every merchant, you implement UCP once and gain access to the entire ecosystem.

For Consumers: When your favorite brands adopt UCP, buying becomes as simple as telling your AI assistant what you want. No checkout friction. No form filling. Just approval and done.

The Bigger Picture

We’re watching the emergence of a full agentic protocol stack:

  • MCP for tools and data
  • A2A for agent collaboration
  • UCP for commerce
  • AP2 for payments

Each layer is open, composable, and backed by major industry players. The pattern is clear: standardization is winning. Proprietary integrations are becoming technical debt.

For commerce specifically, UCP represents the moment when “AI shopping assistant” stops being a research demo and becomes infrastructure. The protocol is live. The partners are shipping. The question isn’t whether agentic commerce will happen — it’s whether you’ll be part of it.


UCP documentation and SDKs are available at ucp.dev. The protocol is developed by Google in collaboration with Shopify, Visa, Mastercard, and 20+ industry partners.