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.
- 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.
- Send the key in the header
Authorization: Bearer <key>tohttps://data.retailed.io/mcp. - 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.
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.
https://data.retailed.io/mcp/<your-key>ChatGPT
In ChatGPT on the web, open Settings, then Apps and connectors, Advanced, and turn on Developer mode. Then choose Create, paste your personal URL and pick No authentication.
https://data.retailed.io/mcp/<your-key>Claude Code
Run this in a terminal. The server is then available in every Claude Code session.
claude mcp add --transport http retailed-data https://data.retailed.io/mcp \
--header "Authorization: Bearer <your-key>"{
"mcpServers": {
"retailed-data": {
"url": "https://data.retailed.io/mcp",
"headers": {
"Authorization": "Bearer <your-key>"
}
}
}
}VS Code
Add this to .vscode/mcp.json in your project, then start the server from the file.
{
"servers": {
"retailed-data": {
"type": "http",
"url": "https://data.retailed.io/mcp",
"headers": {
"Authorization": "Bearer <your-key>"
}
}
}
}Windsurf
Add this to ~/.codeium/windsurf/mcp_config.json, then refresh the MCP servers.
{
"mcpServers": {
"retailed-data": {
"serverUrl": "https://data.retailed.io/mcp",
"headers": {
"Authorization": "Bearer <your-key>"
}
}
}
}Endpoint: https://data.retailed.io/mcp
Server Transport: HTTP Streamable
Authentication: Bearer Auth
Bearer token: <your-key>Any MCP client
Any client that supports remote MCP servers over HTTP works: send the key as a Bearer header, or use the personal URL.
URL: https://data.retailed.io/mcp
Header: Authorization: Bearer <your-key>
URL only: 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.
| Tool | What it does | Credits |
|---|---|---|
list_sources | Lists the shops and marketplaces you can ask about, with what each one can do. | Free |
search_products | Searches one shop by words, SKU or style code: names, ids, prices and links. | 1 cached · 2 or 3 live |
get_product | Reads one product from a product page URL or a shop id: sizes, prices and stock. | 1 cached · 2 or 3 live |
compare_prices | Compares one product across shops from its barcode (GTIN) or Retailed id. | 1 |
price_history | Price by day for one product, per shop, for one size and country if you want. | 1 |
get_usage | Credits left this period and what the key has spent. | Free |
| Argument | Used by | What it is |
|---|---|---|
shop | search_products, get_product | Shop id from list_sources, e.g. stockx, nike, zalando. |
q | search_products | Words, SKU or style code, up to 200 characters. |
page | search_products | Results page, 1 to 50. |
url | get_product | A product page URL from any shop. Without shop, the API picks the shop from the address. |
id | get_product, compare_prices, price_history | The product id in a shop (from search_products), or the Retailed product id (from compare_prices). |
gtin | compare_prices | The barcode (EAN or UPC), 8 to 14 digits. |
country | search_products, get_product, price_history | Two-letter country for prices and stock, e.g. US, FR. Default: the shop’s own. |
fresh | search_products, get_product | true reads the shop now and costs the live price. Left out, the answer can come from recent cached data at the cached price. |
days, size | price_history | Days 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.
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":{}}}'{
"content": [{ "type": "text", "text": "{ … the API answer … }" }],
"structuredContent": {
"data": { "…": "the API answer, as JSON" },
"cut": false,
"credits": 0,
"creditsRemaining": 2000,
"requestId": "req_…"
}
}creditsis what the call cost;creditsRemainingis what the key or the account has left.requestIdis the API’sx-request-id: give it to support when you ask about a call.- An answer longer than 60,000 characters is cut:
cutistrueanddataisnull. Ask for one product or fewer results. - Every call shows in Logs with the AI source, next to your REST calls.
Limits
| Limit | Value |
|---|---|
| Calls per key | 240 a minute |
| Calls per IP address | 600 a minute |
| Wrong keys per IP address | 20 a minute, then 429 for the rest of the minute |
| Your plan | The 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 |
|---|---|---|
| 401 | missing_key | No Authorization header and no key in the URL. |
| 401 | invalid_key | The key is wrong, revoked or from another environment. Checked when the client connects. |
| 429 | too_many_requests | Over a limit above. Wait a minute. |
| 503 | gateway_unreachable | The Data API can’t be reached just now. Try again in a moment. |
| Tool result | isError: true | No 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.