Superzoo MCP
# Superzoo MCP
An unofficial, read-only [Model Context Protocol](https://modelcontextprotocol.io/) server for finding Super zoo products, prices, and store availability. Supports **Slovakia, Czechia, and Poland**, over **stdio or Streamable HTTP**. No Super zoo account is required.
Strict TypeScript compiled to JavaScript. Requires Node.js 22 or newer. [MIT licensed](LICENSE). This project is not affiliated with Super zoo or the Plaček Group.
[View Superzoo MCP on Glama](https://glama.ai/mcp/servers/benjaminstary/superzoo-mcp)
## Quick start
Clone this repository, then run:
```sh
npm ci
npm run build
npm start
```
The default is stdio with the Slovak shop. It waits for an MCP client rather than showing an interactive prompt.
### Stdio client configuration
Replace the script path with your checkout's absolute path. Some desktop clients also require the absolute path to Node.
```json
{
"mcpServers": {
"superzoo": {
"command": "node",
"args": ["/path/to/superzoo-mcp/dist/index.js"],
"env": {
"SUPERZOO_COUNTRY": "SK",
"SUPERZOO_TRANSPORT": "stdio"
}
}
}
}
```
### HTTP
```sh
SUPERZOO_COUNTRY=CZ SUPERZOO_TRANSPORT=http npm start
```
Connect an MCP client to **`http://127.0.0.1:3000/mcp`**. For clients that support URL configuration:
```json
{
"mcpServers": {
"superzoo": {
"url": "http://127.0.0.1:3000/mcp"
}
}
}
```
HTTP uses stateless MCP Streamable HTTP with JSON responses. Each request gets a fresh protocol instance; there are no persistent sessions, standalone GET streams, or legacy SSE endpoint. `GET /health` checks process health and reports the selected country; it does not test upstream availability.
**No bearer token is required or implemented.** For remote access, place the service behind a TLS reverse proxy with access control and request limits. For example, Pocket ID can supply login for an OIDC-aware proxy. Verify your MCP client supports that authentication flow. The backend must remain reachable only through the proxy. See [SECURITY.md](SECURITY.md).
On SIGINT or SIGTERM, HTTP stops accepting connections, lets active responses finish for up to five seconds, then closes remaining connections and cancels their upstream subscriptions. Stdio closes its protocol transport and cancels pending handlers.
The server validates Host headers and rejects browser Origin headers unless explicitly allowed. For a reverse proxy that forwards `Host: mcp.example.com`:
```sh
SUPERZOO_TRANSPORT=http \
SUPERZOO_HOST=0.0.0.0 \
SUPERZOO_ALLOWED_HOSTS=mcp.example.com \
node dist/index.js
```
Set `SUPERZOO_ALLOWED_ORIGINS=https://client.example.com` only when a browser client needs CORS. Origin and Host checks do not authenticate clients. Non-browser MCP clients normally send no Origin header.
## Countries and configuration
One server instance serves one country. Start separate instances to use multiple markets simultaneously. Product IDs may exist across markets; prices and availability always come from the selected shop.
| `SUPERZOO_COUNTRY` | Shop | Language | Currency |
| --- | --- | --- | --- |
| `SK` (default) | [superzoo.sk](https://www.superzoo.sk/) | Slovak | EUR |
| `CZ` | [superzoo.cz](https://www.superzoo.cz/) | Czech | CZK |
| `PL` | [superzoo.com.pl](https://superzoo.com.pl/) | Polish | PLN |
These are the verified Super zoo storefronts. Other brands within the parent group, such as Dino Zoo, are outside this project's current scope. Unsupported country codes fail at startup; the server never falls back silently to a different market.
| Environment variable | Default | Meaning |
| --- | --- | --- |
| `SUPERZOO_COUNTRY` | `SK` | `SK`, `CZ`, or `PL`, case-insensitive |
| `SUPERZOO_TRANSPORT` | `stdio` | `stdio` or `http` |
| `SUPERZOO_HOST` | `127.0.0.1` | HTTP bind hostname or IP |
| `SUPERZOO_PORT` | `3000` | HTTP port, 1–65535 |
| `SUPERZOO_ALLOWED_HOSTS` | Loopback names/IPs plus a specific bind host | Comma-separated accepted HTTP hostnames/IPs, without port or scheme. Binding `0.0.0.0` does not allow arbitrary hosts. |
| `SUPERZOO_ALLOWED_ORIGINS` | Empty | Comma-separated exact HTTP(S) browser origins; no wildcards |
Environment variables work with both transports. For Windows or file-based configuration, copy `.env.example` to `.env` and run:
```sh
node --env-file=.env dist/index.js
```
The server does not load `.env` automatically. Bounded request diagnostics (market, operation, status, duration, cache hit) go to stderr. Diagnostic fields exclude queries, coordinates, addresses, headers, and response bodies. Stdio reserves stdout for MCP.
## Tools
| Tool | Arguments | Returns |
| --- | --- | --- |
| `search_products` | `query`, optional `limit` (default 10, max 50), `brand`, `min_price`, `max_price`, `online_only` | Product IDs, links, price offers, variants, and availability summaries |
| `get_product` | `product_id` | Product identity, link, brand, EAN, variants, rating, localized attributes, price offer, delivery and available-store count |
| `get_product_availability` | `product_id`, optional `city` | Store names, addresses, links, opening hours, stock status and pickup text |
| `compare_products` | `product_ids` (1–10 unique variant IDs) | Input-ordered products with per-product errors and original fetch timestamps |
| `find_common_stores` | `product_ids` (1–10 unique variant IDs), optional `city` | Stores grouped by stable ID, every requested product's observation, and `all_in_stock` |
| `find_stores` (SK, CZ) | `latitude` and `longitude`, both required in decimal degrees | Up to one nearby branch selected by Super zoo, with its ID, address, and reported branch coordinates |
| `get_delivery_options` (SK, CZ) | `product_id`, optional `quantity` (1 or 2, default 1) | Market-level shipping quote, including prices, dates, and pickup places supplied with each method |
| `list_product_categories` (SK, CZ) | Optional `department`, or `category_id` and/or `query` | Live animal-department navigation or filters and counts for a selected scope |
| `browse_products` (SK, CZ) | `category_id`, `query`, or both, plus optional catalogue filters, `offer`, and `page` (default 1) | One eligible catalogue page, coverage counts, and `next_page` |
Example workflow:
1. `search_products({"query":"brit care lososovy olej","limit":3})`
2. Choose the correct bottle size using its variant-specific product ID.
3. `get_product_availability({"product_id":"294-101115","city":"Bratislava"})`
Ask your assistant: “Find Brit Care salmon oil and tell me which Bratislava stores have the 250 ml bottle.” For CZ or PL, select that market at startup and use a relevant city or omit the city filter.
Search filters and shopping examples (use IDs discovered in your selected market):
```js
search_products({ query: "brit care", brand: "Brit Care", min_price: "0.10", max_price: "20.00", online_only: true, limit: 5 })
compare_products({ product_ids: ["294-101115", "294-172197"] })
find_common_stores({ product_ids: ["294-101115", "294-172197"], city: "Bratislava" })
find_stores({ latitude: 48.15, longitude: 17.11 }) // SK, near central Bratislava
get_delivery_options({ product_id: "294-101115", quantity: 2 }) // SK or CZ
```
### Restock an exact pack in Slovakia or Czechia
Set `SUPERZOO_COUNTRY` for the market, then ask your MCP client:
- **SK:** „Kde v Bratislave dnes vyzdvihnem Brit Care Dog Hypoallergenic Adult Medium Breed 12 kg aj Cats Best Universal 10 l? Ak sa granuly nedajú vyzdvihnúť dnes, koľko stojí doručenie dvoch balení?“
- **CZ:** „Kde v Praze dnes vyzvednu Brit Care Dog Hypoallergenic Adult Medium Breed 12 kg i Cats Best Original 10 l? Pokud granule dnes nevyzvednu, kolik stojí doručení dvou balení?“
1. Use `search_products` to find candidates, then `get_product` to confirm the formula and active pack. The 1 kg, 3 kg, 12 kg, and 12+2 kg offers are distinct. Ask for the pack size when the request is ambiguous. Confirm each item independently.
2. Use `get_product_availability` for one item or `find_common_stores` for both. For a shared pickup, check both observations under the same `store_id`. Report each item's `pickup_text` alongside the branch link and observation time. In the live replay, `available` included pickup within an hour and `inStock` included Monday pickup. A false `all_in_stock` can still accompany a pickup option for both items. Report same-day pickup only when every item has status `available` or `inStock` and pickup timing that explicitly fits today. Missing observations, unknown statuses, and failed lookups leave pickup unconfirmed.
3. Show the product link, confirmed pack size, and online pack price. Label Family member prices using `price.requires_membership`. If the exact weight is confirmed, divide the applicable pack price by its weight in kg for an effective unit price. For delivery, use `get_delivery_options` with the confirmed food variant and `quantity: 2`. Report the method, any “from” fee, and date as a market-level quote.
[Live restock replay](docs/investigation.md#exact-product-restock-replay--2026-11-25)
### Catalogue filters
The Slovak and Czech tools cover dogs, cats, small mammals, birds, aquariums, and terrariums. For a shopping request with category, brand, or attribute requirements:
1. Call `list_product_categories({})` for category IDs, or pass `department` to narrow the navigation.
2. Call `list_product_categories({ category_id })` again for that category’s live filters and sorts. If you plan to browse with a keyword, pass the same `query` to discovery and browsing. A query alone also supports filter discovery.
3. In `browse_products`, pass IDs from `filters.brands` in the top-level `brands` array and the exact keys and values from `filters.parameters` in `facets`. For a brand family, select the matching IDs by their displayed names.
Use `search_products` for product-name lookup. Its optional `brand` matches an exact brand name after case and accent normalization.
Link each recommended product using its returned `url` from `search_products`, `get_product`, or `browse_products`. Successful `compare_products` entries include the link at `product.url`. Show the confirmed pack size alongside the link when available.
```js
// Example using the Slovak aquarium decoration category and length facet.
list_product_categories({ department: "aquaristics" })
list_product_categories({ category_id: "7e43e545-85f0-4b57-97a4-8a402743d088", query: "dekorácia" })
browse_products({
category_id: "7e43e545-85f0-4b57-97a4-8a402743d088",
query: "dekorácia",
facets: { dlzka: { from: 0, to: 20 } },
catalogue_price: { from: 0, to: 30 },
})
```
Use the exact keys and values from the discovery result. A facet accepts one value, an array of acceptable values, or a numeric `{ from, to }` range in the catalogue’s units. Different facet keys must all match. Life-stage choices such as puppy, adult, and senior use this same syntax. Use `get_product` to confirm dimensions and attributes that the catalogue omits.
Other inputs include `subcategories`, `campaigns`, `tags`, and `ratings` from the same discovery result. The `only_in_stock` flag uses catalogue stock. Use `get_product_availability` for pickup at a specific branch. `catalogue_price` and price sorting use catalogue amounts in the market currency. Check `get_product` for the current public offer price. If the storefront labels are unavailable, discovery returns exact raw values and counts with `labels_available: false`.
`browse_products` checks up to ten candidates per page for publication, local sale restrictions, and a public price-level record. It skips missing product records. `upstream_total_count` counts catalogue matches before eligibility and offer checks. Keyword browsing filters up to 200 upstream candidates and defaults to keyword order. `candidate_limit_reached` indicates that the search reported further candidates outside the verified window.
Set `offer: "sale"` for general sales, `offer: "family"` for Family member prices, or `offer: "deals"` for both. Each match includes the public offer price, published original price, offer variant, and price check time. Family prices require membership. Published unit prices can reflect the regular price during an offer. `offer_filter.detail_failures` counts product details that could not be verified.
Pass `next_page` as `page` with the same inputs, even when a page has no eligible products or deals. A null `next_page` means the current candidate total is exhausted. Catalogue changes between requests can move products between pages. Poland has keyword search via `search_products`. [Catalogue investigation](docs/catalogue-filter-investigation.md)
For price comparisons, use `get_product` or `compare_products` to confirm public offer prices. Report the lowest pack price and the lowest price per comparable unit separately when both matter. Label Family offers as member-only. If coverage is incomplete, qualify the ranking as the lowest among the products checked. Use `unit_price_asc` only when the scope advertises it, and verify the unit and price basis before comparing published unit prices.
`find_stores` accepts latitude from −90 to 90 and longitude from −180 to 180. It sends the coordinates to the selected Super zoo storefront. Results include `market`, `source`, `checked_at`, `coverage` set to `"nearest_store"`, and a `stores` array with at most one branch. Each branch has `store_id`, `name`, `address`, and reported branch coordinates. A missing or invalid branch coordinate is `null`. An explicit empty upstream result yields an empty array. Poland's locator route remains unverified.
Use `get_product_availability` for stock. The saved Slovak evidence confirms that the locator and stock API use the same ID for Bratislava Central (`SKPIC-520`). Broader ID equivalence and caller distance remain unverified. [Store locator evidence](docs/investigation.md#anonymous-store-locator--2026-11-23)
`get_delivery_options` quotes shipping for one variant-specific product ID. Pass `quantity: 2` to quote two units. The default is one unit. Results include `market`, `source`, `checked_at`, `product_id`, `quantity`, `address_checked: false`, `delivery_methods`, and `pickup_methods`. The quote uses the market without an address or postal code. Each method includes `method_id`, the localized `name`, nullable `price`, and nullable `delivery_date`. Prices include VAT and keep the upstream decimal string and currency. `is_price_from` preserves the home-delivery price qualifier. Dates retain their original offsets.
Pickup methods preserve the upstream grouping, which can include express delivery. Each includes `is_store` and the supplied `places`, with each place's ID, name, availability flag, date, and any extra fee. Report availability and dates for the places they describe. Unknown values are `null`. Empty arrays mean the quote supplied no entries for that group. Wolt availability and timing for a specific location require location-specific evidence. [Shipping quote evidence](docs/investigation.md#anonymous-product-shipping-quotes-and-pickup--2026-11-23)
Brand matching is exact after case/accent normalization. Price bounds are inclusive nonnegative decimal strings; reversed ranges are rejected. Filters combine with AND. `online_only: true` requires explicit delivery status `available`; absent, unknown, or unavailable statuses are omitted. `can_buy` and branch stock do not establish delivery availability. `online_only: false` adds no delivery filter.
Price filters use the returned offer amount, including Family member prices. Check `price.requires_membership` and `price.variant` for the offer's conditions.
Product details, enriched search results, and successful comparison entries include `rating` and `attributes`. The rating is either `null` or `{ value, count }`. The value uses the upstream scale, whose maximum is unverified. Attributes are localized `{ name, value }` pairs in upstream order. An empty list means no valid pairs were supplied.
Search filters apply locally to enriched candidates within the first 200 upstream items, preserving upstream order. `coverage: "bounded_candidates"` means omitted candidates may contain matches. `filters_applied` echoes normalized supplied filters; `products_checked` counts attempted detail lookups, including cache hits and failures; `detail_failures` counts failed lookups. When filters are active, failed or missing required fields exclude a candidate. With no active filters, detail failures retain discovery data with `price: null` and `detail_error`.
Both batch tools return `complete: false` when any product lookup fails, with per-product stable errors. Comparison preserves input order. Common-store results include the union of observed stores and an entry for every requested product at each store. Missing observations have null status/timestamp; failed lookups also carry an error. `all_in_stock` is true only when every requested product explicitly has status `inStock` at that store. Store identity uses its ID; first successful observation in input order supplies display metadata. Stock never guarantees pickup timing. Observed raw `available` values can include pickup within hours, while `inStock` can include a later day. The conservative `all_in_stock: false` does not prove a store cannot supply the products; inspect each status and pickup text. See the [branch-status evidence](docs/investigation.md#branch-status-follow-up-2026-11-07).
Every tool publishes a success output schema and returns the same data as JSON text and `structuredContent`. Tool failures use `isError: true` and JSON text `{code, message, retryable}`, without success-shaped structured content. Codes are `not_found`, `rate_limited`, `upstream_unavailable`, `invalid_response`, `timeout`, `cancelled`, `overloaded`, and `internal_error`. Input validation uses MCP SDK/Zod errors separately. Cancellation can reject the protocol request before a tool-error response is delivered.
## Prices, stock, and limits
- Prices come from anonymous online lookups in the market's currency. Decimal amounts remain strings. `price.context` is `public_online`, and `price.variant` preserves the upstream offer label. `price.requires_membership` is `true` for `familyPrice` and `topPriceFamilySale`, `false` for `default` and `sale`, and `null` when the variant is missing or unrecognized. Shopper eligibility and branch prices are unverified. `original_amount` and `lowest_amount` preserve upstream reference prices when present.
- A present `price` includes `unit_price` and `original_unit_price`, each `null` when unavailable. A supplied unit price has `amount`, `unit_size`, and `unit` strings. For example, `{ amount: "2.83", unit_size: "100", unit: "g" }` means 2.83 in the offer currency per 100 g. For a confirmed pack weight, calculate the effective unit price from the applicable pack price.
- Stock is a status, not an exact quantity. `quantity` is always `null`; missing stock status becomes `unknown`. Stock status and `pickup_text` stay separate: an in-stock product may only be ready tomorrow.
- Single-product, availability, and search results include `market`, `source`, and an ISO `checked_at` timestamp. Batch results include `market` and a completion `checked_at`; nested products and store observations retain their own retrieval timestamps. Successful validated details cache for 60 seconds and raw stock for 15 seconds, in one 256-entry in-memory LRU cache per client. Cache hits retain the original `checked_at`; expired data and failures are never served from cache. Prices and stock can change afterward; these tools never reserve products.
- City filtering matches store names and addresses locally, ignoring case and accents. It does not measure distance or establish municipal boundaries. Pickup text remains in the shop's language.
- `opening_hours_html` contains upstream HTML. Treat it as untrusted data in any UI.
- Search checks at most 200 mixed candidates and filters non-products, forbidden products, and price restrictions. The verified default levels are SK `22` and CZ `1`. The Polish default level is unverified, so PL conservatively excludes any candidate with explicit price-level restrictions. This may omit eligible products.
- `upstream_total_count` is not a product count. `candidate_limit_reached` signals that upstream candidates were omitted. Fewer than the requested number may be returned.
- One long-lived client shares a maximum of four upstream operations across searches, batches, and HTTP callers, with at most 128 queued operations. A full queue returns `overloaded`. Search and batch enrichment also use at most four local lookups.
- Each upstream operation has a 15-second total deadline, including queueing, retries, and response validation. At most two attempts retry network failures and HTTP 429/502/503/504. Valid `Retry-After` seconds/dates are honored only if the delay fits the deadline; otherwise the current error returns. Without a valid header, jitter is 200–500 ms. Validation errors, cancellation, and other HTTP statuses are not retried. Multi-step searches/batches can take longer than one operation deadline.
- Identical detail/stock lookups share in-flight work. Each caller cancels independently; upstream work stops when no callers remain. SDK cancellation propagates over stdio; closing an HTTP response cancels that request's handlers. Cancellation stops queued enrichment rather than returning an apparently complete batch. City filtering runs after raw stock retrieval, including cache hits. Markets never share cache entries or upstream work.
- HTTP request bodies are limited to 64 KiB. Remote request limits and authentication belong to your deployment infrastructure.
- Distance ranking, full-catalog search/pagination, and Polish price-level changes remain deferred pending further evidence. Account features are outside scope.
- These are undocumented upstream APIs. They may change. There are no account, cart, ordering, or mutation tools.
## Docker
```sh
docker build -t superzoo-mcp .
docker run --rm -p 127.0.0.1:3000:3000 -e SUPERZOO_COUNTRY=PL superzoo-mcp
```
A separate build stage compiles TypeScript. The final image contains production dependencies and compiled JavaScript, and runs HTTP as a non-root user. For a proxy, connect it through a private container network and set `SUPERZOO_ALLOWED_HOSTS` to the forwarded hostname. Avoid publishing the backend directly on a public interface.
## Development and validation
```sh
npm ci
npm run typecheck
npm test
npm run test:package
SUPERZOO_COUNTRY=SK npm run smoke
SUPERZOO_COUNTRY=CZ npm run smoke
SUPERZOO_COUNTRY=PL npm run smoke
npm audit --omit=dev
npm pack --dry-run
```
The TypeScript runtime lives in `src/` and compiles to ignored `dist/` output. `npm test` builds first, then runs JavaScript tests against the compiled runtime. `npm run smoke` and `npm pack` also build automatically. After changing source, rebuild before using `npm start`. Installed packages and the final Docker image run compiled JavaScript without TypeScript development dependencies.
Unit and protocol tests use small public-data fixtures and temporary localhost HTTP listeners, without external requests. SIGTERM tests cover stdio cancellation, HTTP response draining, forced closure after the existing five-second HTTP grace period, cancellation of active/queued work, and clean process exit. `npm run test:package` is a separate gate: it builds and packs the package, installs the tarball with runtime dependencies in a temporary consumer directory, then tests the installed executable with fixture data. It can access the npm registry, but makes no Super zoo requests. CI runs offline tests and the consumer-install check on Node.js 22 and 24.
Each live smoke invocation checks search, product detail, and store availability. Detail enrichment and bounded retries may add upstream requests. The separate workflow runs daily at 06:00 UTC and supports manual dispatch, sequentially across SK/CZ/PL. The CLI emits one JSON record per check on stderr and exits nonzero on failure. `empty_search` and `empty_stock` indicate that the canary had no data to validate. See [CONTRIBUTING.md](CONTRIBUTING.md) and [API notes](docs/investigation.md).
The npm package includes only compiled runtime JavaScript, README, license, and package metadata. The GitHub repository also contains tests and development files. Downloaded apps and raw research stay in ignored local storage and are not redistributed. Super zoo trademarks and third-party storefront content remain their owners' property.
TDQS
Scored across 9 tools
Most tools are cleanly separated: search_products (keyword), browse_products (category/brand/facet), list_product_categories (filter discovery), get_product (detail), and the store/availability tools each cover distinct ground. The closest overlaps are search_products vs browse_products and find_stores vs find_common_stores vs get_product_availability, but the descriptions explicitly cross-reference and delimit these (keyword vs filters, nearest branch vs multi-product intersection vs single-variant stock). Descriptions are dense but the boundaries are stated, so misselection risk is low-moderate.
All names are snake_case verb_noun (get_product, search_products, list_product_categories, find_stores, compare_products), with no camelCase or bare-noun outliers. Variant verbs (get vs find vs browse vs list) are used meaningfully rather than arbitrarily, and plural/singular forms consistently reflect the arity of the result.
Nine tools is well within the ideal 3-15 range for a product catalogue and delivery-quote server. Each tool maps to a distinct step in the shopping flow (discover filters, search, browse, detail, compare, delivery, store/stock), with no obviously redundant entries.
The surface covers the full read-only discovery lifecycle: category/filter discovery, keyword search, faceted browse, product detail, comparison, delivery quoting, and both branch-level and product-level stock. Gaps are minor for this apparent read-only domain (no cart/checkout or account/membership-verification operations), and the tools cross-reference workarounds (e.g. use list_product_categories first, get_product to confirm catalogue prices).