What is /.well-known/ucp? A UCP profile for MCP servers
/.well-known/ucp is where a business publishes its Universal Commerce Protocol profile, a JSON file telling agent platforms which UCP version it speaks, which services it offers over which transports (including MCP), which capabilities it supports and how it takes payment. It needs ucp.version, ucp.services and ucp.payment_handlers, must be served over HTTPS with no redirect, and needs Cache-Control: public with a max-age of at least 60 seconds. Publish one for an MCP server only if that server implements UCP's tools, such as create_checkout.
The pages that rank for this path are platform docs (Google Merchant, Shopify) and checker tools, each about one platform's setup. This guide works from the UCP specification itself, as of release 2026-08-25 and the main branch on 2026-11-25, and is written for someone who already runs an MCP server.
What the profile is for
In UCP, the business and the agent platform each publish a profile. The specification's overview describes the flow. The platform may fetch the business profile from /.well-known/ucp, and caches it. With every request it sends the URL of its own profile. The business fetches that, computes the intersection of the two capability lists, and picks the highest version both sides support for each capability. Extensions whose parent capability didn't survive the intersection are dropped. The result is the set of features active for that session.
So the file isn't a marketing page or an SEO signal. It is a machine contract, and anything you list in it, a platform will try to use.
The fields
| Field | Required? | What it holds |
|---|---|---|
ucp.version | Yes | The protocol version you currently speak, as a date, such as 2026-08-25 |
ucp.services | Yes, even if empty | Services keyed by name (for example dev.ucp.shopping), each an array of bindings with version, transport, endpoint and schema |
ucp.capabilities | Optional | Features such as dev.ucp.shopping.checkout, each with version, spec and schema; extensions add extends |
ucp.payment_handlers | Yes, even if empty | The payment handlers you accept, with their instruments and config |
ucp.supported_versions | Optional | A map from each older version you still support to a complete profile for that version |
keys | Optional | Public JWKs for HTTP Message Signatures and signed webhooks, at the top level, so the file is also a valid JWK Set |
The spec says capabilities may be omitted, but useful commerce profiles normally list at least one. Two rules catch people out. A capability's schema URL must be on the domain that matches its namespace, so dev.ucp.* schemas live on ucp.dev, and anything you invent goes under your own reverse domain, such as com.example.*. And a key you revoke isn't revoked until it is gone from keys.
A minimal profile for an MCP endpoint
This is trimmed from the example in the spec's checkout MCP binding, with the version filled in. Replace the host and the payment handler with your own.
{
"ucp": {
"version": "2026-08-25",
"services": {
"dev.ucp.shopping": [
{
"version": "2026-08-25",
"spec": "https://ucp.dev/2026-08-25/specification/overview",
"transport": "mcp",
"schema": "https://ucp.dev/2026-08-25/services/shopping/mcp.openrpc.json",
"endpoint": "https://shop.example.com/ucp/mcp"
}
]
},
"capabilities": {
"dev.ucp.shopping.checkout": [
{
"version": "2026-08-25",
"spec": "https://ucp.dev/2026-08-25/specification/shopping/checkout",
"schema": "https://ucp.dev/2026-08-25/schemas/shopping/checkout.json"
}
]
},
"payment_handlers": {
"com.example.vendor.delegate_payment": [
{
"id": "handler_1",
"version": "2026-08-25",
"spec": "https://example.vendor.com/specs/delegate-payment",
"schema": "https://example.vendor.com/schemas/delegate-payment-config.json",
"available_instruments": [
{ "type": "card" }
],
"config": {}
}
]
}
}
}
The endpoint is the URL your MCP server answers JSON-RPC on. It must be HTTPS and shouldn't end in a slash. You can list REST, A2A and embedded bindings for the same service next to the MCP one; the spec's full example in the overview does exactly that.
What your MCP server has to do in return
Listing "transport": "mcp" promises that your server exposes UCP's tools with UCP's arguments. For checkout, the MCP binding defines five:
create_checkout, which returns a newcheckout.idget_checkoutupdate_checkoutcomplete_checkout, which places the ordercancel_checkout
Every call carries a meta object in its arguments, and meta["ucp-agent"].profile is required on all of them. That is how you learn which platform profile to fetch. complete_checkout and cancel_checkout also require meta["idempotency-key"], so a retried completion doesn't place a second order. Our post on MCP tool idempotency covers how to store and replay those keys. Every response must include a ucp field naming the version used and the capabilities active for that response.
Hosting rules that break real deployments
The profile requirements are short, and most failures come from the web server rather than the JSON:
- HTTPS only. Platforms must reject profiles served over plain HTTP.
- No redirects. The profile endpoint must not answer with a 3xx, and platforms must not follow one. This is the one most sites hit. Our own apex domain,
cartapi.io, answers/.well-known/ucpwith a 308 towww, which is normal for a website and fatal for a profile. Serve it, without a redirect, on every host agents might use, and watch for trailing-slash rewrites. - Cacheable. Send
Cache-Controlwithpublicandmax-ageof at least 60, neverprivate,no-storeorno-cache, plus anETagorLast-Modified. Platforms are told to cache for at least 60 seconds anyway. - Stable. One URL, no per-session content. If you need to vary something per buyer, it belongs in the checkout, not the profile.
- Small. The spec notes documented profiles are under 5 KiB and tells verifiers not to cap responses below 128 KiB.
- Right content type. The path has no extension, so set
Content-Type: application/jsonexplicitly rather than trusting your host's guess.
On a static Vercel site, the headers part looks something like this in vercel.json. It's an illustration, not something we run in production:
{
"headers": [
{
"source": "/.well-known/ucp",
"headers": [
{ "key": "Content-Type", "value": "application/json" },
{ "key": "Cache-Control", "value": "public, max-age=300" }
]
}
]
}
Then check from outside, on both hosts:
curl -sI https://example.com/.well-known/ucp
curl -sI https://www.example.com/.well-known/ucp
You want 200, your JSON content type and the cache header on whichever host your endpoint and brand use, with no location: line.
When you shouldn't publish one
Many MCP servers that sell things don't implement UCP. cartapi is one: its MCP server exposes its own tools, such as search_topups, create_topup_checkout and get_checkout_link, which return a Stripe-hosted link the buyer pays on. Those aren't UCP's create_checkout and complete_checkout, so a profile advertising dev.ucp.shopping over MCP would send platforms to tools that don't exist. We don't publish one, and www.cartapi.io/.well-known/ucp returned 404 when we checked on 2026-11-25.
If you're in the same place, your options are:
- Add the UCP tools alongside your own. An MCP server can expose both sets. Then the profile is honest.
- Publish a UCP REST binding instead, if your checkout already looks like UCP's session model, and leave MCP out of the profile.
- Wait. Agents that use your MCP server directly don't need the profile at all. It matters when a UCP platform is choosing businesses to transact with.
How UCP compares with ACP's /.well-known/acp.json, and which one to implement first, is in UCP vs ACP. For the broader map of protocols, see ACP vs MCP vs A2A. To see UCP on a live platform, read Shopify Catalog MCP vs Storefront MCP.
Checklist before you ship it
ucp.version,ucp.servicesanducp.payment_handlersare present; the latter two may be{}.- Every
schemaURL is on the domain that owns its namespace. - Every MCP binding's
endpointanswers the UCP tools for the capabilities you list. - Your server reads
meta["ucp-agent"]on every call and enforcesmeta["idempotency-key"]on complete and cancel. - HTTPS, no 3xx on any host,
Cache-Control: public, max-ageof 60 or more, anETagorLast-Modified. - If you still support an older version,
supported_versionspoints at a complete profile for it, and that profile has nosupported_versionsof its own. - If you publish
keys, you have a process for removing one.
FAQ
What is /.well-known/ucp?
It is the URL where a business publishes its Universal Commerce Protocol profile: a JSON document listing the UCP version it speaks, its services and their transports (REST, MCP, A2A or embedded), the capabilities it supports, its payment handlers and, optionally, public signing keys. Agent platforms read it to work out what they can do with that business.
Which fields are required in a UCP profile?
A top-level ucp object with version, services and payment_handlers. The services and payment_handlers objects must be present even when empty. capabilities is optional but a useful commerce profile normally lists at least one. keys and supported_versions are optional.
Can /.well-known/ucp redirect to www?
No. The UCP specification says profile endpoints must not use redirects, and platforms must not follow them. If your apex domain redirects to www, the profile has to be reachable without a redirect on the host agents will request.
What Cache-Control header does a UCP profile need?
Cache-Control with public and a max-age of at least 60 seconds. It must not be served with private, no-store or no-cache, and should carry an ETag or Last-Modified validator.
Does every MCP server need a /.well-known/ucp profile?
No. Only publish one if your MCP endpoint implements UCP's tool binding, such as create_checkout and complete_checkout. A server with its own tool names is not a UCP shopping service, and advertising one would send platforms to tools that don't exist.
Does cartapi publish a UCP profile?
Not yet. cartapi's MCP server uses its own tools, such as search_topups and create_topup_checkout, rather than UCP's checkout binding, so www.cartapi.io/.well-known/ucp returned 404 on 2026-11-25.
Try it
Want to see an agent buy something through MCP today, without a UCP platform in the loop? Add cartapi from the install page, or read the docs. Background on the payment side: consent-first checkout and Stripe Checkout from an MCP server.