CLI, MCP and Skills for the world's supermarkets. Search, compare, basket and checkout across 9 providers in 6 countries — UK, Netherlands, Belgium, Spain, US, Canada. Built for AI agents.
# Add to your Claude Code skills
git clone https://github.com/abracadabra50/open-supermarketsGuides for using ai agents skills like open-supermarkets.
open-supermarkets is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by abracadabra50. CLI, MCP and Skills for the world's supermarkets. Search, compare, basket and checkout across 9 providers in 6 countries — UK, Netherlands, Belgium, Spain, US, Canada. Built for AI agents. It has 144 GitHub stars.
open-supermarkets's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/abracadabra50/open-supermarkets" and add it to your Claude Code skills directory (see the Installation section above). open-supermarkets ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
open-supermarkets is primarily written in TypeScript. It is open-source under abracadabra50 on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh open-supermarkets against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
One common grocery interface across supermarket providers in the UK, Europe and North America.
Use it when an agent needs live grocery search, retailer comparison, basket operations, delivery slots, order history or a checkout preview.
Current main includes 13 provider integrations across 9 countries:
| Provider | Market | Main capabilities |
|---|---|---|
| Sainsbury's | UK | search, basket, slots, checkout, orders |
| Tesco | UK | search, basket, slots, checkout, orders |
| Ocado | UK | search, basket, read slots, orders |
| Lidl Ireland | Ireland | search |
| Albert Heijn | Netherlands | search |
| Albert Heijn België | Belgium | search |
| Mercadona | Spain | search |
| AhorraMás | Spain | search |
| Tesco Magyarország | Hungary | search, basket |
| Migros | Switzerland | search, guest basket |
| Kroger | US | search |
| Instacart | US, Canada | search, basket |
| Instacart Web | US, Canada | search, basket |
Run supermarket providers for the live registry-backed capability matrix.
npx open-supermarkets providers
npx open-supermarkets search "olive oil" --country ES --limit 5
Or install globally:
npm install -g open-supermarkets
supermarket providers
# Search by country
supermarket search "milk" --country NL --json
supermarket search "leche" --country ES --json
# Search a specific provider
supermarket --provider tesco search "milk" --json
supermarket --provider tesco-hu search "tej" --json
# Basket and checkout where supported
supermarket --provider tesco basket --json
supermarket --provider tesco add PRODUCT_ID --qty 1
supermarket --provider tesco checkout
Checkout previews by default. Spending requires explicit confirmation.
Use the MCP server when the host supports Model Context Protocol:
{
"mcpServers": {
"groceries": {
"command": "npx",
"args": ["-y", "open-supermarkets", "mcp"]
}
}
}
Prefer batch tools for multi-item workflows:
grocery_search_batchgrocery_basket_add_batchUse grocery_providers to inspect the providers exposed by the MCP server.
Providers are capability-based.
Do not assume that because search works, basket or checkout also works. Check the provider capability matrix first.
Search-only integrations are intentionally first-class because catalogue and pricing access is useful even when authenticated shopping is not available.
The provider returns candidates. The agent should decide what to buy using user context such as:
Do not blindly select the first or cheapest absolute-price result.
Treat availability as a truth claim.
in_stock (inStock in batch output) is true, false or null. null means the retailer did not say. Do not read it as in-stock or out-of-stock. Tell the user it is unknown, or check before checkout.
A null price (shown as "price unknown") is not zero. Never treat it as the cheapest option, and do not quote a basket total that includes it.
in_stock / batch inStock |
Meaning |
|---|---|
true |
In stock |
false |
Explicitly out of stock |
null |
Retailer did not provide a reliable stock signal |
Use strict equality (=== true, === false, === null) when branching on stock. !product.in_stock conflates unavailable and unknown; product.in_stock === false identifies only explicit out-of-stock signals. When stock is null, report it as unknown and ask the user to check with the retailer.
Authentication varies by provider:
Follow the provider manifest and provider-specific notes rather than assuming every retailer supports scripted login.
A legitimate empty search may return an empty product list.
Authentication failures, rate limits, malformed retailer responses and bot/WAF challenges should remain errors. Do not treat them as "no products found".
Dedicated notes currently exist for:
Providers without a dedicated skill file still work through the common provider interface where their declared capabilities are supported.
--enrich adds Open Food Facts data such as Nutri-Score, NOVA group, ingredients and allergens.
Treat enrichment as auxiliary metadata. Exact identity matching is preferred; fuzzy matches should never be presented as definitive allergy information.
Search live catalogues and prices, compare retailers, build baskets and automate grocery shoppingacross 13 provider integrations in 9 countries, through CLI, HTTP and MCP.
CLI · HTTP API · MCP · Agent Skills
🇬🇧 🇮🇪 🇳🇱 🇧🇪 🇪🇸 🇭🇺 🇨🇭 🇺🇸 🇨🇦 · your country next?
The demo to build: “Plan five high-protein family dinners under £60. No pork, no nuts. Compare Tesco, Sainsbury's and Ocado, choose sensible pack sizes, build the basket and show me before checkout.”
A short end-to-end demo belongs here. If you build one with Open Supermarkets, open a PR and we'll feature it.
$ supermarket compare milk
Ocado Ocado British Semi Skimmed Milk 2 Pints £1.20 ← best
Sainsbury's Sainsbury's British Semi Skimmed 2.27L £1.75
Tesco Tesco British Semi Skimmed Milk 2.272L £1.75
$ supermarket search leche --country ES
Leche semidesnatada Hacendado €5.04 / 6l
$ supermarket search melk --country NL
Campina Halfvolle melk €1.89 / 1,5 l
Open Supermarkets now spans the UK, Ireland, the Netherlands, Belgium, Spain, Hungary, the US and Canada. Several catalogue providers need no account or retailer credentials at all, while authenticated providers progressively expose baskets, slots, orders and checkout.
npx open-supermarkets providers
npx open-supermarkets search "olive oil" --country ES --limit 5
Or install it globally:
npm install -g open-supermarkets
supermarket providers
The canonical command is supermarket; open-supermarkets is an npm-friendly alias.
The old groc alias remains temporarily for backwards compatibility and will disappear
in v4.
From source:
git clone https://github.com/abracadabra50/open-supermarkets.git
cd open-supermarkets && npm install && npm link
npx playwright install chromium # only for browser-auth providers
Open Supermarkets is a common, open-source interface over supermarket storefronts and APIs. It normalises the retailer-specific plumbing so applications and agents can work against one provider model instead of rebuilding Tesco, Sainsbury's, Ocado, Albert Heijn, Mercadona, AhorraMás, Kroger, Instacart and regional integrations independently.
A shopping agent should still decide what makes sense for the person. Open Supermarkets handles the retail plumbing underneath it:
Supermarkets rarely expose public shopper APIs. Without a shared layer, every meal planner, price tracker and shopping agent reimplements the same brittle integration for one retailer and eventually abandons it. This is that layer, done once, in the open.
For Claude Desktop, Cursor or anything speaking Model Context Protocol:
{
"mcpServers": {
"groceries": {
"command": "npx",
"args": ["-y", "open-supermarkets", "mcp"]
}
}
}
If you install the package globally, use supermarket-mcp directly.
A useful first prompt:
Plan a week of high-protein dinners, no pork and no nuts. Price the shop at Tesco, show me the basket and do not place an order.
The server exposes 22 tools, including batch primitives designed to stop agents burning one tool call per ingredient:
| MCP tool | Purpose |
|---|---|
grocery_search · grocery_compare |
Find and compare products |
grocery_search_batch · grocery_basket_add_batch |
Many at once — prefer these |
grocery_basket_* |
View, add, remove, update, clear |
grocery_slots · grocery_book_slot |
Delivery slots |
grocery_checkout |
Preview/place an order; dry_run defaults to true |
grocery_favourites · ocado_regulars · tesco_staples |
Repeat-purchase lists |
grocery_orders |
Order history |
SKILL.md is the top-level skill. skills/ contains provider
skills for the quirks that actually matter: Tesco cookie import, Ocado category paths,
Sainsbury's favourites and more. Drop them into Claude Code, OpenClaw or another harness
that reads SKILL.md.
supermarket-api exposes the same core capabilities over plain HTTP for agents that
have network access but cannot execute local commands.
Everything ultimately rests on a scriptable CLI contract:
supermarket search "olive oil" --country ES --limit 5 --json
Providers declare what they can actually do. Search needs no account almost everywhere; checkout needs an account, address and payment method, so it exists for fewer.
| Provider | Country | Search | Basket | Slots | Checkout | Auth |
|---|---|---|---|---|---|---|
| Tesco | 🇬🇧 | ✓ | ✓ | ✓ | ✓ | browser session |
| Sainsbury's | 🇬🇧 | ✓ | ✓ | ✓ | ✓ | email + password |
| Ocado | 🇬🇧 | ✓ | ✓ | read-only | — | email + password |
| Lidl Ireland | 🇮🇪 | ✓ | — | — | — | none |
| Albert Heijn | 🇳🇱 | ✓ | — | — | — | none |
| Albert Heijn België | 🇧🇪 | ✓ | — | — | — | none |
| Mercadona | 🇪🇸 | ✓ | — | — | — | none |
| AhorraMás | 🇪🇸 | ✓ | — | — | — | none |
| Kroger + Ralphs, Fred Meyer, King Soopers, Harris Teeter, QFC | 🇺🇸 | ✓ | — | — | — | free API key |
| Instacart | 🇺🇸 🇨🇦 | ✓ | ✓ | — | via link | partner key |
| Instacart (unofficial) | 🇺🇸 🇨🇦 | ✓ | ✓ | — | — | browser session |
| Tesco Magyarország | 🇭🇺 | ✓ | ✓ | — | — | browser session (basket only) |
| Migros | 🇨🇭 | ✓ | ✓ | — | — | none (guest basket) |
supermarket providers prints this live from the registry. The manifest is the source
of truth rather than a hand-maintained marketing claim.
Lidl Ireland is search-only. Lidl Plus loyalty prices and conditional multibuy prices are
not substituted for the regular shelf price. Product availability uses three states:
in_stock: true means available, false means explicitly unavailable, and null means
the retailer provided no reliable stock signal. Batch search exposes the same states as inStock.
Ocado slot booking and checkout are blocked by AWS WAF. Reading slots works; committing to one does not. The manifest therefore does not claim those capabilities.
A week of meals can mean thirty ingredients. One at a time, that becomes thirty searches plus thirty basket writes: sixty process starts, sixty MCP round trips and sixty tool results filling the model's context.
$ echo '["semi skimmed milk","free range eggs","chicken breast","broccoli"]' \
| supermarket search --batch - --provider ocado --limit 2
{
"provider": "ocado",
"results": [
{
"query": "semi skimmed milk",
"products": [
{
"id": "73f814b7",
"name": "Ocado British Semi Skimmed Milk 2 Pints",
"price": 1.20,
"currency": "GBP",
"size": "1.136L",
"unit": "1.06/1.136L",
"inStock": true
}
]
}
]
}
Then let the model choose using the context it already has and add its picks together:
supermarket add --batch picks.json
Batch search returns candidates. It deliberately does not decide what to buy. The model knows the meal plan, budget, dietary constraints and whether leftovers are useful; the supermarket integration does not.
Provider code is also lazy-loaded. Shopping in the UK does not load Spanish provider code or pay Playwright startup cost for a retailer you never use.
--enrich adds Nutri-Score, NOVA processing group, allergens and ingredients using
Open Food Facts across every provider and country.
$ supermarket search nutella --provider kroger --enrich
Nutella® Hazelnut Spread with Cocoa $6.49 / 13 oz
Nutri-Score E · NOVA 4 · allergens: milk, nuts, soybeans · matched by barcode
Matching is intentionally conservative. Where a provider exposes a barcode, the lookup can be exact. Where it does not, name matching must clear strict guards. A miss shows nothing; a false positive can show the wrong allergen, which is much worse.
Never rely on it as medical or allergy advice. Check the product packaging.
This project compounds in value as coverage grows. A contributor can add the supermarket they can actually test without implementing the entire shopping lifecycle: search-only providers are first-class, while basket, slots, checkout and orders are separate capabilities.
**AhorraMás — Spai