Quickstart

Product search for your e-commerce catalog, over REST or as an MCP server. Full-text candidates judged for fit by an LLM, best match first; price, stock and sort phrases in the query work as filters.

Quick start, no key

Search the fictional demo catalog. No sign-up needed:

curl 'https://storag.ai/api/v1/storag/demo/search?q=running+shoes&page_size=3&src=docs'

The demo MCP server (Streamable HTTP) is https://mcp.storag.ai/demo/mcp. In Claude Code:

claude mcp add --transport http storag-demo https://mcp.storag.ai/demo/mcp

With your project key

Your own catalog's MCP server is https://mcp.storag.ai/mcp, with your pk_ key as a Bearer token. In Claude Code:

claude mcp add --transport http storag https://mcp.storag.ai/mcp \
  --header "Authorization: Bearer pk_your_api_key"

The dashboard's Keys page shows this and the .mcp.json with your key filled in.

Get your API keyYour first week, step by stepAPI referenceSetting up from an AI agentTry the demo in the browser

Product search API for e-commerce, over your own catalog.

Connect your Google Shopping feed (XML, CSV or TSV) by URL and search it through the REST API or the MCP server.

What search does: /search takes full-text candidates from your catalog, adds products that match by meaning, and an LLM judge keeps the ones that fit, best match first (meta.judged: true). Price, stock and sort phrases in the query ("under 150 EUR", "in stock", "cheapest") are applied as filters. /search/text is plain full-text, never judged. What total, paging and meta.fallback mean on a judged answer: How /search answers.

