ModelContextProtocol MCP and GraphQL Shopping Cart API for modern commerce

Add a shopping cart to any site, app or agent with MCP, and GraphQL APIs. No replatforming required.

Shopping Cart API

Everything you need for
cart and checkout

Simple mutations for adding items, automatic totals with currency formatting, and flexible metadata.

Bring Your Own Inventory

Use any existing product inventory system, no migration required.

Cart Operations

Add, update, increment, or remove items with developer-friendly APIs.

Multi-Currency

Support 100+ currencies with automatic formatting and symbols.

Custom Metadata

Store any JSON data on carts or items to handle your needs.

Automatic Totals

Subtotals, tax, and shipping are calculated automatically.

14-Day Persistence

Carts are automatically saved for two weeks after last activity.

Works Over HTTP

Use any GraphQL client or library with the edge-based GraphQL API.

Works With AI

MCP lets AI agents add items and manage carts in natural language.

Webhooks

Receive real-time events when carts are created, or abandoned.

MCP Server

Power AI shopping agents with the Model Context Protocol

Enable natural language shopping, automated cart management, and seamless checkout flows.

https://api.cartql.com/mcp
Mistral
n8n
Gemini

Agent-Powered Carts

Let LLMs build and manage carts automatically.

Context-Aware Shopping

Persistent carts for smarter conversations.

Bring Your Own Inventory

Connect any product source to your AI workflows.

Evals & Trackings

Measure how well your agents perform and shop.

Reactive Automations

Trigger workflows when AI takes action.

Multi-Agent Collaboration

Let multiple agents share the same cart state.

GraphQL API

Query with GraphQL
from any client

Full-featured GraphQL API that works over HTTP.
Type-safe queries and mutations with any GraphQL client.

query {
  cart(
    id: "",
    currency: {
      code: GBP
    }
  ) {
    ...CartWithItems
  }
}

fragment CartWithItems on Cart {
  ...CartInfo
  items {
    ...ItemInfo
  }
}

fragment CartInfo on Cart {
  id
  email
  isEmpty
  abandoned
  totalItems
  totalUniqueItems
  currency {
    code
    symbol
  }
  subTotal {
    amount
    formatted
  }
  shippingTotal {
    amount
    formatted
  }
  taxTotal {
    amount
    formatted
  }
  grandTotal {
    amount
    formatted
  }
  attributes {
    key
    value
  }
  notes
  createdAt
  updatedAt
}

fragment ItemInfo on CartItem {
  id
  name
  description
  images
  quantity
  attributes {
    key
    value
  }
  unitTotal {
    amount
    formatted
  }
  lineTotal {
    amount
    formatted
  }
  createdAt
  updatedAt
}
https://api.cartql.com
Try using GraphiQL

Works With Any Client

Integrate with the tools you already use with GraphQL.

Type-Safe

Use GraphQL Codegen and other tools to get full type safety.

Fast

Globally distributed at the edge for low-latency queries anywhere.

Pricing

Pricing that scales with you

Start free. Upgrade when you need webhooks,
analytics, and priority support.

Free

$0per month

Free, forever.

What's included

  • GraphQL & MCP APIs
  • No API keys needed
  • Unlimited carts
  • Multi-currency support
  • Custom metadata

Pro

$29per month

For growing businesses.

Everything in Free, plus

  • Webhooks
  • Priority support
  • Analytics dashboard
  • 99.9% uptime SLA
  • Custom rate limits
Private Beta

FAQ

Got a question?

Everything you need to know about CartQL.

Ready to build better commerce experiences?

Join developers who are shipping faster with CartQL's shopping cart API. GraphQL, MCP, and no backend required.