Skip to main content
Glama

Jumbo MCP Server

License: MIT MCP TypeScript

A Model Context Protocol (MCP) server for Jumbo Supermarkten.

Connect your AI assistant (Claude Desktop, Cursor, Antigravity, OpenClaw, …) to your personal Jumbo account to read digital receipts (kassabonnen), itemized prices and discounts, Extra's loyalty points, stores and products, and to manage your shopping list (lijstje).


Installation & Setup

Requires Node.js >= 20.

1. Clone & Build

git clone https://github.com/Robert-SD/jumbo-mcp.git
cd jumbo-mcp
npm install
npm run build

2. Authentication (One-time setup)

Run the automated login wizard:

npm run login     # opens Chrome, solves Turnstile automatically, and captures the callback

Upon successful login, the CLI prints your permanent refresh token directly in the terminal:

JUMBO_REFRESH_TOKEN=v1.MbOzCg2...

Add this line directly to your .env file or environment:

JUMBO_REFRESH_TOKEN="your_refresh_token_here"

Verify your active connection and loyalty balance:

npm run status    # verify active connection and loyalty points

(Recommended: persist the session with npm run login -- --save and point JUMBO_TOKENS_FILE at a writable path. Jumbo rotates refresh tokens on every use, so the env value above is only a bootstrap fallback. Containers must mount a persistent volume; see Persistent token storage.)


Related MCP server: Rohlik MCP Server

Client Integration

Add the compiled server to your MCP client config:

{
  "mcpServers": {
    "jumbo": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/jumbo-mcp/dist/index.js"],
      "env": {
        "JUMBO_REFRESH_TOKEN": "your_refresh_token_here"
      }
    }
  }
}

Client

Config file

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json (macOS)%APPDATA%\Claude\claude_desktop_config.json (Windows)

Cursor

~/.cursor/mcp.json

Other clients

the same mcpServers block

Run npm link inside the cloned directory to register jumbo-mcp globally on your system:

npm link

Then use:

{
  "mcpServers": {
    "jumbo": {
      "command": "jumbo-mcp",
      "env": {
        "JUMBO_REFRESH_TOKEN": "your_refresh_token_here"
      }
    }
  }
}

Method 3: Docker Deployment

A multi-stage Dockerfile is included for containerized environments:

# Build Docker image
docker build -t jumbo-mcp .

# One-time login on the host, into a directory you will mount
docker run --rm -it -v jumbo-tokens:/data \
  -e JUMBO_TOKENS_FILE=/data/tokens.json \
  jumbo-mcp login --save

Run the server against the same volume:

{
  "mcpServers": {
    "jumbo": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-v",
        "jumbo-tokens:/data",
        "-e",
        "JUMBO_TOKENS_FILE=/data/tokens.json",
        "-e",
        "JUMBO_REFRESH_TOKEN=your_refresh_token_here",
        "jumbo-mcp"
      ]
    }
  }
}

-v jumbo-tokens:/data is not optional (see below).

Method 4: Persistent Streamable HTTP Server

Run the server as a persistent HTTP daemon (for remote MCP clients, multi-session use, or a shared in-memory cache):

npm run start:http
# or with custom options:
node dist/index.js http --host 127.0.0.1 --port 3000 --path /mcp

It exposes the MCP endpoint at /mcp and a health check at /healthz. You can also activate HTTP mode via --transport http or MCP_TRANSPORT=http.

Optional environment variables:

  • MCP_HTTP_HOST (default 127.0.0.1), MCP_HTTP_PORT / PORT (default 3000), MCP_HTTP_PATH (default /mcp)

  • MCP_HTTP_AUTH_TOKEN: require Authorization: Bearer <token> on requests

  • MCP_HTTP_SESSION_IDLE_MS: idle session timeout in ms (default 1800000, 30 minutes)

  • MCP_HTTP_JSON_RESPONSE=true (or --json): return JSON responses instead of SSE streams

  • MCP_HTTP_ALLOWED_HOSTS / MCP_HTTP_ALLOWED_ORIGINS: comma-separated allowlists enabling DNS rebinding protection

Persistent token storage (required for containers)

