Commerce MCP App
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., "@Commerce MCP Appfind me a laptop with 16GB RAM under $800"
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.
Commerce MCP App
A cross-platform MCP App for product discovery, session-scoped carts, and confirmation-gated checkout.
Tool contract
search_products— the only model-facing product discovery tool. Handles browsing, natural-language queries, categories, price constraints, attributes, ranking, and pagination.list_products— app-only unfiltered catalog loader; hidden from the model to prevent routing ambiguity.add_to_cart— adds an exact product ID to the current session cart.remove_from_cart— removes an exact product ID from the current session cart.view_cart— returns the current session cart.checkout_cart— previews checkout unlessconfirmed=true; accepts an idempotency key for safe retries.
The React UI is served at ui://products/index.html. Every UI-backed tool also returns text content for hosts without MCP Apps support.
Related MCP server: Universal Shopping Agent MCP Server
Product accuracy pipeline
search_products does not send a conversational sentence to the upstream literal search endpoint. It:
Normalizes common product synonyms and categories.
Extracts price bounds and ranking intent from ordinary shopping language.
Retrieves the full catalog through the resilient API client.
Applies deterministic constraints.
Ranks matching candidates by title, category, description, tags, rating, or requested price order.
Returns the normalized intent in
structuredContentfor debugging and evaluation.
This local retrieval pipeline is appropriate for the small DummyJSON catalog. For a large production catalog, replace candidate retrieval with a search index while retaining the same intent and ranking contract.
Reliability and safety
Retry with exponential backoff for network, 429, and 5xx failures.
Request timeout, ETag revalidation, LRU caching, and stale-cache fallback.
Zod validation at the upstream catalog boundary.
Optional bearer-token authentication with explicit 401 responses.
Cart isolation by MCP transport session; stdio processes are naturally one client per process.
Cumulative per-product quantity limits.
Explicit confirmation and idempotent replay for checkout.
MCP annotations describing read-only, destructive, and idempotent behavior.
The sample checkout produces a local receipt. A real deployment must replace it with transactional inventory, order, and payment services.
Screenshots
App Screenshots:
AI Host Chat screenshot:
Commands
npm install
npm run check
npm test
npm run build
npx -y @mcpjam/inspector@latestPaid model-routing evals are intentionally separate:
npm run evalConfiguration
PRODUCTS_API_ENDPOINT— defaults tohttps://dummyjson.com/productsPRODUCTS_API_BEARER_TOKEN— optionalPRODUCTS_API_TIMEOUT_MS— defaults to8000PRODUCTS_API_MAX_RETRIES— defaults to3PRODUCTS_API_BASE_BACKOFF_MS— defaults to300PRODUCTS_API_MAX_BACKOFF_MS— defaults to3000PRODUCTS_API_CACHE_TTL_MS— defaults to30000PRODUCTS_API_CACHE_MAX_ENTRIES— defaults to100
Evaluation strategy
npm test is deterministic and covers API resilience, response validation, query parsing, ranking, cart isolation, quantity constraints, and UI behavior. npm run eval measures model tool selection and argument extraction without a routing answer sheet. Product-result correctness is covered by deterministic golden-set tests so provider outages or exhausted credits cannot masquerade as zero product accuracy.
This server cannot be deployed
Maintenance
Related MCP Connectors
AI shopping gateway for product search, inventory, carts, and merchant-hosted checkout.
Routes natural-language shopping queries to merchant storefronts, returns normalized results.
Agentic commerce gateway: discovery, search, checkout across Shopify/Woo/Odoo/PrestaShop.
AI-agent product catalog: search, lookup & purchase routing over verified merchant data.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Amazon services through AI assistants, allowing users to search products, manage their cart, view order history, and place orders using natural language.6 npmMIT
- FlicenseAqualityDmaintenanceEnables AI-powered shopping assistance by analyzing natural language shopping queries and automating product searches on multiple e-commerce platforms.13-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to browse product catalogs, search products with filters, and initiate checkouts, generating order summaries and checkout URLs.-
- FlicenseBqualityBmaintenanceEnables merchants and customers to interact with the Shoppingate AI Platform, including product searches, inventory management, order tracking, promotions, and personalized recommendations via natural language.14-