UCP Shopping Agent
Connects to a Shopify store's UCP MCP endpoint to search the product catalog, create and manage carts, and create or complete checkouts for products.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@UCP Shopping Agentsearch for a snowboard and add the first one to my cart"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
UCP Shopping Agent
A minimal agent that connects to a Shopify store's UCP (Universal Commerce Protocol) MCP endpoint and drives search → cart → checkout — either via CLI flags or a conversational chat REPL powered by Claude.
How it works
The store's
ucp.json(.well-known/ucpmanifest) declares an MCP endpoint for shopping.This agent connects to that endpoint, discovers its tools (
search_catalog,create_cart,create_checkout,complete_checkout, ...), and calls them directly.Every call carries a
ucp-agentreference pointing at this agent's own profile — a small JSON file (public/agent-profile.json) declaring which capabilities (cart, checkout, catalog search) it supports. The store fetches that profile to decide what to allow, so it must be reachable at a public HTTPS URL.
Related MCP server: ucp-mcp-server
Setup
Install dependencies:
npm installCopy
.env.exampleto.envand fill in the values (see below).Serve the agent profile locally:
npm run serve:profileExpose it publicly with a tunnel (Cloudflare Tunnel is recommended — ngrok's free tier injects a browser-warning interstitial that breaks server-to-server profile fetches):
cloudflared tunnel --url http://localhost:8787Copy the resulting
https://*.trycloudflare.comURL, append/agent-profile.json, and set it asAGENT_PROFILE_URLin.env.
Environment variables (.env)
Variable | Required | Purpose |
| Yes | Public URL serving |
| Only for | Powers the conversational agent. |
| No | Only needed for a different audience (e.g. Shopify's global catalog service via |
| No (default | Sent as |
Usage
Scripted (CLI flags):
npm run start -- --query "snowboard" # search + cart (safe, default)
npm run start -- --query "snowboard" --checkout # + create a checkout
npm run start -- --query "snowboard" --checkout --pay --payment-token TOKEN # + complete itConversational (Claude-driven chat):
npm run chatYou: search for a snowboard
Agent: [lists real products with prices]
You: add the first one to my cart
Agent: [adds it, or tries other variants if one's out of stock]Checkout/payment completion always requires an explicit request and a real payment credential — the agent never fabricates a payment token.
Project layout
src/manifest.ts — parses
ucp.json, resolves the MCP endpoint.src/ucpClient.ts — thin MCP SDK wrapper for the shopping tools.
src/auth.ts — optional
client_credentialsbearer token fetch.src/index.ts — scripted CLI flow.
src/agent.ts — conversational chat agent (Claude tool-use loop).
scripts/serve-profile.mjs — serves
public/agent-profile.jsonlocally.
This server cannot be deployed
Maintenance
Related MCP Connectors
Agentic commerce gateway: discovery, search, checkout across Shopify/Woo/Odoo/PrestaShop.
- MaShop MCPOAuthapp.mashop
Build, deploy and manage MaShop e-commerce projects from Claude, Cursor or any MCP client.
AI shopping gateway for product search, inventory, carts, and merchant-hosted checkout.
AI commerce for Shopify: product search, comparison, recommendations, and checkout via MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Shopify store data (products, customers, orders) via GraphQL, providing comprehensive tools for store management through Claude.373MIT
- AlicenseAqualityDmaintenanceLets AI assistants shop at UCP-enabled merchants through tools for discovery, checkout, discounts, fulfillment, and payment.59MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying Shopify store data (products, customers, orders) via GraphQL API using read-only tools. Works with Claude Desktop via npx command.17MIT
- AlicenseCqualityDmaintenanceConnects your Shopify store data to Claude Desktop, enabling access to products, orders, customers, inventory, and more through natural language.151,0534MIT