Jumbo's Auth0 tenant issues rotating refresh tokens: every refresh returns a new refresh token and invalidates the previous one, with reuse detection. That makes the tokens file part of the credential, not a cache.

  • The server writes each rotated token to the file returned by JUMBO_TOKENS_FILE. That path must be on a persistent, writable volume for any container or headless deployment.

  • If the tokens file sits on the container's ephemeral layer, the rotated token is lost on the next restart. The process then falls back to the stale JUMBO_REFRESH_TOKEN, Auth0 sees a reused token, and the whole token family is revoked, so every tool call fails with Auth0 token refresh failed (403): {"error":"invalid_grant"}.

  • JUMBO_REFRESH_TOKEN alone is not safe with rotation enabled. It is a bootstrap value, read only when no tokens file exists; the token it produces must still be persisted for the next start.

  • A tokens file that already carries a refresh token always wins over JUMBO_REFRESH_TOKEN, so a stale env value can never overwrite a live session.

  • If the tokens path cannot be written, the server now fails the refresh loudly (naming the path and this requirement) instead of continuing in memory.

Recommended configuration:

JUMBO_TOKENS_FILE=/data/tokens.json   # on a mounted volume, writable by the container user
JUMBO_REFRESH_TOKEN=...               # bootstrap only; ignored once tokens.json has a refresh token

Recovery after an invalid_grant: re-run jumbo-mcp login --save (or docker run … jumbo-mcp login --save against the same volume), set JUMBO_REFRESH_TOKEN to the new value if you keep one, and confirm JUMBO_TOKENS_FILE points at persistent storage. No retry can revive a token family Auth0 has already invalidated.


Tools

Tool

Description

Parameters

jumbo_login

Verify the connection and return the loyalty identity and points balance.

None

jumbo_get_profile

Loyalty profile: name, customer ID, Extra's card, receipt preferences.

None

jumbo_list_receipts

Recent receipts with timestamps, store and transaction IDs.

page (0), page_size (10, max 30)

jumbo_get_receipt_details

Full itemized lines, unit prices, discounts, total, payment method, VAT.

transaction_id (required)

jumbo_search_receipts

Find items bought across recent receipts by keyword (e.g. 'havermelk').

query (required), max_receipts (10)

jumbo_get_balance

Live Extra's loyalty points balance.

None

jumbo_get_shopping_list

The shopping list: isActive plus every item.

None

jumbo_add_shopping_list_items

Write. Add free-text items (e.g. ['eieren']); activates the list if needed.

items (required), ensure_active (true), dedupe (true)

jumbo_remove_shopping_list_items

Write. Remove items by id.

item_ids (required)

jumbo_set_shopping_list_item_completed

Write. Tick an item off or back on.

item_id, completed (both required)

jumbo_set_shopping_list_active

Write. Activate or deactivate the list.

active (required)

jumbo_search_stores

Nearby stores by city, address or coordinates: address, distance, hours.

query, latitude, longitude (all optional)

jumbo_search_products

Search the catalog: prices, promotions, unit prices, links, SKUs.

query (required), sort, limit (20, max 200)

jumbo_get_product_recommendations

Recommendations, alternatives, cross-sells, or weekly promotions.

sku, query, promotions_only (false)

jumbo_get_promo_digest

What's on offer among the things you actually buy (read-only).

days (90), min_times (2), limit (25), category

jumbo_get_basket

Current basket: lines, quantities, unit prices, promotions, subtotal.

None

jumbo_get_deposits

Statiegeld for one order: catalogue plus deposits returned.

order_id (required)

jumbo_get_statiegeld_summary

Statiegeld totals: returned, charged, and net balance across receipts in a date range or year.

year, start_date, end_date, max_receipts (50)

jumbo_get_stamps

Digital stamps, active saving (spaar) campaigns, buying-stamps balance.

None

jumbo_cache_stats

Combined counters for the response and geocoding caches: enabled, hits, misses, hit rate, entries, evictions.

None


Caching & Data Freshness

Jumbo's API cannot be cached at the HTTP layer, so this server keeps a process-local TTL cache in front of its single GraphQL choke point. It cuts request volume and speeds up repeat lookups (the promo digest alone resolves one receipt detail per receipt, plus a product lookup per basket term).

Scope: in memory only, for the lifetime of the running MCP server process. Nothing is written to disk, no cache survives a restart, and entries are scoped to the signed-in account. No cached response contains your tokens, but a cached receipt detail does carry that receipt's account data (customer ID and loyalty card number), which is why it never leaves process memory.

What is cached, and for how long

Data

TTL

Why

Store list, city geocoding

24 hours

A store's location does not move

Product detail

24 hours

A product's page is stable for a day

Product search results, promo search

30 minutes

Offer prices churn daily

Promotions and customer promotions

30 minutes

Weekly campaign, daily markdowns

Closed receipt line items, order deposits

30 days

A closed receipt is immutable

Everything else

Never

See below

