Skip to main content
Glama

lidl-mcp

Model Context Protocol (MCP) server for Lidl (Lidl Plus) with built-in multi-country support (nl & de in a single server). Connects AI assistants (like Claude Desktop, Cursor, and Continue) directly to Lidl’s supermarket services.

Features include store search & opening hours, weekly digital leaflets & PDF brochures, Lidl Plus coupons & Coupon Plus, digital receipts (kassabonnen / Kassenbons), loyalty summary & stampcards, and online shop product lookup.


⚡ Quick Start

1. Install Dependencies

npm install

2. Log In (Optional for Public Offers & Stores)

Public endpoints (stores, weekly leaflets, brochures, anonymous promotions) work without logging in. To access your personal coupons, receipts, loyalty card, and favorite store:

npm run login
  • Launches Chrome via Playwright stealth to accounts.lidl.com (PKCE OAuth2) and captures the com.lidlplus.app://callback redirect automatically.

  • Headless/manual fallback: npm run login -- --manual (or --country=de).

3. Check Status

npm run status

4. Build & Test

npm run build
npm test

5. Run as Persistent Streamable HTTP Server (Optional)

For shared cross-session response caching and zero per-call startup overhead:

npm run start:http -- --host 127.0.0.1 --port 3000
# or:
MCP_TRANSPORT=http MCP_HTTP_HOST=0.0.0.0 MCP_HTTP_PORT=8090 node dist/index.js

Endpoints:

  • POST/GET/DELETE /mcp (configurable via --path / MCP_HTTP_PATH, optional bearer auth via MCP_HTTP_AUTH_TOKEN)

  • GET /healthz (process health, active session count, and shared cache stats)


Related MCP server: Rohlik MCP Server

🌍 Multi-Country Support (nl & de)

A single lidl-mcp server supports both Netherlands (nl) and Germany (de) simultaneously:

  • Default country comes from LIDL_COUNTRY (defaults to nl).

  • Pass country: "nl" or country: "de" on any country-aware tool to query across borders in the same session (e.g. comparing NL vs. DE weekly offers or checking receipts in both countries).

  • Response cache keys are scoped by host, country, language, and auth principal so nl and de responses never collide.


🛠️ MCP Tools (26 Tools)

1. Authentication, Profile & Loyalty

Tool

Type

Description

lidl_login

Auth / Session

Check authentication status, refresh expired access token if available, and fetch member identity.

lidl_get_profile

Read

Get Lidl Accounts OIDC profile & loyalty card details (nl / de).

lidl_get_loyalty_program

Read

Get loyalty program status, active stampcards, and bottle deposits.

lidl_cache_stats

Read

Report process-scoped in-memory cache statistics (hits, misses, entries, hitRate).

2. Stores & Opening Hours

Tool

Type

Description

lidl_search_stores

Read

Search NL or DE stores by city, postal code, address, storeId, or coordinates.

lidl_get_store_details

Read

Get store zone, offer region, amenities, and opening hours for a date.

lidl_get_favorite_store

Read

Get the user's favorite Lidl store (nl / de).

lidl_set_favorite_store

Write

Set the user's favorite Lidl store (storeId, nl / de).

3. Offers, Digital Leaflets, Brochures & Shop Products

Tool

Type

Description

lidl_get_brochures

Read

List active flyers/brochures with web view URLs and PDF downloads.

lidl_get_campaign_groups

Read

List active weekly digital leaflet campaign groups and campaigns.

lidl_get_campaign_offers

Read

Fetch all products and prices inside a digital leaflet campaign.

lidl_search_offers

Read

Search across active weekly digital leaflet campaigns by keyword.

lidl_get_leaflet_product

Read

Get full details, pricing, and disclaimers for a leaflet product ID.

lidl_search_shop_products

Read

Search lidl.nl / lidl.de online shop assortment by keyword (returns ERP numbers).

lidl_get_shop_product

Read

Fetch online shop product details by ERP number (lidl.nl / lidl.de).

4. Coupons & Promotions

Tool

Type

Description

lidl_get_coupons

Read

List Lidl Plus coupons (falls back to anonymous promotions when logged out).

