Agentic commerce has arrived
Build AI agents that can search hundreds of millions of Shopify products, shop across multiple merchants with a single Universal Cart, and deliver seamless, compliant checkout using the Shopify Catalog MCP server and web components.
Agentic commerce is not generally available, and requires an invitation during the early access period. Apply now to become an approved agent.
Anchor to The agentic commerce stackThe agentic commerce stack
Bring native shopping into AI conversations, enabling agents to shop across merchants on behalf of a buyer.
Shopify Catalog
When buyers ask for products, your agent searches millions of items and displays interactive product cards directly in the chat.
Universal Cart
Buyers can add items from multiple merchants to a single cart, with automatic merchant grouping and unified checkout options.
Checkout Kit
Buyers complete secure, merchant-branded checkout experiences directly from your agent interface.
Anchor to Connect to the Catalog MCP serverConnect to the Catalog MCP server
The Shopify Catalog MCP server is an authenticated endpoint that requires an authorization bearer token.
Every tool call must include the Content-Type
and Authorization
HTTP headers.
The bearer token is a private key provided by Shopify to approved agents, used for server-to-server communication.
Never commit this key.
Restrict usage to environment variables or uncommitted .env
files.
By using the Shopify MCP servers, you agree to the Shopify API License and Terms of Use.
https://catalog.shopify.com/api/mcp
Shopify Catalog
Anchor to Find products with the Shopify CatalogFind products with the Shopify Catalog
The search_catalog
tool enables your agent to search across hundreds of millions of products.
Responses are in a standardized format and provide results clustered to a UPI (Universal Product Identifier) so that search results are not overwhelmed with duplicate products.
In the MCP response content[].text
is a JSON string to parse, and content[].resource
contains web components for each product via MCP UI.
In this example, a query for “lightweight running shoes” returns an “Awesome Running Shoe - White” that is available in two sizes and sold by two different stores.
See our blog post on Breaking the text wall for a deep-dive on MCP UI.
Anchor to Supported argumentsSupported arguments
Whether to filter products by those available for sale.
Comma-delimited list of global IDs for taxonomy categories. Refer to the Shopify Standard Product Taxonomy and raw category list.
For example, for shoes, use: gid://shopify/TaxonomyCategory/aa-8
.
Any additional context on the query that can help future queries surface more relevant results.
For example, "The user is trying to find some new running shoes to replace their worn out pair".
Maximum number of results to return.
Maximum price of products to return.
Minimum price of products to return. API accepts decimals.
Keyword(s) for search. For example, Running shoes
.
An ISO 3166 country code.
An ISO 3166 country code.
MCP request: search_catalog
{} Response
Response
{
"content": [
{
"type": "text",
"text": "{... search response (see below) ...}"
},
{
"type": "resource",
"resource": {
"uri": "ui://product/gid://shopify/Product/123123",
"mimeType": "text/uri-list",
"text": "https://cdn.shopify.com/storefront/product-summary.component?store_domain=demostore.mock.shop&product_handle=hoodie"
}
},
...
]
}
Text
[
{
"id": "gid://shopify/p/44r9rYAkQ6IytYTmECwVQ3",
"title": "Awesome Running Shoe - White",
"description": "[description of the product]",
"images": [
{
"url": "https://cdn.shopify.com/s/files/...",
"altText": "[description of the image]",
}
],
"options": [
{
"name": "shoe size",
"values": [
{
"value": "US 10",
"availableForSale": true,
"exists": true
},
{
"value": "US 11",
"availableForSale": true,
"exists": true
}
]
}
],
"priceRange": {
"min": {
"amount": "80.0",
"currencyCode": "USD"
},
"max": {
"amount": "90.0",
"currencyCode": "USD"
}
},
"availableForSale": true,
"products": [
{
"id": "gid://shopify/Product/1234",
"title": "Awesome Running Shoes - White",
"checkoutUrl": "https://....",
"description": "[description of the product]",
"featuredImage": {
"url": "https://cdn.shopify.com/s/files/...",
"altText": "[description of the image]"
},
"onlineStoreUrl": "https://...",
"price": {
"amount": "80.0",
"currencyCode": "USD"
},
"rating": {
"value": 4.5,
"count": 10
},
"availableForSale": true,
"shop": {
"name": "Snowdevil Shoes",
"paymentSettings": {
"supportedDigitalWallets": [
"SHOPIFY_PAY"
]
},
"onlineStoreUrl": "https://...",
"id": "gid://shopify/Shop/[shop_id]",
},
"selectedProductVariant": {
"id": "gid://shopify/ProductVariant/121212",
"options": [
{
"name": "shoe size",
"value": "US 10"
}
],
"image": {
"url": "https://cdn.shopify.com/s/files/...",
"altText": "[description of the image]"
},
"availableForSale": true
}
},
{
"id": "gid://shopify/Product/2345",
"title": "Awesome Running Shoes",
"checkoutUrl": "https://....",
"description": "[description of the product]",
"featuredImage": {
"url": "https://cdn.shopify.com/s/files/...",
"altText": "[description of the image]"
},
"onlineStoreUrl": "https://...",
"price": {
"amount": "90.0",
"currencyCode": "USD"
},
"rating": {
"value": 4.9,
"count": 50
},
"availableForSale": true,
"shop": {
"name": "Shoe Shop",
"paymentSettings": {
"supportedDigitalWallets": [
"SHOPIFY_PAY"
]
},
"onlineStoreUrl": "https://...",
},
"selectedProductVariant": {
"id": "gid://shopify/ProductVariant/232323",
"options": [
{
"name": "shoe size",
"value": "US 10"
}
],
"image": {
"url": "https://cdn.shopify.com/s/files/...",
"altText": "[description of the image]"
},
"availableForSale": true
}
}
]
}
]
Components
{
"type": "resource",
"resource": {
"uri": "ui://product/gid://shopify/Product/123123",
"mimeType": "text/uri-list",
"text": "https://cdn.shopify.com/storefront/product-details.component?store_domain=demostore.mock.shop&product_handle=hoodie"
}
}
Anchor to Customize componentsCustomize components
To display the included UI, you can either fetch the resource URL and render it inline or load it inside of a secure iframe. The web component can be customized with CSS to make it look native in any context.
If using an iframe, post a message with theming CSS. If you are using the <UIResourceRenderer />
from MCP-UI, use the iframeRenderData
prop.
Customize returned components
postMessage
const customCss = `
shopify-product-card::part(product-title) {
font-weight: 600;
}
`;
iframe.contentWindow.postMessage({
type: "ui-lifecycle-iframe-render-data",
payload: {
renderData: {
customCss
}
}
})
iframeRenderData
const customCss = `
shopify-product-card::part(product-title) {
font-weight: 600;
}
`;
<UIResourceRenderer
resource={resource}
htmlProps={{
iframeRenderData: {customCss},
}}
/>
Anchor to Interactive resultsInteractive results
To display the included UI, you can either fetch the resource URL and render it inline or load it inside of a secure iframe. The web component can be customized with CSS to make it look native in any context.
Universal Cart
Anchor to Add products from any store to a Universal CartAdd products from any store to a Universal Cart
The update_cart
tool allows your agent to add product variants from any store on the web, including stores not powered by Shopify.
The Universal Cart automatically groups items by merchant, maintains buyer information across all carts, calculates combined totals, and generates checkout URLs.
Anchor to Example Universal Cart structureExample Universal Cart structure
- Universal Cart: An array of cart groups and buyer details such as
BuyerIdentity
andAddresses
. These buyer details are automatically inherited by merchant carts. - Cart Group: A list of carts, their quantities, and total costs.
- Cart: The full-fidelity storefront cart, including cart lines.
To add a product from a Shopify merchant, the agent automatically uses the product variant GID from the search results. For non-Shopify merchants, the agent can provide static details about the store and each line item, allowing the same cart to be used to track products from across the web.
Anchor to Create or update a Universal CartCreate or update a Universal Cart
Use update_cart
with these parameters:
An array of items to add or update, each with a quantity
and an optional line_item_id
for existing items.
The ID of the cart to update. Creates cart if no ID is provided.
MCP request: update_cart
{} Response
Anchor to Interactive resultsInteractive results
To display the included UI, you can either fetch the resource URL and render it inline or load it inside of a secure iframe. The web component can be customized with CSS to make it look native in any context.
Checkout Kit
Anchor to Initiate checkout with Checkout KitInitiate checkout with Checkout Kit
Checkout is the final and often hardest step because of merchant customizations and regulations. Shopify's Checkout Kit handles this for you. With a few lines of code, you get a high-converting checkout that keeps all your existing customizations and business rules.
You can apply branding overrides so it looks native on any platform, and all customizations built with Checkout UI Extensions and Shopify Functions are preserved. Taxes are handled, and common compliance needs (GDPR, CCPA, WCAG, PCI DSS v4) are simplified.

Anchor to Platform examplesPlatform examples
Android
Import the Checkout Kit Kotlin SDK and pass it a checkout URL from Universal Cart.
Android
iOS
Import the Checkout Kit Swift SDK and pass it a checkout URL from Universal Cart.
iOS
React Native
Import the Checkout Kit React Native SDK and pass it a checkout URL from Universal Cart.
React Native
Web
Implement checkout using the Cart API and redirect to the checkout URL from Universal Cart.
Web
Additional functionality will be available soon for select partners and agents, such as:
- Branding controls: Provide custom colors and typography to match your agent and app user experience.
- Payment tokens: Provide a pre-authorized payment token to prefill the credit/debit card payment option in a PCI-compliant manner and accelerate the buyer's checkout.
- Embedded checkout: Load checkout inline using an iframe for a more deeply embedded experience.