Development

Shopify Storefront MCP Migration: Catalog, Cart & Checkout

By Michael E.Updated Sources checked 16 min

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 Storefront MCP tools and documented replacements (Shopify docs, checked 2026-11-29)
Former capability on /api/mcpCurrent replacementToolsEndpoint
search_catalog, get_product_detailsStorefront Catalog MCPsearch_catalog, lookup_catalog, get_product (plus search_locations, lookup_locations when eligible)https://{shop}/api/ucp/mcp
get_cart, update_cartCart MCPcreate_cart, get_cart, update_cart, cancel_carthttps://{shop}/api/ucp/mcp
Checkout URL from the cartCheckout MCPcreate_checkout, get_checkout, update_checkout, complete_checkout, cancel_checkouthttps://{shop}/api/ucp/mcp
Policy and FAQ questionsAsk MCPask_businesshttps://{shop}/api/ucp/mcp
Customer account toolsCustomer Accounts MCP (unchanged; docs moved)UnchangedSee Shopify's Customer Accounts MCP page
Order tracking through UCPOrder MCPSee Shopify's Order MCP pageUCP

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.

Before/after contract summary (documented behavior; Storefront MCP column limited to what Shopify's migration page states)
AspectStorefront MCP (removed)UCP MCP on /api/ucp/mcp (current)
Endpointhttps://{shop}/api/mcphttps://{shop}/api/ucp/mcp
Wire formatJSON-RPC 2.0 over MCPJSON-RPC 2.0, tools/list and tools/call
Agent identificationNot described on the migration pageRequired meta["ucp-agent"].profile on every request
Tool visibilityFixed setDepends on capabilities your profile declares (for example, location tools need dev.ucp.common.location.*)
Catalog argumentsNot reproduced hereNested in catalog (query, context, pagination, ids, id, selected)
Cart creationNot a listed toolExplicit create_cart
Cart updatesNot reproduced hereupdate_cart with PUT semantics: full replacement, no server-side merge
CheckoutCheckout URL from the cartSeparate Checkout MCP session; buyer handoff via continue_url
PricesNot reproduced hereMinor units, for example "amount": 1899 with "currency": "USD"
Version markerNone documenteducp.version in responses (2026-08-25 in current examples)

Current catalog inputs, as documented

ToolRequired inputsOptional inputs and limits
search_catalogmetacatalog.query; catalog.context (address_country, language, currency, intent); catalog.pagination (cursor, limit 1–250, default 10)
lookup_catalogmeta, catalog.idsUp to 10 product or variant IDs; catalog.context
get_productmeta, catalog.idcatalog.selected, for example {"name": "Color", "label": "Blue"}; catalog.context
ask_businessmeta, 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.

Authentication considerations by capability (Shopify docs, 2026-11-29)
CapabilityCredentialExtra requirements
Storefront Catalog MCPAgent profile in metaTools returned depend on declared capabilities
Cart MCPAgent profile; unauthenticated calls acceptedIf you send a Bearer token, also send Shopify-Buyer-IP; cancel_cart needs meta["idempotency-key"] (UUID)
Checkout MCPBearer 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 MCPAgent profileProfile 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 complete line_items array plus any context you want to keep.
  • Resend attribution. Shopify says to resend attribution to keep it. Omitting buyer.consent leaves 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 result whose messages include code not_found with severity unrecoverable. Create a new cart and tell the shopper.
  • Store IDs exactly. Cart IDs look like gid://shopify/Cart/cart_abc123 and line IDs like gid://shopify/CartLine/li_1?cart=cart_abc123. Treat them as opaque strings.
  • Keep the handoff link. create_cart returns a continue_url (for example https://shop.example.com/cart/c/cart_abc123) so the shopper can pick the cart up on the storefront.
Illustrative read-modify-write helper, based on documentation as of 2026-11-29. AGENT_PROFILE_URL, RetryLater, and ProtocolError are placeholders.
// 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.

Illustrative search_catalog request, based on Shopify Storefront Catalog MCP documentation as of 2026-11-29 (query and intent values mirror the docs example; the profile URL is a placeholder).
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 }
      }
    }
  }
}
Illustrative, abbreviated successful response, based on the documented example (values shown in the docs: product GID, title, minor-unit prices, pagination). Field nesting is simplified; confirm against a live response.
{
  "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 }
    }
  }
}
Documented failure and edge cases to handle
SituationHow it comes backWhat your agent should do
Auth failure or discovery problemJSON-RPC error, code -32000 (for example "Unauthorized") or -32001 for discoveryFix credentials or profile; don't retry blindly
Rate limitedProtocol error; honor HTTP Retry-AfterBack off; if no header, exponential backoff with jitter
Cart missing or expiredresult.messages[] with not_found, severity unrecoverableCreate a new cart from known line items
Quantity reduced by the storeWarning quantity_adjusted with path $.line_items[0].quantityShow the adjusted quantity to the shopper
Cart canceledInfo message cart_canceled; later get_cart returns not_foundDrop the stored cart ID
Bad cart ID on checkout conversioninvalid_cart_id (not a valid GID) or cart_not_foundValidate GIDs before calling; recreate the cart
Unsupported location filterinvalid_input (only filters.items is supported)Remove unsupported keys
Unresolved IDs in lookupsnot_found messages for those identifiersReturn 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, present continue_url so the buyer finishes on the merchant's checkout. For general access, Shopify says this handoff is how checkout completes and you do not call complete_checkout.
  • Before showing continue_url, confirm its scheme is https:. Its host may differ from the endpoint host. Share it only with the buyer and never log it.
  • Call complete_checkout only when status is ready_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. 1

    Inventory legacy calls

    Search your code and logs for /api/mcp and each former tool name. Record which shopper journeys depend on each.

  2. 2

    Publish an agent profile

    Host a UCP profile declaring the version (2026-08-25 in current docs) and the capabilities you need: catalog search/lookup, cart, checkout, ask, and location only if relevant.

  3. 3

    Point to /api/ucp/mcp and list tools

    Call tools/list with your profile on a development store and confirm the tools you expect appear.

  4. 4

    Rewrite catalog calls

    Move query, context, and pagination into the catalog object. Replace product-detail calls with get_product and batch ID lookups with lookup_catalog (max 10 IDs).

  5. 5

    Rewrite cart calls

    Add create_cart, switch updates to full-replacement payloads, add idempotency keys to cancel_cart, and handle not_found in messages.

  6. 6

    Add checkout separately

    Obtain credentials, implement create_checkout from cart_id, the continue_url handoff, and status handling.

  7. 7

    Replace policy lookups

    Route policy and FAQ questions to ask_business, one question per request.

  8. 8

    Run version-pinned tests

    Record the ucp.version from responses alongside each test result so you notice when Shopify ships a new version.