lidl_get_coupon_details

Read

Get detailed terms and validity for a coupon/promotion UUID.

lidl_activate_coupon

Write

Activate a Lidl Plus coupon for checkout.

lidl_deactivate_coupon

Write

Deactivate an activated Lidl Plus coupon.

lidl_get_coupon_plus

Read

Get Coupon Plus spend goals and progress.

5. Digital Receipts (Kassabonnen / Kassenbons)

Tool

Type

Description

lidl_list_receipts

Read

List digital receipts (nl / de, optional yearOffset).

lidl_get_receipt_details

Read

Get itemized receipt lines, prices, discounts, and store info (cached 30d).

lidl_get_receipt_summary

Read

Get receipt summary breakdown (cached 30d).

lidl_set_receipt_favorite

Write

Favorite or unfavorite a digital receipt.

6. Grocery Trip Planning & Purchase History (Per Country)

Tool

Type

Description

lidl_get_regular_products

Read

Analyze past receipts for one country (nl or de) to find regular purchases, cadence, and restock candidates.

lidl_plan_grocery_trip

Read

Match regular purchases and optional extra items in one country against weekly leaflet offers and coupons.


⚙️ Environment Variables

Variable

Description

LIDL_COUNTRY

Default 2-letter country code (nl or de, default: nl).

LIDL_LANGUAGE

Optional language override (nl, de, etc.).

LIDL_TOKENS_FILE

Override path to tokens.json (defaults to ~/.config/lidl-mcp/tokens.json or /data/tokens.json).

LIDL_REFRESH_TOKEN

Bootstrap refresh token when no token file exists yet.

LIDL_TOKEN_STORE_URL

Optional HTTP endpoint for external token persistence.

LIDL_TOKEN_STORE_AUTH

Optional Authorization header for LIDL_TOKEN_STORE_URL.

LIDL_MCP_CACHE

Set to off to disable the in-process TTL response cache.

LIDL_MCP_CACHE_MAX_ENTRIES

Maximum cached entries (default: 2000).

LIDL_HEADLESS

Set to true to run Playwright login browser headless.

MCP_TRANSPORT

Set to http to run the Streamable HTTP server instead of stdio.

MCP_HTTP_HOST

Bind address in HTTP mode (default: 127.0.0.1).

MCP_HTTP_PORT

Listen port in HTTP mode (falls back to PORT, default: 3000).

MCP_HTTP_PATH

MCP HTTP endpoint path (default: /mcp).

MCP_HTTP_AUTH_TOKEN

Optional Bearer token required on the MCP HTTP endpoint.

MCP_HTTP_SESSION_IDLE_MS

Idle session expiry in ms (default: 1800000 / 30 min).


📄 License

MIT — see LICENSE.

Available Tools

26 tools
lidl_activate_couponActivate a Lidl Plus CouponA
Idempotent

Activate a Lidl Plus coupon for the selected country ('nl' or 'de') so it applies at checkout.

Inputs: promotionId (required), country, actionLocation. Returns: country, response, activated, deactivated, +1 more

lidl_cache_statsGet Response Cache StatisticsA
Read-only

Report the process-scoped in-memory response cache: enabled state, scope, hits, misses, hit rate, stored entries, and evictions.

Inputs: no named parameters. Returns: hits, note, sets, scope, +6 more

lidl_deactivate_couponDeactivate a Lidl Plus CouponB
Idempotent

Deactivate a previously activated Lidl Plus coupon for the selected country ('nl' or 'de').

Inputs: promotionId (required), country, actionLocation. Returns: country, response, activated, deactivated, +1 more

lidl_get_brochuresGet Lidl Weekly Flyers & BrochuresA
Read-only

List active Lidl digital folders/brochures (with validity dates, web view URLs, and PDF download links) for NL or DE. Works without authentication.

Inputs: country, storeId. Returns: count, brochures

lidl_get_campaign_groupsGet Weekly Digital Leaflet Campaign GroupsA
Read-only

List active weekly digital leaflet campaign groups and campaigns (e.g. 'Aanbiedingen', 'Unsere Aktionsprospekte') for NL or DE. Works without authentication.

