Skip to content
↑↓ to move · Enter to open · Esc to close
Data API docsReference for the Data API v2Status
Data API

MCP server

Use the Data API from AI assistants. Each tool call is one API call with your key, at the same price.

Server
data.retailed.io/mcp
Transport
Streamable HTTP
Key
Bearer
Tools
6
Price
Same credits as the API

Connect

The server speaks the Model Context Protocol over Streamable HTTP at https://data.retailed.io/mcp. It needs a Data API key, the same kind of key as the REST API.

  1. In the Data hub, open AI assistants and make an assistant key. It is a live key with a monthly cap of 2,000 credits; change the cap in Keys.
  2. Send the key in the header Authorization: Bearer <key> to https://data.retailed.io/mcp.
  3. Ask your assistant a question. It lists the tools and picks one.

Some clients take only a URL, with no header (Claude and ChatGPT custom connectors). For them, use the personal URL https://data.retailed.io/mcp/<key>. It holds your key: keep it private, and revoke the key in Keys if it leaks.

Client setup

Every snippet uses <your-key>: put your key in its place. The server name retailed-data is only a label in your client.

[ 01 / 08 ]

Claude

In Claude, open Settings, then Connectors, and choose Add custom connector. Name it Retailed Data and paste your personal URL. Custom connectors need a paid Claude plan.

Claude guide

Claude
https://data.retailed.io/mcp/<your-key>

Tools

Six read tools. Each calls one Data API endpoint and costs what that endpoint costs. Use list_sources first to get shop ids.

ToolWhat it doesCredits
list_sourcesLists the shops and marketplaces you can ask about, with what each one can do.Free
search_productsSearches one shop by words, SKU or style code: names, ids, prices and links.1 cached · 2 or 3 live
get_productReads one product from a product page URL or a shop id: sizes, prices and stock.1 cached · 2 or 3 live
compare_pricesCompares one product across shops from its barcode (GTIN) or Retailed id.1
price_historyPrice by day for one product, per shop, for one size and country if you want.1
get_usageCredits left this period and what the key has spent.Free
ArgumentUsed byWhat it is
shopsearch_products, get_productShop id from list_sources, e.g. stockx, nike, zalando.
qsearch_productsWords, SKU or style code, up to 200 characters.
pagesearch_productsResults page, 1 to 50.
urlget_productA product page URL from any shop. Without shop, the API picks the shop from the address.
idget_product, compare_prices, price_historyThe product id in a shop (from search_products), or the Retailed product id (from compare_prices).
gtincompare_pricesThe barcode (EAN or UPC), 8 to 14 digits.
countrysearch_products, get_product, price_historyTwo-letter country for prices and stock, e.g. US, FR. Default: the shop’s own.
freshsearch_products, get_producttrue reads the shop now and costs the live price. Left out, the answer can come from recent cached data at the cached price.
days, sizeprice_historyDays back, 1 to 365 (default 30), and one size, e.g. 10 or M.

Answers

A tool answer carries the API answer twice: as text for the model, and as structuredContent for clients that read JSON.

A tool call
curl https://data.retailed.io/mcp \
  -H "Authorization: Bearer <your-key>" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_usage","arguments":{}}}'
The result
{
  "content": [{ "type": "text", "text": "{ … the API answer … }" }],
  "structuredContent": {
    "data": { "…": "the API answer, as JSON" },
    "cut": false,
    "credits": 0,
    "creditsRemaining": 2000,
    "requestId": "req_…"
  }
}
  • credits is what the call cost; creditsRemaining is what the key or the account has left.
  • requestId is the API’s x-request-id: give it to support when you ask about a call.
  • An answer longer than 60,000 characters is cut: cut is true and data is null. Ask for one product or fewer results.
  • Every call shows in Logs with the AI source, next to your REST calls.

Limits

LimitValue
Calls per key240 a minute
Calls per IP address600 a minute
Wrong keys per IP address20 a minute, then 429 for the rest of the minute
Your planThe same rate limits, credits and key caps as the REST API

Errors

Errors at connect time come back as HTTP errors with a JSON body { "error", "message" }. A 401 also carries WWW-Authenticate: Bearer. Errors inside a tool call come back as a tool result with isError: true and a message the assistant can read out.

Status`error`When
401missing_keyNo Authorization header and no key in the URL.
401invalid_keyThe key is wrong, revoked or from another environment. Checked when the client connects.
429too_many_requestsOver a limit above. Wait a minute.
503gateway_unreachableThe Data API can’t be reached just now. Try again in a moment.
Tool resultisError: trueNo credits left, the key reached its cap, a shop has no search, or an argument is missing.

Questions

General4 questions

Can I use my existing API key?

Yes. Any live Data API key works. A separate key for each assistant is safer: it has its own cap and you can revoke it alone.

Does the assistant write anything?

No. The six tools only read. Keys, plans and billing stay in the Data hub.

Why does my client show the server as connected but tools fail?

Check the key in the header or URL, and that the key is not revoked or over its cap. Logs in the Data hub shows each call with its status.

Is there OAuth sign-in?

Not yet. Today the server takes an API key, in a header or in the personal URL.

Next