CartAI MCP Server is a Model Context Protocol (MCP) server launched by CartAI, designed to provide agentic checkout capabilities for AI assistants. MCP is an open standard that allows AI assistants to invoke external tools through a unified interface, and this server encapsulates CartAI's checkout infrastructure as MCP tools, enabling AI to autonomously complete product discovery, payment authorization, and order placement workflows. Each tool corresponds one-to-one with a CartAI REST endpoint, and the server itself is a thin, type-safe bridge that contains no additional logic.
The main capabilities are divided into four groups:
-
Catalog: search_products searches for products across merchants by name and returns ranked results with prices, images, and purchase links; get_product_details retrieves detailed variant, price, and inventory information based on a product page URL; get_checkout_estimates calculates the subtotal, shipping, taxes, and total for a specified merchant, destination postal code, and list of items before checkout.
-
Payments: create_payment_session creates a hosted payment session and returns a secure URL for the customer to authorize a bank card, automatically initiating Visa Intelligent Commerce or Mastercard Agent Pay based on the card associated with the customer's email; get_payment_credentials retrieves scoped payment credentials (agent PAN or Stripe Link wallet card) after customer authorization, usable only for the approved amount and merchant, and does not return the real card number; delete_payment_session deletes a payment session.
-
Credentials: create_credential_session creates a credential vaulting session for a merchant and returns a secure URL for the customer to store login information for that merchant; subsequent checkouts can set options.useSavedCredentialToLogin: true to log in using saved credentials.
-
Checkout: create_checkout creates an asynchronous checkout task based on product page URLs, and a multi-merchant shopping cart is split into one task per merchant; create_search_checkout creates an asynchronous checkout task based on product names and merchant websites, and the agent searches the catalog and resolvesProducts and variants, assembling the cart and completing delivery, payment, and order confirmation; get_checkout retrieves the full status of a task; cancel_checkout cancels an in-progress task; get_status_history returns a step-by-step event log; send_interactive_inputs sends customer input to a task paused awaiting input (currently only MFA/OTP verification codes).
Usage: Recommended to run via npx -y cartai-mcp-server, no need to clone the repository; simply set the CARTAI_API_KEY environment variable in the MCP client configuration. Supports clients such as Claude Desktop, Cursor, VS Code, and MCP Inspector. For local development, clone the repository and run src/index.js with node. The server will still start when the API key is missing, but all API calls will be rejected and a warning will be output. Requires Node.js 18 or later.
Use cases: Suitable for platforms or developers who want an AI assistant to complete cross-merchant online shopping on behalf of users, including product search and price comparison, pre-checkout cost estimation, automated order placement, checkout flows requiring customer interaction (such as OTP), and scenarios requiring secure storage of merchant login credentials.
Limitations: Checkout tasks execute asynchronously and require webhook or polling to obtain status; interactive input currently only supports MFA/OTP verification codes; payment credentials are limited to the authorized amount and merchant; a valid CartAI API key is required; the merchant remains the merchant of record. Specific fees, pricing, and the range of supported merchants are not yet provided.