Inputs: country, storeId. Returns: count, groups

lidl_get_campaign_offersGet Products in a Digital Leaflet CampaignA
Read-only

Fetch all discounted/featured products and prices inside a digital leaflet campaign ID for NL or DE. Works without authentication.

Inputs: campaignId (required), country, storeId. Returns: id, title, products, subtitle

lidl_get_coupon_detailsGet Lidl Plus Coupon DetailsA
Read-only

Get detailed terms, validity, and articles for a specific Lidl Plus coupon/promotion UUID.

Inputs: promotionId (required), country. Returns: id, title, endDate, startDate, +3 more

lidl_get_coupon_plusGet Coupon Plus Spend GoalsA
Read-only

Get active Lidl Coupon Plus spend milestones and reward progress for the selected country ('nl' or 'de').

Inputs: country. Returns: active, country, message

lidl_get_couponsGet Lidl Plus Coupons & PromotionsA
Read-only

List active Lidl Plus coupons/promotions for NL or DE. Uses the authenticated member list when logged in, and falls back to public anonymous promotions otherwise.

Inputs: zone, country, storeId. Returns: country, coupons, isAnonymousFallback

lidl_get_favorite_storeGet Favorite Lidl StoreA
Read-only

Get the authenticated user's favorite Lidl store for the selected country ('nl' or 'de').

Inputs: country. Returns: storeId, storeKey

lidl_get_leaflet_productGet Digital Leaflet Product DetailsA
Read-only

Get detailed description, pricing, disclaimers, badges, and stock/ERP IDs for a digital leaflet product ID. Works without authentication.

Inputs: productId (required), country, storeId. Returns: id, brand, price, title, +12 more

lidl_get_loyalty_programGet Lidl Plus Loyalty Program (Card, Stampcards & Deposits)A
Read-only

Fetch Lidl Plus loyalty program status/points summary, active stampcards, and bottle deposit balances for the selected country ('nl' or 'de').

Inputs: country, storeId. Returns: country, storeId, deposits, stampcards, +1 more

lidl_get_profileGet Lidl Plus Member ProfileA
Read-only

Get Lidl Accounts user info (name, email) and Lidl Plus loyalty card details for the selected country ('nl' or 'de').

Inputs: country. Returns: sub, name, email, qrCode, +8 more

lidl_get_receipt_detailsGet Lidl Receipt DetailsA
Read-only

Get full itemized digital receipt details (line items, prices, discounts, store) by ticket ID. Cached for 30 days.

Inputs: ticketId (required), country. Returns: id, date, lines, total, +6 more

lidl_get_receipt_summaryGet Lidl Receipt SummaryA
Read-only

Get receipt summary/savings breakdown by ticket ID. Cached for 30 days.

Inputs: ticketId (required), country. Returns: date, isHtml, origin, vendor, +8 more

lidl_get_regular_productsAnalyze Regular Lidl PurchasesA
Read-only

Analyze past digital receipts for a single country ('nl' or 'de') to identify regularly purchased items, average prices, purchase cadence, and restock candidates. Reuses the 30-day in-memory receipt cache.

Inputs: limit, country, daysBack, yearOffset, +3 more. Returns: note, country, dateRange, minPurchases, +4 more

lidl_get_shop_productGet Lidl Online Shop Product DetailsA
Read-only

Fetch full Lidl online shop product details (title, pricing, specs, categories, canonical URL) by ERP product number for NL or DE. Works without authentication.

Inputs: productErp (required), country. Returns: title, erpNumber, productId, productErp

lidl_get_store_detailsGet Lidl Store Details & Opening HoursA
Read-only

Get detailed Lidl store info (zone, offer region, amenities, coordinates) and opening hours for a given date. Works without authentication.

Inputs: storeId (required), date, country. Returns: name, zone, state, address, +12 more

lidl_list_receiptsList Lidl Digital ReceiptsA
Read-only

List past digital receipts (kassabonnen / Kassenbons) for the authenticated user in NL or DE.

Inputs: country, yearOffset. Returns: count, receipts

lidl_loginCheck or Refresh Lidl Login SessionA
Idempotent