What is never cached

Your profile, the receipt overview list, your shopping list, the basket, your Extra's balance and your stamps are always fetched live, never served from the cache. Those carry live personal state, and a stale read there would make the assistant re-add an item you just added.

What this means for you

  • Prices and offers can be up to 30 minutes old, and product pages up to 24 hours old. A price change during that window is not reflected.

  • Caching is per process. If your client spawns a fresh server for every session, each session starts with a cold cache and the benefit is limited to repeats within one session.

  • Kill switch: set JUMBO_MCP_CACHE=off to disable the cache entirely. JUMBO_MCP_CACHE_MAX_ENTRIES caps the number of cached responses (default 500).

  • Verify it: call jumbo_cache_stats for the live hit/miss counters of the running server; they cover both the GraphQL response cache and the city geocoding cache, so a store search that reused coordinates is visible. npm run status prints the cache configuration (enabled state and size cap) because it starts a separate process, so it cannot show the running server's counters.


Usage examples

"Show my last 5 receipts."                     → jumbo_list_receipts
"What did I pay for milk last month?"          → jumbo_search_receipts { "query": "melk" }
"How many Extra's points do I have?"           → jumbo_get_balance
"Add eggs and milk to my shopping list."       → jumbo_add_shopping_list_items
"What's on offer that I actually buy?"         → jumbo_get_promo_digest
"Which Jumbo is closest to Utrecht?"           → jumbo_search_stores { "query": "utrecht" }

Notes

  • Prices: Catalog, basket, deposit, and promo-digest tools return prices as integer cents (e.g. 139 = €1.39). Receipt tools (jumbo_get_receipt_details, jumbo_search_receipts) return prices parsed from the receipt document as decimal euros (e.g. 2.19 = €2.19).

  • The shopping-list tools are the only writes. Basket, deposits, stamps and promotion tools are read-only.

  • When Jumbo rejects a call, the tool returns an error payload with Jumbo's own reason and errorMessage rather than a generic message.


Local Development

Command

Purpose

npm run dev

Run the stdio server via tsx (development mode)

npm run dev:http

Run the Streamable HTTP server via tsx

npm run start:http

Run the compiled Streamable HTTP server

npm test

Run the unit tests (mocked HTTP, no live Jumbo calls)

npm run login

Authentication CLI wizard

npm run status

Verify the live connection and token status

npm run build

Compile TypeScript to dist/


License

MIT License - Copyright (c) 2026 Robert Schulze Dieckhoff

Available Tools

20 tools
jumbo_add_shopping_list_itemsAdd Jumbo Shopping List ItemsA

Add one or more free-text items to the user's Jumbo shopping list (e.g. ['eieren']). This WRITES to the user's real Jumbo account. If the list is inactive it is activated first (set ensure_active=false to skip). Never touches the basket, checkout, orders or payments.

Inputs: items (required), dedupe, ensure_active.

jumbo_cache_statsGet Jumbo Response Cache StatisticsA
Read-only

Report the in-process caches (GraphQL responses and store geocoding): enabled state, hits, misses, hit rate, stored entries and evictions. Use to verify that cached Jumbo responses are reused instead of re-fetched.

Inputs: no named parameters.

jumbo_get_balanceGet Jumbo Extra's BalanceA
Read-only

Get customer's live Jumbo Extra's loyalty points balance.

Inputs: no named parameters.

jumbo_get_basketGet Jumbo BasketA
Read-only

Read-only view of the current Jumbo basket: lines with quantity, unit price, line total, promotions applied, and the basket subtotal. Uses the GraphQL ActiveBasket operation. No basket writes, no checkout, no order, no payment operations.

Inputs: no named parameters.

jumbo_get_depositsGet Jumbo Order DepositsA
Read-only

Read statiegeld (deposit) information for one order: the deposit catalogue and the deposits returned on that order, with the returned total. Requires an order_id — Jumbo's returned-deposits query is order-scoped.

Inputs: order_id (required).

jumbo_get_product_recommendationsGet Jumbo Product RecommendationsB
Read-only

Get product recommendations, alternatives, and cross-sell suggestions for a product by SKU or search query, or retrieve current weekly promotional recommendations.

Inputs: sku, query, promotions_only.

jumbo_get_profileGet Jumbo ProfileB
Read-only

Get customer loyalty profile, name, customer ID, Extra's card details, and digital receipt preferences.

Inputs: no named parameters.

jumbo_get_promo_digestGet Jumbo Promo DigestA
Read-only

