PluginBench
MCP Server
Maintained

io.github.nicktcode/swissgroceries-mcp MCP Server

io.github.nicktcode/swissgroceries-mcp

Search products, compare prices, and plan shopping trips across Swiss grocery chains in real-time.

What is the io.github.nicktcode/swissgroceries-mcp MCP server?

The swissgroceries-mcp server is an MCP-compatible tool for real-time Swiss grocery shopping across Migros, Coop, Aldi, Denner, Lidl, Farmy, Volgshop, and Otto's. It enables product search, price comparison, promotion discovery, stock lookup, and multi-store shopping-trip planning without requiring API keys or authentication.

Search and compare grocery prices across eight major Swiss chains, discover weekly promotions, find product stock at nearby stores, and get AI-powered shopping plans that minimize cost or store visits. No accounts or API keys required—works with any MCP-compatible client like Claude Desktop, Cursor, or Cline.

How to install io.github.nicktcode/swissgroceries-mcp

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • DENNER_JWT
    secret

    Optional pre-supplied Denner Bearer JWT. Without it, the adapter self-registers anonymously on first use and rotates the token automatically.

  • LIDL_DEFAULT_STORE

    Default Lidl store ID used when no storeIds are passed. Defaults to CH0149.

  • SWISSGROCERIES_USER_AGENT_COOP

    Override the User-Agent string for Coop calls if DataDome ever blocks the default.

  • SWISSGROCERIES_LOG_LEVEL

    Logging verbosity: silent, info (default), or debug.

  • SWISSGROCERIES_DISABLE_CACHE

    Set to 1 to bypass the in-memory HTTP response cache.

~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "swissgroceries-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@nicktcode/swissgroceries-mcp"
      ],
      "env": {
        "DENNER_JWT": "<YOUR_DENNER_JWT>",
        "LIDL_DEFAULT_STORE": "<YOUR_LIDL_DEFAULT_STORE>",
        "SWISSGROCERIES_USER_AGENT_COOP": "<YOUR_SWISSGROCERIES_USER_AGENT_COOP>",
        "SWISSGROCERIES_LOG_LEVEL": "<YOUR_SWISSGROCERIES_LOG_LEVEL>",
        "SWISSGROCERIES_DISABLE_CACHE": "<YOUR_SWISSGROCERIES_DISABLE_CACHE>"
      }
    }
  }
}

Tools & capabilities

Tools this server exposes to the agent.

  • find_stores — Find grocery stores near a location, filtered by chain and radius.
  • search_products — Cross-chain product search with normalised price, unit price, size, and tags.
  • get_product — Full product details for a chain plus product ID pair.
  • get_promotions — Current promotional deals, filterable by chain, keyword, store, or expiry.
  • find_stock — Stores of a chain that have a given product in stock.
  • plan_shopping — Plan a multi-store trip for a shopping list near a location.
  • health_check — Probe each registered chain adapter and report status, latency, and capabilities.

Use cases

  • Compare milk prices across Migros, Coop, and Aldi near your location to find the cheapest option.
  • Plan a weekly shopping trip that minimizes cost by splitting purchases across multiple stores with configurable penalties per extra stop.
  • Discover current promotions and deals across all chains filtered by product category or expiry date.
  • Find which nearby stores have a specific product in stock before making a trip.
  • Get nutrition information normalized to per-100g basis across chains to compare protein, sugar, or other nutrients.

io.github.nicktcode/swissgroceries-mcp MCP server FAQ

What is the swissgroceries-mcp server?

It's an MCP server that connects Claude, Cursor, and other AI clients to real-time grocery data from eight Swiss chains (Migros, Coop, Aldi, Denner, Lidl, Farmy, Volgshop, Otto's). You can search products, compare prices, find promotions, check stock, and plan multi-store shopping trips.

Do I need API keys or accounts?

No. The server uses publicly accessible mobile-app endpoints. Denner self-registers an anonymous account on first use; all other chains require no authentication.

How do I install it in Claude Desktop?

Download `swissgroceries-mcp.mcpb` from the Releases page and double-click it (macOS) or use Settings → Extensions → Advanced → Install Extension (Windows).

How do I install it in Cursor or other MCP clients?

Add this JSON entry to your client's MCP config file: `{"mcpServers": {"swissgroceries": {"command": "npx", "args": ["-y", "@nicktcode/swissgroceries-mcp"]}}}`. Config paths vary by client; check your client's MCP documentation.

Is this free?

Yes. The server is open-source under AGPL-3.0 for non-commercial use. A commercial license is available for closed-source projects.

What chains does it support?

Migros, Coop, Aldi, Denner, Lidl, Farmy, Volgshop, and Otto's. Each chain supports product search and promotions; stock and pricing vary by chain.