Check authentication status, refresh an expired access token if a refresh token is persisted, and fetch live member identity when authenticated.

Inputs: country. Returns: status, profile, savedAt, configured, +7 more

lidl_plan_grocery_tripPlan Lidl Grocery Trip (Per Country)A
Read-only

Plan a grocery trip for one country ('nl' or 'de') by matching regularly bought receipt items and optional extra items against active weekly leaflet offers and Lidl Plus coupons, surfacing unactivated coupons and due-for-restock staples.

Inputs: country, storeId, daysBack, extraItems, +5 more. Returns: note, country, storeId, minPurchases, +10 more

lidl_search_offersSearch Weekly Lidl Leaflet OffersB
Read-only

Search across active weekly digital leaflet campaigns for matching products and deals in NL or DE. Works without authentication.

Inputs: limit, query, country, storeId. Returns: total, offers, country, storeId, +1 more

lidl_search_shop_productsSearch Lidl Online Shop ProductsA
Read-only

Search the Lidl online shop assortment (lidl.nl / lidl.de) by keyword and return matching products with prices, online availability, canonical URLs, and ERP numbers for lidl_get_shop_product. Works without authentication and is cached.

Inputs: query (required), limit, offset, country. Returns: limit, query, total, offset, +2 more

lidl_search_storesSearch Lidl StoresA
Read-only

Search Lidl stores in NL or DE by city, postal code, street, storeId/storeKey (e.g. 'NL0135', 'DE0347'), or coordinates. Works without authentication and is cached.

Inputs: limit, query, country, latitude, +1 more. Returns: count, stores

lidl_set_favorite_storeSet Favorite Lidl StoreA
Idempotent

Set the authenticated user's favorite Lidl store for the selected country ('nl' or 'de').

Inputs: storeId (required), country. Returns: country, storeId, updated, storeKey

lidl_set_receipt_favoriteFavorite or Unfavorite a Lidl ReceiptA
Idempotent

Mark or unmark a digital receipt as favorite in NL or DE.

Inputs: favorite (required), ticketId (required), country. Returns: country, updated, favorite, ticketId

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 26 tools

    Disambiguation4/5

    Most tools target distinct resources, but the leaflet/offer family (get_brochures, get_campaign_groups, get_campaign_offers, search_offers, get_leaflet_product) and the receipt family (list_receipts, get_receipt_details, get_receipt_summary) require careful reading to pick correctly. plan_grocery_trip also overlaps conceptually with search_offers and get_coupons, though its composite purpose is stated clearly. Descriptions generally resolve the ambiguity.

    Naming Consistency4/5

    Almost all tools follow a predictable lidl_verb_noun pattern (get_x, search_x, activate_coupon, list_receipts). Minor deviations like lidl_login (verb only) and lidl_cache_stats (noun phrase) break the pattern slightly but remain readable and unambiguous.

    Tool Count3/5

    At 26 tools this is above the comfortable range and heavy for an agent to navigate, though the domain genuinely spans stores, offers, coupons, receipts, loyalty, and shop products. A few read-only variants (e.g. receipt details vs. summary, brochure vs. campaign groups) could plausibly be consolidated into parameterized tools.

    Completeness4/5

    The surface covers the full shopping lifecycle: auth/profile, store selection, offers/leaflets, shop products, coupon activation, receipts, and habit analysis. Minor gaps exist, such as no logout/token-clearing tool and no cache invalidation alongside lidl_cache_stats, but these are workaroundable and not core workflows.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to securely access a personal Dutch supermarket account, including digital receipts with itemized prices, discounts and VAT, loyalty points balance, and active shopping lists, plus search for nearby stores and products in the grocery catalog.
      20
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to search grocery products, manage shopping carts, access account and order information, and find deals and delivery details across several European online grocery platforms.
      -
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to search grocery products, manage shopping carts, and access account, order, delivery, and discount information across multiple European online grocery platforms.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to connect to Albert Heijn supermarket services for product search, Bonus promotions, shopping lists, digital receipts, Allerhande recipes, store lookup, and profile/cart access while keeping checkout human-controlled.
      27
      1
      MIT