Jumbo MCP Server
Connect an AI assistant to a personal Jumbo account to read loyalty, receipt, product, store, basket, deposit/stamp data and manage the shopping list.
Verify login and view loyalty profile and Extra's points.
List, search, and inspect detailed receipts, including items, prices, discounts, payments, and VAT.
Search Jumbo stores by city, address, or coordinates.
Search products and get recommendations, alternatives, cross-sells, and weekly promotions.
Read current basket contents, order deposits, statiegeld summaries, and digital stamps.
Get a personalized promo digest based on frequently purchased items.
Manage the shopping list: view, add, remove, tick/untick items, and activate/deactivate it.
Inspect in-process cache statistics.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Jumbo MCP Server what's my Jumbo Extra's points balance?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Jumbo MCP Server
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 build2. Authentication (One-time setup)
Run the automated login wizard:
npm run login # opens Chrome, solves Turnstile automatically, and captures the callbackUpon 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
Method 1: Local Path (Recommended)
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 |
|
Cursor |
|
Other clients | the same |
Method 2: Global Link (npm link)
Run npm link inside the cloned directory to register jumbo-mcp globally on your system:
npm linkThen 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 --saveRun 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 /mcpIt 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(default127.0.0.1),MCP_HTTP_PORT/PORT(default3000),MCP_HTTP_PATH(default/mcp)MCP_HTTP_AUTH_TOKEN: requireAuthorization: Bearer <token>on requestsMCP_HTTP_SESSION_IDLE_MS: idle session timeout in ms (default1800000, 30 minutes)MCP_HTTP_JSON_RESPONSE=true(or--json): return JSON responses instead of SSE streamsMCP_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 withAuth0 token refresh failed (403): {"error":"invalid_grant"}.JUMBO_REFRESH_TOKENalone 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 tokenRecovery 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 |
| Verify the connection and return the loyalty identity and points balance. | None |
| Loyalty profile: name, customer ID, Extra's card, receipt preferences. | None |
| Recent receipts with timestamps, store and transaction IDs. |
|
| Full itemized lines, unit prices, discounts, total, payment method, VAT. |
|
| Find items bought across recent receipts by keyword (e.g. |
|
| Live Extra's loyalty points balance. | None |
| The shopping list: | None |
| Write. Add free-text items (e.g. |
|
| Write. Remove items by id. |
|
| Write. Tick an item off or back on. |
|
| Write. Activate or deactivate the list. |
|
| Nearby stores by city, address or coordinates: address, distance, hours. |
|
| Search the catalog: prices, promotions, unit prices, links, SKUs. |
|
| Recommendations, alternatives, cross-sells, or weekly promotions. |
|
| What's on offer among the things you actually buy (read-only). |
|
| Current basket: lines, quantities, unit prices, promotions, subtotal. | None |
| Statiegeld for one order: catalogue plus deposits returned. |
|
| Statiegeld totals: returned, charged, and net balance across receipts in a date range or year. |
|
| Digital stamps, active saving (spaar) campaigns, buying-stamps balance. | None |
| 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=offto disable the cache entirely.JUMBO_MCP_CACHE_MAX_ENTRIEScaps the number of cached responses (default 500).Verify it: call
jumbo_cache_statsfor 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 statusprints 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
reasonanderrorMessagerather than a generic message.
Local Development
Command | Purpose |
| Run the stdio server via |
| Run the Streamable HTTP server via |
| Run the compiled Streamable HTTP server |
| Run the unit tests (mocked HTTP, no live Jumbo calls) |
| Authentication CLI wizard |
| Verify the live connection and token status |
| Compile TypeScript to |
License
MIT License - Copyright (c) 2026 Robert Schulze Dieckhoff
Available Tools
20 toolsjumbo_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 StatisticsARead-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 BalanceARead-only
Get customer's live Jumbo Extra's loyalty points balance.
Inputs: no named parameters.
jumbo_get_basketGet Jumbo BasketARead-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 DepositsARead-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 RecommendationsBRead-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 ProfileBRead-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 DigestARead-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 DetailsARead-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 ListARead-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 StampsARead-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 SummaryARead-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 ReceiptsBRead-only
List recent Jumbo supermarket store receipts (kassabonnen) with date, store location, and transaction ID.
Inputs: page, page_size.
jumbo_loginCheck Jumbo Login StatusARead-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 ItemsADestructive
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 ProductsARead-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 ReceiptsARead-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 StoresARead-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
Scored across 20 tools
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.
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.
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.
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
Related MCP Connectors
Live Dutch supermarket prices and promotions (Albert Heijn, Jumbo, Lidl, Aldi and more) for AI.
Turn any shopping list into a ready-to-checkout grocery cart across 26 European supermarkets.
Persistent shopping memory for AI assistants. The AI reasons; Kaufliste stores and executes.
Search live store shelves, verify delivery windows, and run instant AI agent checkouts.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceEnables 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.-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to search grocery products, manage shopping carts, view discounts, and access account, delivery, and order information across multiple European online grocery platforms.-
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to search grocery products, manage shopping carts, and access account, order, delivery, and discount information across multiple European online grocery platforms.MIT
- AlicenseAqualityBmaintenanceEnables 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.271MIT