README (reference)

Source of truth, from the repository.

<p align="center"> <img src="assets/icon.png" alt="swissgroceries-mcp" width="180"> </p> <h1 align="center">swissgroceries-mcp</h1> <p align="center"> <a href="https://www.npmjs.com/package/@nicktcode/swissgroceries-mcp"><img src="https://img.shields.io/npm/v/@nicktcode/swissgroceries-mcp.svg?label=npm" alt="npm version"></a> <a href="https://www.npmjs.com/package/@nicktcode/swissgroceries-mcp"><img src="https://img.shields.io/npm/dm/@nicktcode/swissgroceries-mcp.svg" alt="npm downloads"></a> <a href="https://github.com/nicktcode/swissgroceries-mcp/actions/workflows/ci.yml"><img src="https://github.com/nicktcode/swissgroceries-mcp/actions/workflows/ci.yml/badge.svg" alt="CI"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/license-AGPL--3.0-blue.svg" alt="License: AGPL-3.0"></a> <a href="https://nodejs.org/"><img src="https://img.shields.io/node/v/@nicktcode/swissgroceries-mcp" alt="Node"></a> <a href="https://modelcontextprotocol.io/"><img src="https://img.shields.io/badge/MCP-compatible-8A2BE2" alt="MCP compatible"></a> <a href="https://glama.ai/mcp/servers/nicktcode/swissgroceries-mcp"><img src="https://glama.ai/mcp/servers/nicktcode/swissgroceries-mcp/badges/score.svg" alt="nicktcode/swissgroceries-mcp MCP server"></a> <a href="CONTRIBUTING.md"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"></a> </p>

Real-time Swiss grocery shopping over the Model Context Protocol. Search products, compare prices across Migros, Coop, Aldi, Denner, Lidl, Farmy, Volgshop, and Otto's, see weekly promotions, and plan multi-store shopping trips. Works with any MCP-compatible client (Claude Desktop, Claude Code, Cursor, Cline, Continue, VS Code MCP extensions, custom clients).

Disclaimer

This is a personal fun project. It is not affiliated with, endorsed by, or sponsored by Migros, Coop, Aldi, Denner, Lidl, Farmy, Volg, Otto's, or any other retailer. It uses publicly accessible mobile-app endpoints to make Swiss grocery shopping a bit smarter for end users.

If you represent any of these stores and have concerns (about API usage, branding, scraping rate, or anything else), please reach out to the maintainer through GitHub and we will work it out. No need to escalate.

API stability: the chain APIs used here are unofficial and can change at any time. The maintainer is not responsible for failures caused by upstream changes; please open an issue with the response sample so the affected adapter can be updated.

PRs welcome. New chains, better matchers, smarter strategies, bug fixes, doc improvements; all encouraged. See CONTRIBUTING.md.

Install

No accounts, no tokens, no API keys required. The Denner adapter self-registers an anonymous client on first use; everything else uses public endpoints.

Claude Desktop (one-click)

Download swissgroceries-mcp.mcpb from the Releases page and:

  • macOS: double-click or drag onto the Claude Desktop app icon.
  • Windows: Settings → Extensions → Advanced → Install Extension → select the file.

Claude Code (one-liner)

claude mcp add swissgroceries -- npx -y @nicktcode/swissgroceries-mcp

Cursor / Cline / Continue / VS Code / Claude Desktop (manual config)

Most MCP-compatible clients accept the same JSON server entry. Add it to your client's MCP config file (paths vary, see your client's docs):

{
  "mcpServers": {
    "swissgroceries": {
      "command": "npx",
      "args": ["-y", "@nicktcode/swissgroceries-mcp"]
    }
  }
}

Common config paths:

  • Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS), %APPDATA%\Claude\claude_desktop_config.json (Windows).
  • Cursor: .cursor/mcp.json in the project, or ~/.cursor/mcp.json globally.
  • Cline / Continue / VS Code: see each client's MCP documentation.
  • Custom clients: any stdio-based MCP client can spawn npx -y @nicktcode/swissgroceries-mcp directly.

What you can ask

Price comparison

  • "Where is milk cheapest near 8001 Zürich right now?"
  • "Compare pasta prices across Migros and Coop."
  • "Show me organic milk options under CHF 3."

Shopping planning

  • "I need milk, bread, eggs, chicken, and pasta near 8050. Where should I shop to keep costs down?"
  • "Plan my weekly shop for 5 items near 4052 Basel, one stop only."
  • "Split my cart across stores for the absolute lowest total, but add a 2 CHF penalty per extra trip."

Promotions and deals

  • "What is on sale at Aldi this week?"
  • "Any Migros deals on cheese ending this week?"
  • "Show me all promotions across chains for pasta."