Answer "of the things I actually buy, what is on offer right now?". Mines recent receipts for purchase frequency, resolves each frequent item to a current assortment product, and reports the offer price (was/now), discount, promo type, validity window and unit price for everything currently promoted. Read-only: no writes, no basket, no checkout, no order or payment operations.

Inputs: days, limit, category, min_times.

jumbo_get_receipt_detailsGet Jumbo Receipt DetailsA
Read-only

Get detailed line items, unit prices, discounts, total, amount paid, returned deposit (statiegeld), payment method, and Extra's points for a specific Jumbo receipt.

Inputs: transaction_id (required).

jumbo_get_shopping_listGet Jumbo Shopping ListA
Read-only

Get the user's Jumbo shopping list ('lijstje'): whether it is active and every item (id, term, sku, completed).

Inputs: no named parameters.

jumbo_get_stampsGet Jumbo StampsA
Read-only

Read the user's digital stamps: per-campaign stamp counts, active saving (spaar) campaigns, and the buying-stamps balance.

Inputs: no named parameters.

jumbo_get_statiegeld_summaryGet Jumbo Statiegeld SummaryA
Read-only

Calculate total returned and charged statiegeld (bottle/can deposits) across store receipts in a date range or calendar year (e.g. 2026). Reports total returned, total charged, net deposit balance, and detailed per-receipt breakdown.

Inputs: year, end_date, start_date, max_receipts.

jumbo_list_receiptsList Jumbo ReceiptsB
Read-only

List recent Jumbo supermarket store receipts (kassabonnen) with date, store location, and transaction ID.

Inputs: page, page_size.

jumbo_loginCheck Jumbo Login StatusA
Read-only

Check authentication status or establish session with Jumbo. The MCP server uses persistent pre-configured Auth0 tokens, so this verifies active connection and returns user loyalty identity.

Inputs: no named parameters.

jumbo_remove_shopping_list_itemsRemove Jumbo Shopping List ItemsA
Destructive

Remove one or more items from the user's Jumbo shopping list by item id (ids come from jumbo_get_shopping_list). This WRITES to the user's real Jumbo account. Shopping list only.

Inputs: item_ids (required).

jumbo_search_productsSearch Jumbo ProductsA
Read-only

Search the entire Jumbo supermarket grocery catalog by keyword. Returns matching products with prices, active discounts, unit prices, web links, and SKUs.

Inputs: query (required), sort, limit.

jumbo_search_receiptsSearch Jumbo ReceiptsA
Read-only

Search for specific grocery items purchased across recent Jumbo receipts by keyword (e.g. 'havermelk', 'bio ei', 'skyr').

Inputs: query (required), max_receipts.

jumbo_search_storesSearch Jumbo StoresA
Read-only

Search nearby Jumbo supermarket stores by city name, address, or geographic coordinates (latitude, longitude). Returns address, distance, opening hours, and facilities.

Inputs: query, latitude, longitude.

jumbo_set_shopping_list_activeSet Jumbo Shopping List ActiveA

Activate or deactivate the user's Jumbo shopping list ('lijstje'). This WRITES to the user's real Jumbo account; it does not add or remove items.

Inputs: active (required).

jumbo_set_shopping_list_item_completedComplete Jumbo Shopping List ItemA

Tick an item on the user's Jumbo shopping list off (completed=true) or back on (completed=false). This WRITES to the user's real Jumbo account.

Inputs: item_id (required), completed (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 20 tools

    Disambiguation4/5

    Most tools have clearly distinct resource+action targets (receipts, products, stores, shopping list, basket, promos). The only mild overlap is jumbo_get_statiegeld_summary vs jumbo_get_deposits, but descriptions clearly distinguish aggregate-across-receipts from order-scoped deposits.

    Naming Consistency5/5

    All tools use a consistent jumbo_ prefix with snake_case verb_noun patterns (get_, list_, search_, add_, remove_, set_). Minor noun-only deviations like jumbo_cache_stats and verb-only jumbo_login don't undermine the readable, predictable convention.

    Tool Count4/5

    20 tools is on the heavier side but each covers a distinct loyalty/grocery sub-domain and none feel redundant. Slightly over the ideal but well-scoped for the breadth of the domain.

    Completeness4/5

    Strong coverage of profile, receipts, products, stores, shopping-list writes, basket reads, deposits, stamps, and promos. The deliberate absence of basket-write and checkout/order operations is a notable but clearly-stated scope boundary rather than an accidental gap.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • 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.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to search grocery products, manage shopping carts, view discounts, and access account, delivery, and order information across multiple 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