Try it without a key: the /api/v1/storag/demo/* routes search a fictional demo catalog with the same response shapes, and https://mcp.storag.ai/demo/mcp is the same as an MCP server.

curl 'https://storag.ai/api/v1/storag/demo/search?q=waterproof+hiking+boots+under+150+in+stock&page_size=2&src=docs'

Have a project key? Your own catalog's MCP server is https://mcp.storag.ai/mcp, with your pk_ key as a Bearer token: see 4. Connect your AI agent (MCP) under Getting Started. The recipes below use the demo catalog.

Try it in your tool (no key)

The demo searches a fictional product catalog. You need no sign-up and no key. Each recipe ends with the first result you should see. Prefer a browser? Search the demo catalog on storag.ai.

  • Demo MCP server (Streamable HTTP): https://mcp.storag.ai/demo/mcp
  • Demo REST search: https://storag.ai/api/v1/storag/demo/search

curl

Search the demo catalog over REST:

curl 'https://storag.ai/api/v1/storag/demo/search?q=running+shoes&page_size=3&src=docs'

With jq, print only rank, ID, title and price:

curl -s 'https://storag.ai/api/v1/storag/demo/search?q=running+shoes&page_size=3&src=docs' \
  | jq '.results[] | {rank, id: .product.id, title: .product.title, price: .product.price.amount}'

The same search as one MCP tool call. The server is stateless, so you need no session first:

curl -s -X POST 'https://mcp.storag.ai/demo/mcp' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_products","arguments":{"q":"running shoes","page_size":3}}}'

First result: rank 1 is DEMO-1986, Granite Owl Alder Waterproof Women's Trail Running Shoes, Olive, 65 EUR. The MCP call returns the same JSON as text in result.content[0].text.

Claude Code

Add the server from the command line:

claude mcp add --transport http storag-demo https://mcp.storag.ai/demo/mcp
claude mcp list

claude mcp list should show storag-demo: https://mcp.storag.ai/demo/mcp (HTTP) - ✔ Connected.

Or put it in .mcp.json in your project folder, to share it with your team:

{
  "mcpServers": {
    "storag-demo": {
      "type": "http",
      "url": "https://mcp.storag.ai/demo/mcp"
    }
  }
}

Keep "type": "http". Without it, Claude Code skips the server. The first time you run claude in that folder, it asks you to approve the server. Until you do, claude mcp get storag-demo shows Pending approval.

Then ask Claude:

Use the storag-demo search_products tool to find "running shoes". Reply with only the first result: id, title, price.

First result: DEMO-1986, Granite Owl Alder Waterproof Women's Trail Running Shoes, Olive, €65. The wording of the reply can vary.

Claude Desktop and claude.ai

In Claude Desktop or on claude.ai, open Connectors (Claude Desktop: Settings > Connectors; claude.ai: https://claude.ai/customize/connectors), then Add, then Add custom connector. Name it Storag demo, set the URL to https://mcp.storag.ai/demo/mcp, click Continue and choose No sign-in. On the Free plan, Claude allows one custom connector. Claude connects from Anthropic's cloud, so this works from any network.

Then ask Claude:

Use the Storag demo connector to find "running shoes". Reply with only the first result: id, title, price.

First result: DEMO-1986, Granite Owl Alder Waterproof Women's Trail Running Shoes, Olive, €65. The wording of the reply can vary.

Cursor

Create .cursor/mcp.json in your project, or ~/.cursor/mcp.json to use the server in every project:

{
  "mcpServers": {
    "storag-demo": {
      "url": "https://mcp.storag.ai/demo/mcp"
    }
  }
}

Open Customize in the sidebar and check that storag-demo is enabled and lists its tools. Then ask the Agent the same question as in the Claude Code recipe. By default, Cursor asks you to approve each tool call.

First result: DEMO-1986, Granite Owl Alder Waterproof Women's Trail Running Shoes, Olive, 65 EUR.

n8n

For an AI Agent: add an MCP Client Tool node to the agent's Tool input, and set:

  • Endpoint: https://mcp.storag.ai/demo/mcp
  • Server Transport: HTTP Streamable
  • Authentication: None
  • Tools to Include: All

The demo has no SSE endpoint, so pick HTTP Streamable. An older MCP Client Tool node that has only an SSE Endpoint field cannot connect.

As a plain workflow step: add an MCP Client node, and set:

  • Server Transport: HTTP Streamable
  • MCP Endpoint URL: https://mcp.storag.ai/demo/mcp
  • Authentication: None
  • Tool: search_products
  • Input Mode: JSON, with {"q": "running shoes", "page_size": 3}

Without MCP: add an HTTP Request node with Method GET and this URL:

https://storag.ai/api/v1/storag/demo/search?q=running+shoes&page_size=3&src=docs

First result: results[0].product.id is DEMO-1986, Granite Owl Alder Waterproof Women's Trail Running Shoes, Olive, 65 EUR.

Getting Started

Get up and running with Storag.ai in four steps. Want to try it first? Run the keyless demo curl above, no sign-up needed.

1. Create a project and get your API key

Sign up for a free account and create your first project in the Storag.ai Dashboard. Each project has its own product catalog and API keys. Your API key (it starts with pk_) is made in the API Keys section. It is shown in full only once, when you create or regenerate it: copy it then. Storag keeps only a hash of it.

2. Upload your products

Connect your product catalog via a Google Shopping feed URL (XML, CSV or TSV) in the Product Feed settings. We import and index your products automatically, and keep them in sync with the feed.

Search your own catalog with words that appear in your product titles or descriptions:

curl 'https://storag.ai/api/v1/storag/search?q=trail+running+shoes' \
  --header 'Authorization: Bearer pk_your_api_key'

An empty results list with total: 0 means nothing in your catalog fits the query.

4. Connect your AI agent (MCP)

Point Claude Code, Cursor or any MCP client at your own catalog with the same pk_ key. Put this in .mcp.json in your project folder:

{
  "mcpServers": {
    "storag": {
      "type": "http",
      "url": "https://mcp.storag.ai/mcp",
      "headers": {
        "Authorization": "Bearer ${STORAG_API_KEY}"
      }
    }
  }
}

Set STORAG_API_KEY to your key in your environment, so the key is not committed. Or add it from the terminal:

claude mcp add --transport http storag https://mcp.storag.ai/mcp \
  --header "Authorization: Bearer pk_your_api_key"

The API Keys page shows both with your key filled in. Tools and clients: MCP Server.

Empty answer or no catalogue

An empty results list means one thing only: your catalogue has no match for the query. A keyed search answer that did not search your own products says so in the catalogue field and the X-Storag-Catalogue header. Without them, your own imported products answered. The keyless demo never sends them.

  • sample: the 2,000-product sample catalogue a new project starts on, until your own import is live. These are demo products, not your shop's, so never show them to shoppers as your stock.
  • none: the project has nothing to search yet (sample products off, no import live). The answer is 200 with an empty page and a notice saying what to do next: add a feed, or turn on sample products. Check this field before you tell a user "no products found".

Over MCP a none answer is a tool error with the same next step, so an agent never reads it as "nothing matched".

Your first week

Your dashboard's Overview has a card with three steps: import your catalogue, search it, connect your app or agent. This page covers the same three steps with the exact commands, what "done" looks like for each one, and what to do when a step fails.

Your first week counts as live when your API key makes 100 searches on your own products, on at least 2 different days, within 7 days of sign-up. Searches from the dashboard search box and the Playground do not count. Searches from your key on the sample catalogue do not count either.

All commands below use $STORAG_API_KEY. Set it once in your shell:

export STORAG_API_KEY="<your key from Dashboard → API keys>"

Step 1: Import your catalogue

The import runs from the dashboard. There is no API route for it.

  1. Open Overview.
  2. Paste your feed URL in Google Shopping feed URL. It must be the full URL, starting with https:// or http://.
  3. Click Import feed.

On the Feed page the same field is called Feed URL and the button Save feed URL. Saving starts the import, and Sync now imports again.

No feed at hand? Click No feed at hand? Import our 2,000-product demo feed. It imports https://storag.ai/api/v1/storag/demo/feed.xml, a fictional outdoor-gear catalogue.

Before you import: check the feed from your terminal

Storag fetches the feed from the public internet, so it has to work without a login or VPN:

curl -sI "https://your-store.com/feed.xml"          # expect HTTP 200
curl -s "https://your-store.com/feed.xml" | head -c 400

The first lines should be one of the formats Storag reads:

  • Google Merchant RSS or Atom (<rss ... xmlns:g="http://base.google.com/ns/1.0"> or <feed>)
  • Google Merchant CSV/TSV, with a header row that includes id and title
  • SHOP XML (SAIMON, Heureka, Zboží.cz), with a <SHOP> root element

Limits: 200 MB per feed and 120 seconds to download it.

While it runs

The card shows four stages, Queued → Downloading the feed → Reading products → Searchable, plus a count of the products read so far. The page checks the import every 3 seconds while the tab is open. You can leave the page and connect your agent (step 3) while you wait.

Done looks like

The step turns green and shows Catalogue imported, e.g. 2,000 products from storag.ai/…/feed.xml · imported in 14 s.

To confirm from your terminal, count your products:

curl -s "https://storag.ai/api/v1/storag/products?page_size=1" \
  -H "Authorization: Bearer $STORAG_API_KEY" | jq .total
2000

If the answer has "catalogue": "sample", your key is still searching the sample catalogue and your own import is not live yet.

When the import fails

The card shows Import failed. with one of these reasons. Fix the cause, then click Import again (on the Feed page: Sync now).

Message on the cardWhat to do
Enter the full feed URL, starting with https:// or http://Paste the whole URL, including https:// or http://.
The feed URL was not found (HTTP 404 or 410).The URL is wrong or the file moved. Open it in a private browser window and copy the URL from the address bar.
The feed URL refused access (HTTP 401 or 403).The feed is behind a login, an IP allowlist or a token that expired. Make it publicly readable.
The feed host name could not be resolved.There is a typo in the domain, or the domain only exists on your internal network.
The feed URL points to a private network address, which is not allowed.localhost, 10.x, 192.168.x and other internal addresses are refused. Publish the feed on a public host.
The file is not a Google Merchant (RSS or Atom) product feed.The URL returns an HTML page, a ZIP file or another XML format. Check the first lines with the curl above. A compressed feed has to be served plain or with Content-Encoding: gzip.
The feed holds no products.The file is valid but has no items. Check your shop's feed export settings.
The feed is larger than the allowed size.The feed is over 200 MB or 5,000,000 items. Export only the products you sell.
The feed server was unavailable or rate limited. The import is retried.Nothing to do. Storag retries after 5 minutes and again after 30 minutes. It marks the import failed after the third attempt.
Imports were paused after repeated failures. Fix the feed and sync again.Fix the cause shown by the earlier failures, then click Import again.

Import again does nothing, or says to try later? A manual import can be started once every 15 minutes and 24 times a day. While an import is queued or running, a second click returns that same import.

Step 2: Search your catalogue

Once your products are searchable, the card opens a search box filled with a first query. Type a query the way a shopper would, e.g. waterproof hiking boots under 150, and click Search.

This box searches with your dashboard login, not your key, so it does not count toward the 100. It shows the same results your agent will get.

Done looks like

Three product cards with titles and prices, and a line such as 23 matches · 16 ms · your catalogue. Open in Playground → opens the same query with more results.

When there are no results

What you seeWhat to do
No products match "…". Try words from your product titles:Click one of the suggested chips. Those words come from your own catalogue, so they should return results. Query in the language your product titles are written in.
Opens when your products are searchable.The import has not finished. Go back to step 1.
The search did not answer. Try again in a moment.Try again. If it keeps failing, ask us in chat.

Step 3: Connect your app or agent

Pick one way to connect. Searches from your key count toward the 100 from here on. The card has a tab for each option with your key already filled in; Copy puts the full key on your clipboard.

Claude Code

claude mcp add --transport http storag https://mcp.storag.ai/mcp \
  --header "Authorization: Bearer $STORAG_API_KEY"

The dashboard names the server after your project (storag-<project-name>), so two projects can be connected side by side.

.mcp.json (Claude Code, Cursor or any MCP client)

{
  "mcpServers": {
    "storag": {
      "type": "http",
      "url": "https://mcp.storag.ai/mcp",
      "headers": {
        "Authorization": "Bearer <your key>"
      }
    }
  }
}

The server offers four tools: search_products, text_search_products, list_products and get_product. Ask your agent a shopping question, e.g. "find waterproof hiking boots under 150".

curl

curl "https://storag.ai/api/v1/storag/search?q=waterproof+hiking+boots+under+150&page_size=3" \
  -H "Authorization: Bearer $STORAG_API_KEY"

Done looks like

The REST answer is HTTP 200 with your products under results[].product:

{
  "query": "waterproof hiking boots under 150",
  "results": [
    { "product": { "id": "DEMO-1937", "title": "Larchline Waterproof Men's Hiking Boots, Black",
                   "price": { "amount": 108.49, "currency": "EUR" }, "...": "..." }, "rank": "..." }
  ],
  "total": 23, "page": 1, "pageSize": 3, "processingTime": 16
}

Over MCP, search_products returns the same JSON as text.

Back on the dashboard, step 3 turns green: App or agent connected and Your key has answered N searches. The page updates itself; you do not need to reload.

To see the count yourself:

curl -s "https://storag.ai/api/v1/storag/usage" \
  -H "Authorization: Bearer $STORAG_API_KEY" | jq .total.search
{ "calls": 136, "ok": 135, "errors": 1, "noCatalogue": 0 }

When it fails

What you getWhat to do
401 Missing API key: send Authorization: Bearer <key>Add the header exactly as Authorization: Bearer <key>.
401 Invalid API keyThe key was mistyped, cut short or revoked. Copy it again from the card or Dashboard → API keys.
MCP tool error Invalid Storag API key: storag-api refused the key sent as 'Authorization: Bearer <key>' on the first searchSame cause, in the Authorization header of your MCP config. The client still connects and lists the tools; the key is checked at the first tool call. Fix it and restart your MCP client.
403 This API key is not allowed from this originThe key has allowed domains and the request came from another origin. Add that domain to the key, or call from your server or terminal.
429 Rate limit of N requests per minute exceededSlow down. The X-RateLimit-Limit and X-RateLimit-Remaining headers show your limit.
429 quota_exceededThe project used its plan's monthly searches several times over. The message gives the reset date and the upgrade link.
200 with "catalogue": "none" and notice.code no_catalogueYour project has no catalogue yet, so nothing was searched. Finish step 1.
200 with "catalogue": "sample"Your key searches the 2,000-product sample catalogue until your own import is live. These searches do not count toward the 100.
200 with "total": 0Nothing matched. Try words from your product titles, as in step 2.

After the first week

When your key reaches 100 searches on 2 days, the card switches to You're live and links to Usage. If the 7 days pass first, the card offers a chat with us and the Claude Code command again.