Acme Store for developers

Acme Store is a demonstration shop that people and agents share: eighteen products, search, collections, a cart and a sandbox checkout, with an open API and MCP server.

Call the same operations over plain HTTP, as MCP tools, or from a page through WebMCP. The base URL is https://acme.ferrite.run.

Quickstart

Read something first. This request needs no setup:

curl -s 'https://acme.ferrite.run/api/products'

Search product titles, descriptions and tags, ignoring case. Use it first to find a product's handle; without q it lists the whole catalogue. Returns each product's handle, title, description, price range, availability and page.

Then change something. Send an idempotency-key so a retry cannot run twice:

curl -s -X POST 'https://acme.ferrite.run/api/cart/items' \
  -H 'content-type: application/json' \
  -H 'idempotency-key: add_to_cart-1' \
  -d '{"variant_id":"acme-mug-variant-1"}'

To use Acme Store from an AI assistant, add its MCP server:

claude mcp add --transport http acme https://acme.ferrite.run/mcp

Authentication and API keys

No API key, account or sign-up is needed: the API is keyless, so the first request you send can be a real one.

Sandbox

The public address is the sandbox. No payment is taken and nothing is shipped, so every read and write is safe to try, including a whole order. Each call to add_to_cart without a cart_id opens a cart of its own, and cancel_order returns an order's stock. Use a made-up name and an address such as ada@example.com.

The sandbox page is the place to start.

Endpoints

OperationRequestWhat it does
search_productsGET /api/productsSearch product titles, descriptions and tags, ignoring case. Use it first to find a product's handle; without q it lists the whole catalogue. Returns each product's handle, title, description, price range, availability and page.
get_productGET /api/products/{handle}Read one product with its options and variants. Use it before add_to_cart, which needs the id of one variant. Returns the product with every variant's id, options, price and availability, plus related products.
list_collectionsGET /api/collectionsList the shop's collections, such as shirts, headwear and drinkware. Use it to see what the shop sells before reading one collection. Returns each collection's handle, title, description and page.
list_collection_productsGET /api/collections/{handle}/productsList the products in one collection. Use it when somebody asks for a kind of product rather than a name. Returns the collection and its products in the same short form as search_products.
get_cartGET /api/cartRead a cart and what it would cost. Use it to check the lines before place_order. Returns the cart with its lines, quantities and totals, or a null cart when no open cart matches.
add_to_cartPOST /api/cart/itemsPut one unit of a variant in a cart. Use it after get_product has given you the variant id, and keep cart.id from the answer for the next call. Returns the whole cart, or an error when the variant is unknown or out of stock.
update_cart_itemPOST /api/cart/items/updateSet how many units of a variant a cart holds. Use it to buy several of one thing, or to take a line out with quantity 0. Returns the whole cart, or an error when there is not that much stock or no open cart.
place_orderPOST /api/ordersTurn a cart into an order. Use it once get_cart shows what the customer wants; the checkout is a sandbox, so no payment is taken and nothing is shipped. Returns the order with its number, totals and confirmation_path, or an error when the cart is empty or the stock is gone.
cancel_orderPOST /api/orders/{order_id}/cancelCancel a sandbox order and put its stock back. Use it to undo place_order; the order stays on record with its original prices. Returns the cancelled order, or a 403 problem when the receipt key does not match.

The OpenAPI 3.1 document describes every parameter and response. The MCP server at https://acme.ferrite.run/mcp exposes the same operations as tools with the same names.

Example requests

search_products

curl -s 'https://acme.ferrite.run/api/products'

get_product

curl -s 'https://acme.ferrite.run/api/products/acme-mug'

list_collections

curl -s 'https://acme.ferrite.run/api/collections'

list_collection_products

curl -s 'https://acme.ferrite.run/api/collections/shirts/products'

get_cart

curl -s 'https://acme.ferrite.run/api/cart'

add_to_cart

curl -s -X POST 'https://acme.ferrite.run/api/cart/items' \
  -H 'content-type: application/json' \
  -H 'idempotency-key: add_to_cart-1' \
  -d '{"variant_id":"acme-mug-variant-1"}'

update_cart_item

curl -s -X POST 'https://acme.ferrite.run/api/cart/items/update' \
  -H 'content-type: application/json' \
  -H 'idempotency-key: update_cart_item-1' \
  -d '{"quantity":2,"variant_id":"acme-mug-variant-1"}'

place_order

curl -s -X POST 'https://acme.ferrite.run/api/orders' \
  -H 'content-type: application/json' \
  -H 'idempotency-key: place_order-1' \
  -d '{"email":"ada@example.com","name":"Ada Example"}'

Conventions

Machine-readable descriptions

Questions: see the contact page.