# AHlert MCP server

> Free, anonymous, read-only MCP access to observed Albert Heijn "Laatste Kans" markdown offers and shops in the Netherlands (NL) and Belgium (BE). No account, API key or OAuth is required.

## Connect

- Endpoint: `https://mcp.ahlert.nl/mcp` (no trailing slash)
- Transport: Streamable HTTP with JSON responses; stateless. Streaming/SSE and stdio are not offered.
- Protocol versions: `2026-07-28` (current) and `2025-11-25`. Let your SDK negotiate.
- Server Card: `https://mcp.ahlert.nl/mcp/server-card` (`application/mcp-server-card+json`)

Generic client configuration (the containing key depends on the client):

```json
{
  "mcpServers": {
    "ahlert": {
      "url": "https://mcp.ahlert.nl/mcp"
    }
  }
}
```

Discovery results (`server/discover`, `tools/list`, `resources/list`, `resources/read`) carry a one-hour public cache hint; reuse them instead of re-listing.

## Tools

All tools are read-only and closed-world. Use `tools/list` for the exact input and output schemas; unknown arguments are rejected. `country` defaults to `NL`.

| Tool | Purpose |
|---|---|
| `search_deals` | Search observed offers by text `query` or exact `product_id`, with optional category, discount, stock/expiry, location and paging filters |
| `get_top_deals` | Rank grouped offers by `best`, `savings`, `percentage` or `stores` |
| `search_products` | Resolve a product name to IDs for `search_deals(product_id=...)` |
| `find_stores` | Find shops by city or by latitude/longitude/radius_km |
| `get_store` | A shop's public address, closure state and last successful observation |
| `list_categories` | Category names and observed catalogue counts for a country |
| `get_data_status` | Observation age and refresh coverage by country or shop |

Resources: `ahlert://guide` (usage and price caveats) and `ahlert://coverage` (country and refresh limitations).

## Interpreting results

- Stock is **last observed**, not live, reserved or guaranteed. Unknown expiry is not a validity guarantee.
- Report `observation.source_observed_at` / `data_age_seconds`, and check `get_data_status` before claiming freshness.
- Compare value with `comparable_price` and `comparable_savings`; never compare a per-kilo price with a per-item price.
- Radius searches need `latitude`, `longitude` and `0 < radius_km <= 100` together; distance is straight-line, not travel time. The server does not geocode.
- Use one location selector: store IDs, city, or coordinates/radius.
- Timestamps are UTC; expiry dates use Europe/Amsterdam.

## Limits

Quotas are per network source (IPv4 address or IPv6 /64), so users behind shared egress share them.

- 120 HTTP requests/minute (burst 20)
- 60 logical units/minute (burst 10) and 1,000 units/day, resetting at UTC midnight
- Weights: `search_deals` 3, `get_top_deals` 5, other tools and resources 1
- Two concurrent tool calls per source; 5-second tool deadline
- 64 KiB request and 128 KiB response limit; narrow the query if a response is too large

HTTP 429 and 503 responses include `Retry-After`. Respect it and do not retry in a loop.

## More

- [llms.txt](https://ahlert.nl/llms.txt): Site overview for agents
- [AI setup guide](https://ahlert.nl/mcp/): Step-by-step client setup (Dutch)
