shopcart-mcp
Provides read-only tools for Shopify storefronts: inspecting store compatibility and currency, searching products, fetching product variants and live pricing, and generating deterministic cart permalinks for storefront or checkout flows.
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., "@shopcart-mcp search for a coffee grinder on bluebottlecoffee.com and make a cart link"
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.
shopcart-mcp
Agentic Shopping & Cart MCP for Shopify (and more) — built by Wals.pro.
Connect Claude.ai, ChatGPT, Cursor, Claude Code, or VS Code directly to Shopify storefronts to search products, inspect live variants & pricing, and build deterministic cart permalinks — with built-in SSRF protection and prompt-injection sanitization.
Independent Open-Source Project:
shopcart-mcpis an independent open-source project by Wals.pro and is not affiliated with or endorsed by Shopify Inc.
English
Dual Mode: Local OSS (stdio) & Hosted OAuth 2.1 (streamable-http)
Mode | Auth | Limits | Best For |
Local | None (zero telemetry) | Unlimited | Claude Desktop, Cursor, Claude Code, local agents |
Hosted MCP ( | OAuth 2.1 (CIMD + DCR + PKCE S256) | Free: 20 calls/day · Pro (€9/mo): 500 calls/day (Free Pro launch promo through Dec 6, 2026) | Claude.ai Web/Mobile, ChatGPT Custom Connectors |
Tools
All 4 tools are read-only (readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true):
inspect_store— Detects Shopify compatibility, resolves currency/country (/meta.json→/cart.jsfallback), WAF restrictions, and optional native/api/mcptools.search_products— WAF-resilient product search via/search/suggest.json(with/products.jsonbrowse/fallback), normalized prices, and availability/price filters.get_product— Fetches/products/<handle>.js(minor-unit currency conversion with ISO 4217 exponents), strips HTML & invisible Unicode tag blocks, returns exact numericvariant_ids.create_cart_link— Generates deterministic Shopify cart permalinks (/cart/<vid>:<qty>?storefront=trueor checkout mode) with optional live variant verification viaverify_handles.
Quick Start (Local stdio)
# Run directly via npx (once published) or from source
npx -y shopcart-mcpFrom source:
git clone https://github.com/Wals-pro/shopcart-mcp.git
cd shopcart-mcp
pnpm install
pnpm build
pnpm start:stdioClaude Desktop / Cursor MCP config:
{
"mcpServers": {
"shopcart": {
"command": "node",
"args": ["/path/to/shopcart-mcp/dist/cli.js"]
}
}
}Security Highlights
SSRF Guard (
src/security/ssrf.ts): HTTPS-only, rejects IP literals and private/reserved IPv4 & IPv6 ranges (including Cloud Run metadata169.254.169.254and IPv4-mapped IPv6), DNS-pinnedundiciAgent, manual redirect loop (max 3 hops; 0 for CIMD), 6 s timeout, 1 MB / 8 KB caps.Prompt-Injection Guard (
src/security/sanitize.ts): Strips HTML/script/style/iframe, control chars, zero-width/BiDi overrides, Unicode tag blocks (U+E0000–U+E007F), enforces hard field length caps, and attaches untrusted catalog data notices.OAuth 2.1 (
src/auth/): RFC 9728 Protected Resource Metadata, RFC 8414 AS Metadata (no trailing slash onissuer, noprivate_key_jwt), CIMD resolver (Claude.ai, Claude Code, ChatGPT SEP-3149, VS Code), DCR (/oauth/registerwithcursor://filtering), RFC 8252 §7.3 loopback any-port matching, PKCE S256, RFC 9207iss, RFC 8707resourcebinding, RFC 6750 §3.1 splitWWW-Authenticate, refresh token rotation with replay family revocation, and RFC 7009/oauth/revoke.
Related MCP server: Shopify Storefront MCP Server
Deutsch
Überblick
shopcart-mcp verbindet Claude, ChatGPT, Cursor und andere MCP-Clients direkt mit Shopify-Onlineshops:
Lokal (
stdio): Kostenlos, unbegrenzt, ohne Login und ohne Telemetrie unter MIT-Lizenz.Gehostet (OAuth 2.1): Sofort verbindbar in Claude.ai und ChatGPT Custom Connectors.
Free: 20 Tool-Calls / Tag
Pro (9 €/Monat): 500 Tool-Calls / Tag
Black-Friday-Launch-Aktion: Bis einschließlich 06.12.2026 erhalten alle angemeldeten Konten automatisch 500 Calls/Tag kostenlos.
Entwicklung & Tests
pnpm install
pnpm test
pnpm buildLizenz
MIT License © 2026 Wals.pro
Available Tools
4 toolscreate_cart_linkCreate Store Cart LinkARead-onlyIdempotent
Generate a read-only Shopify browser cart or checkout permalink from exact numeric variant IDs and quantities, optionally verifying live availability via verify_handles.
Inputs: items (required), store_url (required), mode, discount_code, +1 more.
get_productGet Product Details & VariantsARead-onlyIdempotent
Retrieve product details, sanitized description text, options, images, and exact numeric variant IDs, prices, and availability for a Shopify product handle or URL.
Inputs: store_url (required), handle_or_url (required).
inspect_storeInspect StoreARead-onlyIdempotent
Check whether an HTTPS online store URL is a supported public Shopify storefront and return its currency, country, WAF restrictions, and available catalog endpoints.
Inputs: store_url (required).
search_productsSearch Store ProductsARead-onlyIdempotent
Search a Shopify storefront's public catalog by keyword (or browse top items when query is omitted) with optional availability and min/max price filters.
Inputs: store_url (required), limit, query, max_price, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct resource and action: store inspection, catalog search, single-product retrieval, and cart link generation. The boundary between search_products and get_product is clear (browse/query vs. exact handle lookup). No overlapping purposes.
All four tools follow a consistent snake_case verb_noun pattern: inspect_store, create_cart_link, search_products, get_product. No style mixing or vague verbs.
Four tools is on the light side but each earns its place for a read-only Shopify storefront browsing workflow. It is well-scoped rather than padded.
Covers the core browse-to-cart-link lifecycle: validate store, discover products, fetch details, and build a cart/checkout link. Minor gaps (no cart modification or order operations) are consistent with the read-only stated purpose and workable.
Maintenance
Related MCP Connectors
Live product search for AI agents across Shopify merchants and major retailers.
Shopify product discovery and x402-paid offer verification for AI agents.
Connect AI to store orders, products and inventory with scoped access and human approvals.
Shopify store analysis and product-catalog extraction as agent tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with live Shopify stores through Admin and Storefront APIs for tasks like GraphQL execution, bulk operations, and file uploads. It includes built-in rate limiting and operation logging to manage store data and schema discovery securely.21 npm3ISC
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to query and interact with Shopify store data via the Storefront API, including products, collections, carts, and customer information.9-
- AlicenseAqualityCmaintenanceEnables AI agents to read and write Shopify store data including products, orders, customers, inventory, and more via the Admin GraphQL API.2858 npmMIT
- FlicenseNot gradedqualityDmaintenanceProvides access to the Shopify Storefront API via MCP, enabling AI assistants to query and interact with Shopify store data such as products, collections, carts, and customer information.-