Stores and stock

  • "Find Coop stores within 3 km of Bern Hauptbahnhof."
  • "Which Migros near me has product 4389992 in stock?"
  • "List Denner branches near 8050."

Tools

ToolWhat it does
find_storesFind grocery stores near a location, filtered by chain and radius.
search_productsCross-chain product search with normalised price, unit price, size, and tags.
get_productFull product details for a chain plus product ID pair.
get_promotionsCurrent promotional deals, filterable by chain, keyword, store, or expiry.
find_stockStores of a chain that have a given product in stock.
plan_shoppingPlan a multi-store trip for a shopping list near a location.
health_checkProbe each registered chain adapter and report status, latency, and capabilities.

Each tool exposes rich JSON Schema with field-level descriptions, so the LLM knows when and how to call it.

Prompts

PromptWhat it does
weekly_deals_digestSummarise this week's best grocery deals across the configured chains. Optional category, chains, and location filters.
compare_basket_across_chainsCompare a shopping basket across all chains and recommend single-store vs split-cart strategies.
cheapest_recipe_ingredientsFrom an ingredient list (or recipe URL) find the cheapest place to buy each item and produce a consolidated shopping plan.

Prompts are surfaced as one-click templates in MCP-aware clients (Claude Desktop, Cursor, Cline). They produce structured user messages that drive the right tool calls — useful as a starting point and as discovery of what the server can do.

Resources

URIContent
swissgroceries://chainsJSON list of registered chain adapters and their capabilities (productSearch, productDetail, storeSearch, promotions, perStoreStock, perStorePricing).

Chain coverage

ChainProduct searchPromotionsPer-store stockNutritionAuth
MigrosFull catalogYesYesYes (product detail)Guest token (auto, rotated on expiry)
CoopFull catalog (coopathome)YesYes (geo)Yes (product detail)None
AldiFull catalogYesNoNo (API exposes only allergen claims)None
DennerFull catalogYesNoNoAnonymous self-auth (signup + signin, rotated)
LidlWeekly leaflet onlyYesNoNo (energeticInformation field exists but is empty in practice)None
FarmyFull catalog (organic delivery)Yes (strikeout-price filter)No (delivery-only)NoNone
VolgshopFull catalogYes (on_sale filter)No (delivery-only)Yes (parsed from free-text attribute, basis assumed 100g)None
Otto'sGrocery-adjacent (food, drugstore, baby)Yes (priceLabels facet)Yes (per-store stockLevel)NoNone

NormalizedProduct.nutrition is normalized to a per-100g (or per-100ml) basis with the standard Swiss labelling fields — energyKj, energyKcal, fat, saturatedFat, carbs, sugar, fiber, protein, salt — so consumers can sort across chains ("highest protein per 100g lasagne") even though each upstream API exposes the data on a different surface and in a different shape. Missing or unparseable fields are left undefined; adapters never fabricate values.


Configuration

Env varDefaultEffect
DENNER_JWT(unset)Optional pre-supplied Denner Bearer JWT. Without it, the adapter self-registers anonymously on first use and rotates the token automatically.
LIDL_DEFAULT_STORECH0149Default Lidl store ID used when no storeIds are passed.
SWISSGROCERIES_USER_AGENT_COOP(default iOS Safari UA)Override the User-Agent for Coop calls if DataDome ever blocks the default.
SWISSGROCERIES_LOG_LEVELinfosilent, info, or debug.
SWISSGROCERIES_DISABLE_CACHE(unset)Set to 1 to bypass the in-memory HTTP cache (useful for debugging).

How it works

Each grocery chain is wrapped in an independent adapter (src/adapters/<chain>/) that handles authentication, HTTP calls, and raw-to-normalised mapping. Adapters all produce the same NormalizedProduct, NormalizedStore, and NormalizedPromotion shapes (defined in src/adapters/types.ts), so the rest of the system never has to know which chain it is talking to.

The HTTP utility (src/util/http.ts) underpins every adapter except Migros (which delegates to the migros-api-wrapper library): in-memory response caching with a 5-minute TTL, retry with exponential backoff (3 attempts, 250 ms base), per-host rate limiting (~10 requests per second), and a per-host circuit breaker that opens after 5 consecutive failures and resets after 60 seconds.

The shopping planner (src/services/planner.ts) fans out store and product searches in parallel across all active adapters, then feeds results into a strategy solver (src/services/strategy.ts) that supports three modes:

  • single_store: minimise the number of stops.
  • split_cart: cheapest split across chains, with a configurable per-stop penalty.
  • absolute_cheapest: cheapest split, ignoring stop count.

