# The UCP and MCP Endpoints in Your agents.md, Explained

Canonical: https://joinagentready.com/blog/ucp-mcp-endpoints-agents-md

[By Dylan Hunt](https://joinagentready.com/authors/dylan-hunt) June 11th, 2026 [AI discovery files](https://joinagentready.com/blog/topics/ai-discovery-files)

Most coverage of `agents.md` treats it as a description: a brand brief an agent reads. That's half of it. The other half is the part that makes `agents.md` different from a plain `llms.txt` index: it carries the **rails an agent transacts on.** This post is about those rails, what the UCP and MCP endpoints are, and the flow an agent runs across them.

## Two protocols, two jobs

You'll see two endpoints referenced in a well-formed Shopify `agents.md`:

-   **UCP discovery** at `/.well-known/ucp`. UCP, the Universal Commerce Protocol, is the commerce standard. The discovery endpoint is the agent's first call: it returns what your store supports, which protocol versions, which capabilities, which payment handlers. It's the "what can this store do" answer.
-   **MCP endpoint** at `/api/ucp/mcp`. MCP, the Model Context Protocol, is the transport an agent uses to _call tools_. This is where the agent actually does things: searches your catalog, builds a cart, creates a checkout. It's the "now do it" channel.

The clean way to think about it: **UCP is the menu, MCP is the kitchen.** The agent reads the menu to see what's possible, then sends orders to the kitchen. `agents.md` is the sign on the door that points at both.

## Why both live in agents.md

`agents.md` is where an agent starts, so it's where the rails belong. An agent that has your store in view fetches `agents.md`, learns what you are, and finds the two endpoints it needs to transact. Without them, the file is a brochure: the agent understands your brand but has no supported way to buy, so it falls back to scraping your storefront, parsing HTML, guessing at price and availability, and getting it wrong often enough to not recommend you.

This is the difference between `agents.md` and the older [`llms.txt`](https://joinagentready.com/blog/llms-txt-explained) index. `llms.txt` says "here are my pages." `agents.md` says "here's how you do business with me." The endpoints are what make it a storefront for agents, not just a sitemap.

## The discovery-to-checkout flow

Here's the sequence a shopping agent runs, and what each step uses:

1.  **Discover:** `GET /.well-known/ucp`. Confirm the store's capabilities and supported versions before doing anything else.
2.  **Search:** call `search_catalog` over the MCP endpoint to find products matching the shopper's intent.
3.  **Cart:** `create_cart` to add the chosen items.
4.  **Checkout:** `create_checkout`, then `update_checkout` to set the shipping address and method.
5.  **Complete:** `complete_checkout` to finalize. Critically, **this requires the buyer's explicit, contemporaneous approval before payment.** An agent should never complete payment on its own.

A good `agents.md` spells out this flow and the rules around it (human approval for checkout, backing off on rate limits, passing buyer context like country and currency for accurate pricing). That's not decoration: it tells the agent how to transact the _supported_ way, which is faster and more reliable than improvising.

## You don't build the endpoints. You point at them correctly.

On Shopify, these endpoints are provided by the platform at standard paths on your domain. You don't implement UCP or MCP yourself. What you do in `agents.md` is reference them correctly, and the right way is to use Shopify's `agents` Liquid object rather than hardcoding URLs:

| Object | Resolves to |
| --- | --- |
| `agents.ucp_discovery_url` | Your UCP discovery endpoint (`{store_url}/.well-known/ucp`) |
| `agents.mcp_endpoint_url` | Your MCP endpoint (`{store_url}/api/ucp/mcp`) |
| `agents.ucp_versions` | The protocol versions your store supports, newest first |

Why the objects and not the raw URLs? Freshness. The endpoints are how an agent actually transacts, and they're Shopify's to change. Reference the objects and your file follows the platform; hardcode them and the day Shopify moves an endpoint, your file hands agents a dead address. (More on the `agents` object in [the pillar](https://joinagentready.com/blog/agents-md-shopify).)

## Getting it right without hand-writing it

The endpoints, the flow, and the rules need to be precise, an agent acts on them literally. [AgentReady](https://app.joinagentready.com/) generates an `agents.md` with the UCP and MCP rails matched to Shopify's, alongside your brand content, so you don't have to keep the transaction section correct by hand. For where these rails sit among the other discovery files, see [robots.txt vs llms.txt vs agents.md](https://joinagentready.com/blog/robots-txt-vs-llms-txt-vs-agents-md); for the broader picture, the [complete agentic commerce guide](https://joinagentready.com/blog/shopify-agentic-commerce-guide).

The free [AI-readiness checker](https://joinagentready.com/tools/shopify-ai-readiness-checker) reads your store the way an agent does and reports whether your `agents.md` is set up to be understood and transacted with.

[Run the checker](https://joinagentready.com/tools/shopify-ai-readiness-checker) to see what an agent can do with your store today.

Quick answers

## Frequently asked questions

**What are the UCP and MCP endpoints in agents.md?**

They're the machine interfaces an AI agent uses to transact with your store, listed in agents.md so an agent can find them. The UCP discovery endpoint (/.well-known/ucp) tells the agent what protocols and capabilities your store supports. The MCP endpoint (/api/ucp/mcp) is where the agent calls tools (search your catalog, build a cart, create and complete a checkout) without scraping your storefront.

**What's the difference between UCP and MCP?**

UCP (Universal Commerce Protocol) is the commerce standard: the capabilities, versions, and payment handlers your store supports. MCP (Model Context Protocol) is the transport an agent uses to call tools. In practice, the agent reads UCP discovery to learn what you can do, then uses the MCP endpoint to actually do it. agents.md lists both so the agent can start.

**Do I have to set up the UCP and MCP endpoints myself?**

No. On Shopify these endpoints are provided by the platform at standard paths on your domain. Your job in agents.md is to point at them correctly, which is why you should reference Shopify's agents Liquid object (agents.ucp\_discovery\_url, agents.mcp\_endpoint\_url) instead of hardcoding URLs that could drift if Shopify changes them.

**What is the agent's discovery-to-checkout flow?**

Discover (GET the UCP discovery endpoint to confirm capabilities and versions), search (call search\_catalog to find matching products), cart (create\_cart to add items), checkout (create\_checkout, then update\_checkout for shipping), and complete (complete\_checkout, which requires the buyer's explicit approval before payment). agents.md describes this flow so an agent transacts the supported way instead of guessing.

**Why list the endpoints in agents.md instead of letting agents scrape?**

Scraping is brittle and slow: the agent parses HTML, guesses at prices and stock, and can get it wrong. The UCP/MCP rails give it structured, authoritative answers and a real checkout path. Pointing at them in agents.md is how you tell an agent 'use the front door, not the window.'

Dylan Hunt

Author

[Dylan Hunt](https://joinagentready.com/authors/dylan-hunt)

Builds Shopify catalog readability and AI answer visibility at AgentReady and Caffeine and Commerce.

[About Dylan →](https://joinagentready.com/authors/dylan-hunt)

## Check your storefront’s public data

Get a free report on the product markup and discovery files the checker finds in under a minute.

[Run free audit](https://joinagentready.com/tools/shopify-ai-readiness-checker) [View on the App Store](https://apps.shopify.com/agentreadyapp?utm_source=agentready&utm_medium=referral&utm_campaign=site_install&utm_content=blog_cta)

## Comments

Every comment here comes from a verified email. Write yours, confirm from your inbox, and it's live.

Loading comments…

Share [X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fjoinagentready.com%2Fblog%2Fucp-mcp-endpoints-agents-md&text=The%20UCP%20and%20MCP%20Endpoints%20in%20Your%20agents.md%2C%20Explained) [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fjoinagentready.com%2Fblog%2Fucp-mcp-endpoints-agents-md) [Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fjoinagentready.com%2Fblog%2Fucp-mcp-endpoints-agents-md)

Written by [Dylan Hunt](https://joinagentready.com/authors/dylan-hunt), Founder, AgentReady. AgentReady audits Shopify structured data and checks approved changes on the live storefront. [See plans](https://joinagentready.com/pricing).

One product, plus research

### The product, and the research behind it

-   Schema for AI
    
    For Shopify today
    
    Make your Shopify catalog easier for AI to understand.
    
    From $9/mo
    
    [Explore Schema for AI →](https://joinagentready.com/features/structured-data)
-   AI Answers
    
    Research preview, not for sale
    
    See what AI says. Improve the source. Compare what changed.
    
    [Read the research record →](https://joinagentready.com/ai-answers)

Free guide

### The Shopify Functions Playbook

25 real things you can build with Functions, with the plan requirements and limits stated plainly. Emailed to you, readable immediately.

More in AI discovery files

-   [Does Shopify's Default robots.txt Block AI Crawlers? We Read the File](https://joinagentready.com/blog/shopify-default-robots-txt-ai-crawlers)
-   [What Shopify's Default agents.md and llms.txt Contain, and What Is Worth Changing](https://joinagentready.com/blog/shopify-default-agents-md-llms-txt)
-   [What AI Assistants Actually See When They Read Your Shopify Store](https://joinagentready.com/blog/what-ai-assistants-see-when-they-read-your-store)
-   [How to Generate an llms.txt File for Your Shopify Store](https://joinagentready.com/blog/generate-llms-txt-shopify)

[See all in AI discovery files →](https://joinagentready.com/blog/topics/ai-discovery-files)
