Agentic commerce has arrived
We're bringing native shopping into your AI conversations. Use our APIs and MCPs to add shopping capabilities to your agent across a vast merchant ecosystem with hundreds of millions of products. Shopify has you covered from querying for products to showing them to buyers. There's no need to worry about all the ways in which products are sold, such as variants, subscriptions, bundles, or kit configurations. It just works.
Shopify loads the merchant's checkout, combining the customizations they need to run their business with your agent's branding so it feels native to your application. Meeting common compliance requirements is simple, including GDPR, CCPA, PCI DSS v4, and more. And because Shopify handles checkout for you, you shouldn't have to worry about the usual marketplace compliance requirements faced by platforms that handle their own payments.
Sign up here for early access to apply and become an approved agent.
Anchor to How it worksHow it works
The Shopify Catalog MCP server lets your agent shop across merchants on behalf of a buyer:
- Shopify Catalog: A buyer asks their AI agent to find a product (for example, "lightweight running shoes"). Your agent calls the
search_catalog
tool to search the Shopify Catalog. The MCP server response includes a search result and a set of product web components. Your agent can render these components directly in the chat to provide rich, inline previews. - Universal Cart: As a buyer adds items to their cart from any number of merchants, your agent can use the
update_cart
tool to update a Universal Cart. The MCP server response includes the cart details with a checkout URL to complete the purchase, and a cart web component, which displays the items and subtotals. - Checkout Kit: Your buyer initiates checkout from the Universal Cart web component, or your agent initiates checkout by calling the Checkout Kit with the checkout URL provided by the Universal Cart. Checkout Kit securely renders the merchant's checkout experience with your agent’s branding overrides for a seamless buyer experience that works across mobile and web.
Anchor to Connect to the MCP serverConnect to the 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. Ensure it's kept private.
By using the Shopify MCP servers, you agree to the Shopify API License and Terms of Use.
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.
Anchor to Supported argumentsSupported arguments
Field | Description | Type | Example Value |
---|---|---|---|
query (required) | Keyword(s) for search | String | Running Shoes |
limit | Maximum number of results to return (defaults to 10, max of 10) | Integer (1-10) | 5 |
min_price | Minimum price of products to return. API accepts decimals. | Decimal (currency determined by ships_to) | 10 |
max_price | Maximum price of products to return. API accepts decimals. | Decimal (currency determined by ships_to) | 100 |
categories | Comma-delimited list of global IDs for taxonomy categories. Refer to the Shopify Standard Product Taxonomy and raw category list. | String | For example, for shoes, use: gid://shopify/TaxonomyCategory/aa-8 |
ships_to | A single ISO 3166 code that country code is extracted from. | String | US (default), CA |
ships_from | A single ISO 3166 code that country code is extracted from. | String | US (default), CA |
available_for_sale | Whether to filter available for sale. | Int (0,1) | 0 (false or include not available products), 1 (true or exclude not available products, default) |
context | Any additional context on the query that can help us surface more relevant results. | String | The user is trying to find some new running shoes to replace their worn out pair. |
Anchor to MCP responseMCP response
The MCP response contains the serialized JSON search results and a set of UI resources with rich web components for each product via MCP UI. These can optionally be used to render rich and interactive product cards.
See our blog post on Breaking the text wall for a deep-dive on MCP UI.
The deserialized JSON provides a list of products, their options, price ranges, ratings, and one or more stores where each variant is available. In this example, a query for “lightweight running shoes” returns an “awesome running shoe” that is available in two sizes and sold by two different stores:
Anchor to Present interactive results with web componentsPresent interactive results with web components
The iframe URLs shown below are not guaranteed to be stable. You should always use the resource URLs returned as part of MCP responses, rather than constructing the URLs yourself.
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:
Or if you are using the <UIResourceRenderer />
from MCP-UI, use the iframeRenderData
prop:
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.
Here's an example of how a Universal Cart is structured:
- Universal Cart contains an array of cart groups and buyer details such as
BuyerIdentity
andAddresses
. These buyer details are automatically inherited by merchant carts. - Cart Group contains a list of carts and their quantities and total costs.
- Cart contains the full-fidelity storefront cart, including cart lines.
To add a product from a Shopify merchant the agent only needs to provide the GID of the product variant. 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:
cart_id
: The ID of the cart to update. Creates a new cart if no ID is provided.add_items
: An array of items to add or update, each with aquantity
and an optionalline_item_id
for existing items.
Anchor to MCP responseMCP response
The MCP response contains the serialized JSON cart result with a Universal Cart web component to render a rich and interactive experience:
Here's an example of a Universal Cart rendered with a web component:
Anchor to Initiate checkout with Checkout KitInitiate checkout with Checkout Kit
Checkout is the final step of a buyer’s journey. It's the most challenging due to merchant customizations combined with jurisdictional compliance and regulations. Shopify manages all of these concerns to help merchants succeed everywhere they sell, using Checkout Kit. Just a few lines of code brings the full power of the best-converting checkout, including all of a merchant’s customizations and business rules.
Agents can leverage branding overrides to make the merchant’s checkout look and feel native to their experience on all platforms. All of the merchant customizations powered by Checkout UI Extensions and Shopify Functions are preserved. Taxes are properly handled. Meeting common compliance requirements, such as GDPR, CCPA, WCAG, and PCI DSS v4, is made simple. Best of all, using Checkout Kit means you shouldn’t have to worry about the usual marketplace compliance requirements faced by platforms that handle their own payments.
Anchor to Platform examplesPlatform examples
Import the checkout web component and pass it a checkout URL from Universal Cart. Review the web component documentation for callbacks, styling, and other customizations.
Anchor to Advanced checkout customizationsAdvanced checkout customizations
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.