Cross-chain comparisons are kept fair by a category-text canonicality filter (src/services/matcher.ts, isCanonical). When at least one chain returns a product whose category text matches the query, results from chains that only returned tangential products (for example, Apfelschorle when searching for "apfel") are dropped from the comparison matrix for that item.

MCP client (any LLM)
    │
    │ MCP tool call
    ▼
src/index.ts ── buildRegistry() ────────────────────────────────────────┐
    │                                                                     │
    │ routes to tool handler                                              │
    ▼                                                                     ▼
src/tools/                                                  src/adapters/
  find_stores.ts    ──► geocoding ──► adapter.searchStores     migros/
  search_products.ts ──────────────► adapter.searchProducts    coop/
  get_product.ts    ──────────────► adapter.getProduct         aldi/
  get_promotions.ts ──────────────► adapter.getPromotions      denner/  (auto-auth)
  find_stock.ts     ──────────────► adapter.findStoresWithStock lidl/
  plan_shopping.ts  ──► geocoding ──► planner ──► strategy solver
                                                     │
                                            NormalizedProduct
                                            NormalizedStore
                                            NormalizedPromotion

Build from source

node --version   # requires Node.js >=20
git clone https://github.com/nicktcode/swissgroceries-mcp
cd swissgroceries-mcp
npm install
npm run build

To also build the .mcpb bundle locally:

npx tsx scripts/build-mcpb.ts

Troubleshooting

Coop "DataDome challenge" error

You hit Coop's bot protection. Set SWISSGROCERIES_USER_AGENT_COOP to a freshly captured iOS Safari User-Agent string and try again.

Denner "auth_expired" error

Rare, since the adapter rotates its token automatically. If it persists, unset any custom DENNER_JWT and let the adapter re-bootstrap from scratch.

Lidl returns 0 results

Lidl only indexes products from the current weekly campaign leaflet. If your search term is not in this week's campaigns, you will get 0 results. This is expected.

ZIP unknown error

The static lookup table covers all 3,190 official Swiss postcodes. If yours is missing, pass { lat, lng } directly or open an issue with the missing PLZ.

Migros stores nowhere near my location

The Migros store-search API caps at ~10 results per query. The adapter passes a city hint derived from your ZIP. If you call the adapter directly without ZIP-based geocoding, pass cityHint explicitly.

Development

npm test              # full test suite, no network calls
RUN_LIVE=1 npm test   # also runs live smoke tests against real chain APIs
npm run dev           # tsx watcher for local iteration
SWISSGROCERIES_DISABLE_CACHE=1 RUN_LIVE=1 npm test  # cache off, useful for debugging
SWISSGROCERIES_LOG_LEVEL=debug npm run dev          # verbose logging

The test suite uses Vitest. Fixture JSON files live under tests/fixtures/<chain>/. Capture scripts in scripts/ show how to refresh them.

Adding a new chain

See CONTRIBUTING.md for the full guide. Quick version:

  1. Capture API responses with Charles Proxy or mitmproxy on the chain's iOS or Android app.
  2. Create src/adapters/<chain>/{client,tags,normalize,index}.ts following the existing patterns. Use src/adapters/aldi/ as the simplest reference.
  3. Map raw responses to NormalizedProduct, NormalizedStore, and NormalizedPromotion.
  4. Declare capability flags accurately.
  5. Register the adapter in src/index.ts's buildRegistry().
  6. Add fixture-based tests under tests/adapters/.

License

Dual-licensed:

  • Open-source use: AGPL-3.0-only. If you run a modified version of this software as a network service, you must publish your modifications.
  • Commercial use: if AGPL-3.0 is incompatible with your project (e.g. a closed-source SaaS or proprietary app), a commercial license is available — see LICENSING.md or contact nick@thommen.it.

Versions ≤ 0.7.4 were released under MIT and remain MIT-licensed in their existing published form. Starting with 0.7.5 the license is AGPL-3.0-only.

Related MCP servers

MCP server for Probo print-on-demand — search products, configure orders, track shipments.

View repository →

Multi-instance ServiceNow MCP server with 480+ auto-generated tools, intelligent schema discovery, and natural language search.

50
JavaScript
Apache-2.0
View repository →

Access Open Targets Platform biomedical data—targets, diseases, drugs, variants, and evidence—via 68 curated GraphQL tools.

20
Python
MIT
View repository →
AGAgentic Ads logo

Agentic Ads

Maintained

Ad network for AI agents — monetize MCP servers with contextual ads. 70% revenue share.

2
TypeScript
MIT
View repository →
AGAgentWatch logo

AgentWatch

Maintained

Multi-agent observability: cascade failure detection, heartbeats, and forensic replay

0
TypeScript
MIT
View repository →

DEX meta-aggregator for AI agents. Best prices from 15+ aggregators across 13 chains.

View repository →