Shopify Storefront MCP Migration: Catalog, Cart & Checkout
Short answer
Shopify removed the catalog and cart tools from Storefront MCP at https://{shop}/api/mcp. Their documented replacements live at https://{shop}/api/ucp/mcp: Storefront Catalog MCP (search_catalog, lookup_catalog, get_product), Cart MCP (create_cart, get_cart, update_cart, cancel_cart), Checkout MCP for checkout, and Ask MCP (ask_business) for policy questions. Every request must carry an agent profile URL.
Key takeaways
- The catalog and cart tools on /api/mcp are gone; the current endpoint for the replacements is /api/ucp/mcp.
- Every request to /api/ucp/mcp needs meta["ucp-agent"].profile, a public URL to your agent's UCP profile.
- Cart MCP update_cart uses PUT semantics: omitted line items and fields are removed, so always send the full cart.
- Cart MCP accepts unauthenticated calls; Checkout MCP requires a Bearer token or signed requests.
- Business outcomes (not_found, quantity_adjusted) come back inside a successful result's messages array, not as JSON-RPC errors.
- Customer Accounts MCP is unchanged; Shopify points order tracking through UCP to Order MCP.
Why did the old Shopify MCP endpoint stop working?
Because Shopify removed the catalog and cart tools it served. Shopify's Storefront MCP migration page states plainly that "the catalog and cart tools on https://{shop}/api/mcp were removed," and it directs developers to the Universal Commerce Protocol (UCP) endpoint at https://{shop}/api/ucp/mcp instead.
The removal was announced in stages. A Shopify developer changelog entry dated June 24, 2026 deprecated the Storefront MCP get_cart and update_cart tools in favor of UCP Cart MCP and said the deprecated tools "will be maintained until August 31, 2026." That entry did not give a separate shutdown date. As of 2026-11-29, the migration page describes the catalog and cart tools in the past tense, so any integration still calling them should be treated as broken, not merely deprecated.
- MCP (Model Context Protocol)
- An open protocol that lets AI clients discover and call tools exposed by a server, using JSON-RPC 2.0 messages.
- Storefront MCP
- Shopify's earlier per-store MCP server at /api/mcp, whose catalog and cart tools have been removed.
- UCP (Universal Commerce Protocol)
- An open commerce protocol for catalog, cart, checkout, and order capabilities; Shopify serves its MCP binding at /api/ucp/mcp. See our UCP guide.
- Agent profile
- A public JSON document declaring the UCP version and capabilities your agent supports; merchants fetch it to negotiate which tools you see.
Which current Shopify tools replace each Storefront MCP tool?
Shopify documents a one-to-many map. Catalog reads move to Storefront Catalog MCP, cart operations move to Cart MCP, checkout moves to its own Checkout MCP, and policy or FAQ questions move to Ask MCP. All four are served from the same per-store endpoint.
| Former capability on /api/mcp | Current replacement | Tools | Endpoint |
|---|---|---|---|
search_catalog, get_product_details | Storefront Catalog MCP | search_catalog, lookup_catalog, get_product (plus search_locations, lookup_locations when eligible) | https://{shop}/api/ucp/mcp |
get_cart, update_cart | Cart MCP | create_cart, get_cart, update_cart, cancel_cart | https://{shop}/api/ucp/mcp |
| Checkout URL from the cart | Checkout MCP | create_checkout, get_checkout, update_checkout, complete_checkout, cancel_checkout | https://{shop}/api/ucp/mcp |
| Policy and FAQ questions | Ask MCP | ask_business | https://{shop}/api/ucp/mcp |
| Customer account tools | Customer Accounts MCP (unchanged; docs moved) | Unchanged | See Shopify's Customer Accounts MCP page |
| Order tracking through UCP | Order MCP | See Shopify's Order MCP page | UCP |
Two names survive (search_catalog, get_cart, update_cart), but their argument shapes changed: catalog inputs now sit inside a catalog object, and every call carries a meta object. Don't assume a same-named tool accepts your old payload.
Shopify also points developers building third-party AI assistants toward Shop MCP, which works across merchants, and says the tool map is for teams that "would rather keep calling each store's UCP endpoint yourself as Storefront MCP did." Storefront Catalog MCP is single-merchant; Shopify directs cross-merchant discovery to Global Catalog MCP.
What changed in the tool contract?
The endpoint path, identification model, argument nesting, and cart update semantics all changed. The table compares what matters for a migration.
| Aspect | Storefront MCP (removed) | UCP MCP on /api/ucp/mcp (current) |
|---|---|---|
| Endpoint | https://{shop}/api/mcp | https://{shop}/api/ucp/mcp |
| Wire format | JSON-RPC 2.0 over MCP | JSON-RPC 2.0, tools/list and tools/call |
| Agent identification | Not described on the migration page | Required meta["ucp-agent"].profile on every request |
| Tool visibility | Fixed set | Depends on capabilities your profile declares (for example, location tools need dev.ucp.common.location.*) |
| Catalog arguments | Not reproduced here | Nested in catalog (query, context, pagination, ids, id, selected) |
| Cart creation | Not a listed tool | Explicit create_cart |
| Cart updates | Not reproduced here | update_cart with PUT semantics: full replacement, no server-side merge |
| Checkout | Checkout URL from the cart | Separate Checkout MCP session; buyer handoff via continue_url |
| Prices | Not reproduced here | Minor units, for example "amount": 1899 with "currency": "USD" |
| Version marker | None documented | ucp.version in responses (2026-08-25 in current examples) |
Current catalog inputs, as documented
| Tool | Required inputs | Optional inputs and limits |
|---|---|---|
search_catalog | meta | catalog.query; catalog.context (address_country, language, currency, intent); catalog.pagination (cursor, limit 1–250, default 10) |
lookup_catalog | meta, catalog.ids | Up to 10 product or variant IDs; catalog.context |
get_product | meta, catalog.id | catalog.selected, for example {"name": "Color", "label": "Blue"}; catalog.context |
ask_business | meta, ask.query (up to 10,000 characters) | ask.ids (up to 10 store GIDs), ask.context (8,192 bytes max); profile must declare dev.ucp.common.ask |
Shopify-specific extra filters and variant fields are documented separately in the Storefront Catalog extension. Shopify's ucp CLI (part of the Shopify AI Toolkit) can fetch a merchant's live input schema with --input-schema, which is the safest way to confirm inputs before you write code.
How do requests to /api/ucp/mcp authenticate?
Catalog and cart calls identify the agent with a profile URL rather than a token. Checkout calls must be authenticated or signed. The requirements differ by capability, so plan them separately.
| Capability | Credential | Extra requirements |
|---|---|---|
| Storefront Catalog MCP | Agent profile in meta | Tools returned depend on declared capabilities |
| Cart MCP | Agent profile; unauthenticated calls accepted | If you send a Bearer token, also send Shopify-Buyer-IP; cancel_cart needs meta["idempotency-key"] (UUID) |
| Checkout MCP | Bearer JWT from client credentials, or HTTP Message Signatures (for example RFC 9421) | Shopify-Buyer-IP on token-tier requests; idempotency-key on complete_checkout and cancel_checkout |
| Ask MCP | Agent profile | Profile must declare dev.ucp.common.ask |
For tokens, Shopify's authentication tutorial says to create an API key under Catalogs in the Dev Dashboard, then POST client_id, client_secret, and grant_type: client_credentials to https://api.shopify.com/auth/access_token. Tokens expire after 60 minutes, and Shopify recommends fetching a fresh token at runtime. Keep the client secret on your server; it should never reach a browser, a prompt, or a log.
Host the agent profile at a stable public URL. Shopify's examples use paths such as https://shopify.dev/ucp/agent-profiles/examples/2026-08-25/cart-and-checkout.json. Converting a cart to checkout with cart_id only works if the profile declares both dev.ucp.shopping.cart and dev.ucp.shopping.checkout. For the broader authorization model behind MCP servers you build yourself, see MCP authentication for ecommerce.
How do we preserve carts when moving to Cart MCP?
Treat every update_cart as a full write. Shopify's Cart MCP page says each request "replaces the full cart state," any omitted field such as line_items or context is removed, and there is no server-side merge. It warns that this differs from Storefront API and AJAX cart mutations, which patch individual fields.
- Read, modify, write. Call
get_cart, apply the change locally, then send the completeline_itemsarray plus anycontextyou want to keep. - Resend attribution. Shopify says to resend
attributionto keep it. Omittingbuyer.consentleaves existing consent unchanged, which is the one documented exception. - Serialize writes per cart. Without a server merge, two concurrent updates can drop each other's lines. Queue updates per cart ID in your agent.
- Handle expiry as a result, not an exception. A missing or expired cart returns a successful
resultwhosemessagesinclude codenot_foundwith severityunrecoverable. Create a new cart and tell the shopper. - Store IDs exactly. Cart IDs look like
gid://shopify/Cart/cart_abc123and line IDs likegid://shopify/CartLine/li_1?cart=cart_abc123. Treat them as opaque strings. - Keep the handoff link.
create_cartreturns acontinue_url(for examplehttps://shop.example.com/cart/c/cart_abc123) so the shopper can pick the cart up on the storefront.
// Illustrative TypeScript, based on Shopify Cart MCP documentation as of 2026-11-29.
// Not run against a Shopify store. update_cart REPLACES the whole cart (PUT semantics),
// so read the current state, change it locally, and send everything you want to keep.
type LineItem = { quantity: number; item: { id: string } };
async function callUcp(shop: string, name: string, args: Record<string, unknown>) {
const res = await fetch("https://" + shop + "/api/ucp/mcp", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
jsonrpc: "2.0",
id: crypto.randomUUID(),
method: "tools/call",
params: {
name,
arguments: { meta: { "ucp-agent": { profile: AGENT_PROFILE_URL } }, ...args },
},
}),
});
if (res.status === 429) throw new RetryLater(res.headers.get("Retry-After"));
const body = await res.json();
if (body.error) throw new ProtocolError(body.error.code, body.error.message);
return body.result.structuredContent; // business problems arrive in .messages
}
async function setQuantity(shop: string, cartId: string, variantId: string, qty: number) {
const current = await callUcp(shop, "get_cart", { id: cartId });
const notFound = (current.messages ?? []).some((m: any) => m.code === "not_found");
if (notFound) return { recreate: true };
// Keep every existing line, then apply the one change.
const lines: LineItem[] = current.cart.line_items
.filter((l: any) => l.item.id !== variantId)
.map((l: any) => ({ quantity: l.quantity, item: { id: l.item.id } }));
if (qty > 0) lines.push({ quantity: qty, item: { id: variantId } });
return callUcp(shop, "update_cart", {
id: cartId,
cart: {
line_items: lines,
context: current.cart.context, // omitted fields are removed
attribution: current.cart.attribution, // resend to keep it
},
});
}What do successful and failed requests look like?
Shopify separates protocol errors from business outcomes. Protocol failures (authentication, rate limiting, discovery) return a JSON-RPC error. Everything else, including an empty or expired cart, returns a normal result with a messages array you must inspect.
POST https://{storedomain}/api/ucp/mcp
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "search_catalog",
"arguments": {
"meta": {
"ucp-agent": {
"profile": "https://agent.example/profiles/shopping-agent.json"
}
},
"catalog": {
"query": "organic coffee beans",
"context": { "address_country": "US", "intent": "Customer prefers fair trade products" },
"pagination": { "limit": 10 }
}
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"structuredContent": {
"ucp": {
"version": "2026-08-25",
"capabilities": { "dev.ucp.shopping.catalog.search": [ { "version": "2026-08-25" } ] }
},
"products": [
{
"id": "gid://shopify/Product/1001",
"title": "Fair Trade Organic Whole Bean Coffee",
"price_range": {
"min": { "amount": 1899, "currency": "USD" },
"max": { "amount": 3499, "currency": "USD" }
}
}
],
"pagination": { "has_next_page": true, "total_count": 24 }
}
}
}| Situation | How it comes back | What your agent should do |
|---|---|---|
| Auth failure or discovery problem | JSON-RPC error, code -32000 (for example "Unauthorized") or -32001 for discovery | Fix credentials or profile; don't retry blindly |
| Rate limited | Protocol error; honor HTTP Retry-After | Back off; if no header, exponential backoff with jitter |
| Cart missing or expired | result.messages[] with not_found, severity unrecoverable | Create a new cart from known line items |
| Quantity reduced by the store | Warning quantity_adjusted with path $.line_items[0].quantity | Show the adjusted quantity to the shopper |
| Cart canceled | Info message cart_canceled; later get_cart returns not_found | Drop the stored cart ID |
| Bad cart ID on checkout conversion | invalid_cart_id (not a valid GID) or cart_not_found | Validate GIDs before calling; recreate the cart |
| Unsupported location filter | invalid_input (only filters.items is supported) | Remove unsupported keys |
| Unresolved IDs in lookups | not_found messages for those identifiers | Return partial results; don't fail the whole call |
One more documented rule: don't retry within the same checkout or payment lifecycle without an idempotency-key. Payment retries without one can create duplicate attempts.
How do we hand a Cart MCP cart to checkout?
Call create_checkout on Checkout MCP with cart_id inside the checkout object and line_items: []. Shopify documents that the cart's line items, context, and buyer take precedence over overlapping payload fields, that conversion is idempotent for an incomplete checkout on the same cart, and that cart_id is not echoed back, so store it yourself.
- Forward discount codes in
checkout.discounts.codes; Shopify says not to assume they carry over. - When status is
requires_escalation, presentcontinue_urlso the buyer finishes on the merchant's checkout. For general access, Shopify says this handoff is how checkout completes and you do not callcomplete_checkout. - Before showing
continue_url, confirm its scheme ishttps:. Its host may differ from the endpoint host. Share it only with the buyer and never log it. - Call
complete_checkoutonly when status isready_for_complete, the buyer has reviewed the summary, and your access tier allows it. - Checkout MCP is rate-limited more strictly than Cart MCP, so iterate on the cart and create a checkout only when the buyer is ready.
Checkout access is a separate eligibility question from catalog access. A working cart integration does not prove an AI platform will let you complete orders; see agentic checkout testing for the test plan we use.
What is the migration task map?
Work from an inventory of calls, not from a rewrite. Most migrations are a handful of tool calls plus the cart semantics change.
- 1
Inventory legacy calls
Search your code and logs for
/api/mcpand each former tool name. Record which shopper journeys depend on each. - 2
Publish an agent profile
Host a UCP profile declaring the version (
2026-08-25in current docs) and the capabilities you need: catalog search/lookup, cart, checkout, ask, and location only if relevant. - 3
Point to /api/ucp/mcp and list tools
Call
tools/listwith your profile on a development store and confirm the tools you expect appear. - 4
Rewrite catalog calls
Move query, context, and pagination into the
catalogobject. Replace product-detail calls withget_productand batch ID lookups withlookup_catalog(max 10 IDs). - 5
Rewrite cart calls
Add
create_cart, switch updates to full-replacement payloads, add idempotency keys tocancel_cart, and handlenot_foundinmessages. - 6
Add checkout separately
Obtain credentials, implement
create_checkoutfromcart_id, thecontinue_urlhandoff, and status handling. - 7
Replace policy lookups
Route policy and FAQ questions to
ask_business, one question per request. - 8
Run version-pinned tests
Record the
ucp.versionfrom responses alongside each test result so you notice when Shopify ships a new version.
| Test | Expected per docs (2026-11-29) |
|---|---|
tools/list without meta["ucp-agent"].profile | Request rejected or no tools; exact error not documented |
search_catalog with limit: 251 | Rejected; documented range is 1–250 |
lookup_catalog with 11 IDs | Rejected; documented cap is 10 |
update_cart sending one of two existing lines | Cart contains only the line sent |
get_cart after cancel_cart | not_found message |
cancel_cart without idempotency-key | Rejected; key is required |
create_checkout with a malformed cart_id | invalid_cart_id |
Response ucp.version | 2026-08-25; alert on change |
When do we need custom tools beyond Shopify's native MCP?
Often you don't. If your products are well described in Shopify and your goal is catalog discovery and carts, Shopify's native endpoints and Shopify Agentic Storefronts may cover you with no custom server. Custom tools make sense when the answer an agent needs lives outside Shopify or requires logic Shopify doesn't expose.
| Need | Native coverage | Typical custom work |
|---|---|---|
| Search, product detail, variant selection | Storefront Catalog MCP | None, unless data quality is the problem |
| Cart and checkout handoff | Cart MCP, Checkout MCP | Agent-side orchestration only |
| Compatibility or fitment checks | Only what's in product data | A tool that queries your fitment database |
| Customer-specific B2B pricing or quotes | Depends on your Shopify plan and setup | Tools that read ERP pricing with customer binding |
| Inventory from a warehouse system Shopify doesn't see | Store availability "doesn't guarantee stock" | Inventory API integration |
Our Shopify platform page explains what Shopify handles for eligible stores, and MCP server development covers the custom side. For the broader architecture, start with the ecommerce MCP server guide, and if browser agents matter to you, read WebMCP for ecommerce, because Shopify also registers WebMCP tools on storefronts.
Frequently asked questions
Is Shopify's /api/mcp endpoint completely gone?
Shopify's migration page says the catalog and cart tools on /api/mcp were removed. Customer Accounts MCP is listed as unchanged, with its documentation moved. Don't build anything new on /api/mcp catalog or cart tools.
What date were the Storefront MCP cart tools retired?
A Shopify changelog entry dated June 24, 2026 said get_cart and update_cart would be maintained until August 31, 2026. The entry didn't state a separate removal date, and the migration page now describes the tools as removed.
Do we need an access token to search a Shopify store's catalog?
Shopify's Storefront Catalog MCP docs describe an agent profile requirement rather than a token. Every request must include meta["ucp-agent"].profile. Checkout MCP is different and requires a Bearer token or signed requests.
Why did our cart lose items after an update_cart call?
Cart MCP update_cart replaces the full cart. Any line item or field you omit is removed, and there is no server-side merge. Read the cart first, then send every line and field you want to keep.
Can existing Storefront MCP carts be carried over?
Shopify's migration documentation doesn't describe converting legacy cart IDs. The safe assumption is to recreate carts from their line items with create_cart, then test the flow on a development store.
Should a third-party shopping assistant call each store's /api/ucp/mcp directly?
Shopify suggests developers of third-party assistants start with Shop MCP. Its tool map is for teams that prefer calling each store's UCP endpoint themselves. Storefront Catalog MCP covers one merchant at a time, and Global Catalog MCP handles cross-merchant discovery.
Does a working Cart MCP integration mean ChatGPT or Google will sell our products?
No. It proves your agent can build carts on a Shopify store. Recommendation, platform eligibility, and checkout permission are separate layers controlled by each AI platform and Shopify's own programs.
Migrating a Shopify agent integration?
Send us the tools you call today, the journeys they support, and any data that lives outside Shopify. We'll map the native replacements first and scope only the custom work that remains.
Related
- Shopify agentic commerceWhat Shopify provides natively and where custom work starts.
- MCP server developmentCustom tools for data Shopify doesn't expose.
- MCP server ecommerce guideThe broad guide to MCP in commerce.
- Shopify Agentic Storefront optimizationNative Shopify setup for AI channels.
- MCP authentication for ecommerceAuthorization, scopes, and denied-access tests.
Sources
- Shopify: Migrate from Storefront MCP
- Shopify: Storefront Catalog MCP
- Shopify: Cart MCP
- Shopify: Checkout MCP
- Shopify: Ask MCP
- Shopify: Agent profile
- Shopify: Authenticate your agent
- Shopify changelog: Storefront MCP cart tools deprecated in favour of UCP Cart MCP (June 24, 2026)
Platform capabilities, eligibility, and specifications change. Sources were checked on 2026-11-29; confirm the current primary documentation before scoping an implementation. See our editorial policy and methodology.