Version-pinned test plan (expected outcomes from documentation; not results we ran)
TestExpected per docs (2026-11-29)
tools/list without meta["ucp-agent"].profileRequest rejected or no tools; exact error not documented
search_catalog with limit: 251Rejected; documented range is 1–250
lookup_catalog with 11 IDsRejected; documented cap is 10
update_cart sending one of two existing linesCart contains only the line sent
get_cart after cancel_cartnot_found message
cancel_cart without idempotency-keyRejected; key is required
create_checkout with a malformed cart_idinvalid_cart_id
Response ucp.version2026-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.

NeedNative coverageTypical custom work
Search, product detail, variant selectionStorefront Catalog MCPNone, unless data quality is the problem
Cart and checkout handoffCart MCP, Checkout MCPAgent-side orchestration only
Compatibility or fitment checksOnly what's in product dataA tool that queries your fitment database
Customer-specific B2B pricing or quotesDepends on your Shopify plan and setupTools that read ERP pricing with customer binding
Inventory from a warehouse system Shopify doesn't seeStore 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.

Sources

  1. Shopify: Migrate from Storefront MCP
  2. Shopify: Storefront Catalog MCP
  3. Shopify: Cart MCP
  4. Shopify: Checkout MCP
  5. Shopify: Ask MCP
  6. Shopify: Agent profile
  7. Shopify: Authenticate your agent
  8. 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.