Skip to main content
Glama

albert-heijn-mcp

npm License: Apache-2.0 Node.js 24 MCP

Your Albert Heijn account, in your AI assistant.

Connect your Albert Heijn account to an AI assistant such as Claude, ChatGPT or Cursor, and do your grocery shopping by just asking. Find products and bonus deals, plan meals from Allerhande recipes, keep your shopping list and delivery order up to date, and look back at what you've bought.

Technically, it's a Model Context Protocol (MCP) server for Albert Heijn 🇳🇱. MCP is the standard way AI apps connect to other services, so it works with any app that supports MCP.

NOTE

An unofficial project, not affiliated with or endorsed by Albert Heijn. It uses the same API as the AH mobile app, which may change without notice.


Contents

For everyone

Technical details

Related MCP server: Jumbo MCP Server

What you can ask

Ask in Dutch, English or any language your assistant speaks:

"Wat is er deze week in de bonus van wat ik meestal koop?"

Plan meals

"Find a vegetarian Allerhande recipe under 30 minutes for two, and put the ingredients on my shopping list. I already have olive oil and salt."

"Scale the panlasagne recipe to six people and tell me how much salmon I need."

"Plan three weeknight dinners around what's on bonus this week."

"Put everything for the recipes in my AH meal planner on my shopping list."

Save money

"Which products I usually buy are on bonus this week?"

"Rebuild tonight's stir-fry with ingredients that are on bonus, without changing the recipe too much."

"Is next week's bonus out yet? If not, when does it appear?"

"Which of my personal offers are worth activating this week?"

"How many koopzegels do I have, and what are they worth?"

"What's in the 2+1 gratis kaas deal?"

Shop

"Put the products I buy most back on my list."

"What's this product, and is it on bonus?" (with a photo of its barcode)

"What's the cheapest cheese at AH right now?"

"Find organic, gluten-free pasta, cheapest first."

"Compare the protein and sugar in these three yoghurts and add the best one to my list."

"When can AH deliver on Saturday?"

"The courgettes are sold out. What else would work in this recipe?"

"Add two more packs of milk to my upcoming delivery."

"Make a favourites list called Pasta night with everything from this recipe."

"Any vandaag-af bread or vegetables at my local AH worth picking up tonight?"

Look back

"How much did my in-store receipts add up to in September, and what were the five priciest items?"

"Show the receipt from my last shop and list anything I bought more than once."

Getting started

You need an Albert Heijn account. Then:

  1. Connect your app: pick yours below.

  2. Log in to Albert Heijn: ask your assistant to log you in, once.

  3. Ask away. See what you can ask.

Connecting a client

Your app

How

Claude Desktop

Download and double-click. Easiest; nothing else to install.

Cursor, VS Code

One-click install button

ChatGPT, Claude.ai (web and mobile)

Needs your own server (technical)

Other apps

Add a command to the app's settings

Claude Desktop

  1. Download albert-heijn-mcp.mcpb.

  2. Double-click it and choose Install. If it doesn't open in Claude, go to Settings → Extensions → Advanced settings → Install Extension… and pick the file.

That's it: the file contains everything it needs. To update, do the same with the file from the newest release.

Other desktop apps that support MCP Bundles (.mcpb files) install it the same way.

Cursor and VS Code

Install Node.js 24 (LTS) first, then click:

Install in Cursor Install in VS Code

ChatGPT and Claude.ai

Web and mobile apps can't run anything on your computer; they only connect to servers on the internet. So you first need to run it on a server, which takes some technical know-how. Then add it as a connector:

  • ChatGPT needs Developer mode (Plus, Pro, Business, Enterprise and Education). Open Settings → advanced settings, turn on Developer mode, and create a connector with https://your-server/mcp. Set authentication to OAuth.

  • Claude.ai: Settings → Connectors → Add custom connector, paste https://your-server/mcp and choose Connect.

The app then opens a login page on your server: enter your AH_MCP_TOKEN there, once.

Other apps

Apps that start MCP servers as a local command need Node.js 24 (LTS) and run npx -y albert-heijn-mcp, which downloads and runs the latest version. Most of them take this JSON in their MCP settings:

{
  "mcpServers": {
    "ah": {
      "command": "npx",
      "args": ["-y", "albert-heijn-mcp"]
    }
  }
}

Where the settings live differs per app; see its documentation. Apps with a command line usually have an add command instead, e.g. <client> mcp add ah -- npx -y albert-heijn-mcp. It is also listed in the MCP Registry, which some apps install from.

To install it permanently instead, run npm install --global albert-heijn-mcp and use the albert-heijn-mcp command; run the same command again to update.

TIP

Desktop apps don't load your shell profile, so they may not findnpx (common with nvm). Then set command to the output of which npx.

Logging in

Ask your assistant to log you in to Albert Heijn. You only do this once; the login is then kept and renewed automatically.

On your computer (Claude Desktop, Cursor, VS Code and other local apps), a separate browser window opens with AH's login page. Log in there as usual: the window closes by itself and you're logged in. Then tell your assistant you're done.

The window uses a fresh, empty browser profile, so type your password: saved passwords and password-manager extensions aren't available there. It needs Chrome, Edge, Brave or Chromium (not the snap version on Ubuntu) and a screen; otherwise you copy the code by hand as below.

On a server (ChatGPT, Claude.ai), or when no login window can open, you copy a code by hand. AH's login page has a captcha that only works on AH's own website, so the code has to come from your browser:

You need a computer for this, not a phone or tablet: their browsers have no developer console. Chrome, Edge or Brave work best.

  1. Open the link your assistant gives you, but don't log in yet.

  2. Open the developer console in that tab, a panel for web developers that you can open safely: ⌘ ⌥ J on Mac, or Ctrl Shift J on Windows and Linux.

  3. Log in as usual. AH then tries to open its phone app, which your browser can't do, so the page seems stuck. In the console, find this red line:

    Failed to launch 'appie://login-exit?code=…' because the scheme does not have a registered handler.
  4. Copy the part from appie:// up to the closing quote and paste it into the chat. The code works once and expires quickly, so paste it right away.

No line there? See Troubleshooting. To log a server in without the developer console, see Running it on a server.

Your login is saved on your own computer and renewed automatically, in a file only your user can read:

OS

Location

macOS

~/Library/Application Support/albert-heijn-mcp/tokens.json

Linux

~/.config/albert-heijn-mcp/tokens.json (or under $XDG_CONFIG_HOME)

Windows

%AppData%\albert-heijn-mcp\tokens.json

Override the location with AH_TOKENS_PATH.

Troubleshooting

The login window needs Chrome, Edge, Brave or Chromium installed in the usual place, and a screen: not over SSH, and not with Ubuntu's snap Chromium. Without one, your assistant gives you the link instead, and you copy the code by hand. If the window closed before you finished, ask to log in again.

The developer console has to be open before you log in. Open it, then open the login link again in that same tab and log in. If AH skips the login form because you're still logged in, that's fine: the line appears all the same. You can also look for the appie://login-exit?code=… request in the Network tab. Browsers other than Chrome, Edge or Brave may show the link in an error page or dialog instead.

Codes work once and expire quickly. Ask to log in again and paste the new link straight away.

Ask your assistant to log you out and back in, or delete tokens.json from the login location and log in again.

Albert Heijn no longer accepts the stored login. Ask your assistant to log in to Albert Heijn again. Reconnecting your app to the server doesn't help: that's a separate login.

If it keeps expiring on your server, keep tokens.json on storage that survives restarts and redeploys, and run a single instance. AH replaces the login every time it's renewed, so an older copy of the file, or a second instance renewing on its own, gets rejected.

A code never replaces a working login, so a code from someone else's account can't switch you over. To switch accounts, ask to log out first, then log in again.

AH accepts order changes only once an order exists. Choose a delivery slot in the AH app or on ah.nl first.

Choosing a slot moved your list into the order. Ask your assistant to change the order instead (ah_get_cart, ah_update_cart_item) until it is delivered or cancelled.

Set AH_MCP_TOKEN to a long random value, e.g. the output of openssl rand -hex 32, and restart. Changing it logs out every client; reconnect them once.

Start connecting again from the app. If it keeps happening right after you enter the token, check that AH_MCP_BASE_URL is exactly the address in your browser, including https://: the login form is only accepted from that address.

Set AH_MCP_BASE_URL to the server's public https:// URL and restart it. Apps are sent there to log in.

Set AH_MCP_PORT to another port, in the environment or .env.


Running it on a server

Web and mobile apps such as ChatGPT and Claude.ai need the server on the internet, over Streamable HTTP with HTTPS. The endpoint is https://your-server/mcp.

Apps log in with OAuth: add the endpoint with OAuth (or automatic) authentication, and the app opens a login page on your server. Enter your AH_MCP_TOKEN there once; the app then gets its own tokens and renews them. The server accepts only these OAuth tokens, not AH_MCP_TOKEN itself, so apps without OAuth support can't connect over HTTP; run them locally instead.

IMPORTANT

Anyone withAH_MCP_TOKEN can log in and use your Albert Heijn account. Use a long random value (openssl rand -hex 32). Changing it logs out every client.

It runs as a hardened systemd service behind a reverse proxy, installed from npm:

  1. Prepare the server. Install Node.js 24 and create a service user:

    sudo useradd -r -m -d /home/albert-heijn-mcp -s /sbin/nologin albert-heijn-mcp
  2. Configure it in /home/albert-heijn-mcp/.env:

    AH_MCP_BASE_URL=https://albert-heijn-mcp.example.com
    AH_MCP_TOKEN=<output of: openssl rand -hex 32>

    Make it readable only by the service: sudo chown albert-heijn-mcp: /home/albert-heijn-mcp/.env && sudo chmod 600 /home/albert-heijn-mcp/.env.

  3. Install it with the service unit that comes with the package (it runs in --remote mode):

    sudo npm install --global --prefix /usr/local --ignore-scripts albert-heijn-mcp
    sudo install -m 644 /usr/local/lib/node_modules/albert-heijn-mcp/deploy/albert-heijn-mcp.service /etc/systemd/system/
    sudo systemctl daemon-reload
    sudo systemctl enable --now albert-heijn-mcp

    To update, run the same commands, then sudo systemctl restart albert-heijn-mcp.

  4. Add TLS with a reverse proxy that forwards to 127.0.0.1:3000. With Caddy:

    albert-heijn-mcp.example.com {
        reverse_proxy 127.0.0.1:3000
    }

To log the server in to Albert Heijn, ask a connected app to log you in and copy the code by hand. Or skip the code: log in on your own computer with the login window, then copy the login to the server:

AH_TOKENS_PATH=./server-tokens.json npx -y albert-heijn-mcp login
scp server-tokens.json your-server:ah-tokens.json && rm server-tokens.json
ssh -t your-server 'sudo sh -c "install -d -o albert-heijn-mcp -g albert-heijn-mcp -m 700 /home/albert-heijn-mcp/.config/albert-heijn-mcp && install -o albert-heijn-mcp -g albert-heijn-mcp -m 600 $HOME/ah-tokens.json /home/albert-heijn-mcp/.config/albert-heijn-mcp/tokens.json.new && mv /home/albert-heijn-mcp/.config/albert-heijn-mcp/tokens.json.new /home/albert-heijn-mcp/.config/albert-heijn-mcp/tokens.json && rm $HOME/ah-tokens.json"'

The server picks it up on the next request; no restart needed. The separate file keeps your computer's own login apart: AH replaces a login every time it's renewed, so only one place can use each login. On a host without SSH, upload it to where the server keeps its login: AH_TOKENS_PATH, or the default location for the user it runs as.

The service can write only to /home/albert-heijn-mcp, where it keeps its tokens. If you point AH_LOG_FILE elsewhere, add that path to ReadWritePaths in the unit file.

Configuration

Settings are environment variables. They can also go in a .env file in the working directory (see .env.example); variables already set in the environment take precedence. On a hosting platform, set them in its environment variable or secret settings instead of a .env file, so AH_MCP_TOKEN stays out of the app's files.

Variable

Default

Description

AH_REMOTE

false

Don't open a browser on login; log in by copying the code instead (same as --remote). Always on with streamable-http.

AH_TOKENS_PATH

per OS

Where to store login tokens.

AH_MCP_HOST

127.0.0.1

Interface the HTTP server listens on. Keep the default behind a reverse proxy.

AH_MCP_PORT

3000

HTTP server port.

AH_MCP_BASE_URL

http://localhost:3000

Public URL of the HTTP server. Set it on a server: OAuth clients are sent to this URL to log in, and for a non-local URL the localhost-only Host check is turned off so a reverse proxy can forward requests.

AH_MCP_TOKEN

—

Secret for the HTTP transport, at least 32 characters; the transport doesn't start without it. You enter it on the OAuth login page; it also signs the OAuth tokens.

AH_LOG_FILE

—

Also append logs to this file. Logs always go to stderr.

Command-line flags:

node dist/index.js [--transport stdio|streamable-http] [--remote] [--version] [--help]
node dist/index.js login [--remote]

stdio (the default) is for local clients; streamable-http serves MCP at /mcp, with OAuth login at /authorize. login logs in to Albert Heijn from the terminal, saves the tokens and exits; with --remote it asks for the code instead of opening a login window.

Tools

These are what your assistant uses behind the scenes; you don't call them yourself. Read-only tools are marked as such, so apps can run them without asking. Tools that remove data are marked destructive, so apps ask for confirmation first.

Tools that return data also return it as structured output with a declared schema, for clients that use it. Products and recipes in tool results include a url to their page on ah.nl, and the server asks the assistant to link their names to it.

Tool

Description

ah_login

Log in: opens a login window on your computer, or returns AH's login link and completes the login with the code you paste back.

ah_logout

Delete the stored tokens, to switch accounts or reset a session.

ah_get_member_profile

Name, masked email, bonus card number (last 4 digits), and your savings: koopzegels (stamps, and what they're worth with interest) and Air Miles.

Tool

Description

ah_search_products

Search one or more keywords at once; Dutch terms work best. Filter by bonus=true or by filters (organic, vegan, gluten_free and other diets, allergens and labels), and sort by price, what you buy most, or Nutri-Score. category_id limits it to one category, or lists the category on its own.

ah_get_products

Details for one or more products, by product ID or by barcodes (the number under a barcode). include_nutritional_info=true adds the nutrition table.

ah_get_categories

AH's top-level product categories, or a category's subcategories with their product counts, for category_id in ah_search_products.

ah_get_product_alternatives

Similar products and substitutes AH suggests for a product.

ah_get_bonus_offers

This week's bonus offers, or next week's with period=next. previously_bought=true limits them to products you bought before (AH's "Eerder gekocht"). Can filter by keyword.

ah_get_bonus_group_products

The individual products behind a group deal such as "2+1 gratis".

ah_get_personal_offers

Your personal offers (Bonus Box): which are activated, which you can still activate, and how many you may activate this week.

ah_activate_personal_offer

Activate personal offers you choose. AH limits activations per week and they can't be undone.

ah_search_stores

Nearby stores, by postal code or your own address, with your favourite store first.

ah_get_last_chance_items

Vandaag-af markdowns in a store; your favourite store by default.

Tool

Description

ah_search_recipes

Search Allerhande recipes; Dutch terms work best. filters narrows by diet, course, cuisine, occasion, season or cooking method (e.g. vegetarian, quick, italian), and works without a query too; sort orders by relevance, newest or popular.

ah_get_recipe

Ingredients, steps, and nutrition per serving. servings scales the ingredients.

ah_get_meal_plan

What's planned in the AH app's weekplanner for the next two weeks: recipes, products and notes.

ah_add_recipe_to_shopping_list

Match a recipe's ingredients to products and add them to the list in one step. It prefers products on bonus (prefer_bonus=false turns that off); skip leaves out what you have, and dry_run=true previews the matches.

Tool

Description

ah_get_shopping_list

Your shopping list ("Mijn lijst"), the basket you fill while shopping.

ah_add_to_shopping_list

Put products on the list, with a quantity each.

ah_add_free_text_to_shopping_list

Add a free-text item, like "verse bloemen".

ah_remove_from_shopping_list

Remove products or free-text items.

ah_clear_shopping_list

Remove everything. Requires confirm="yes".

ah_get_favorite_lists

Your favourite lists ("Mijn lijstjes").

ah_add_to_favorite_list

Add products to a favourite list.

ah_remove_from_favorite_list

Take products off a favourite list.

ah_create_favorite_list

Start a new, empty favourite list.

ah_delete_favorite_list

Delete a favourite list and its items. Requires confirm="yes".

Choosing a delivery or pick-up slot in the AH app moves your shopping list into an order. ah_get_delivery_slots shows when delivery is possible; the other tools work on that order.

Tool

Description

ah_get_delivery_slots

Delivery windows at your address for the coming days, with the minimum order value.

ah_get_cart

Products in the active order, with total price and discount.

ah_update_cart_item

Change a product's quantity; 0 takes it out.

ah_remove_from_cart

Remove a product from the order.

ah_clear_cart

Remove everything from the order. Requires confirm="yes".

Tool

Description

ah_get_orders

Upcoming delivery orders, or past ones with past=true.

ah_get_order_details

Products in one order.

ah_get_frequent_items

The products you buy most, counted over your delivery orders and in-store receipts of the last few months (months, default 3). source limits it to online or in_store.

ah_get_receipts

Recent in-store receipts (kassabonnen).

ah_get_receipt_details

Items, deposit, discounts, koopzegels bought and payment for one receipt, with its total.

Limitations

  • Delivery orders can't be started through the API. ah_get_delivery_slots lists the windows, but booking one, which starts the order, happens in the AH app or on ah.nl. While the order is active, AH doesn't serve the shopping list; the tools say so and point to the order tools.

  • Ticking off shopping-list items isn't supported: the API returns no usable item IDs.

  • Recipes can't be planned in the meal planner: ah_get_meal_plan reads it, but AH's API refuses to add recipes, so planning happens in the AH app.

  • Limits per call: at most 99 of a product, 50 items, 100 characters for a free-text item or list name, and details for 20 products.

Development

git clone https://github.com/olekpuchka/albert-heijn-mcp
cd albert-heijn-mcp
npm ci
npm run build    # compile to dist/
npm run lint     # type-check

Run it from the checkout with node dist/index.js, or use /path/to/albert-heijn-mcp/dist/index.js as the argument in your client's config with node as the command.

Path

Contents

src/index.ts, src/config.ts, src/loginCommand.ts

Entry point, flags and settings, and the login command

src/ahapi/

Client for AH's REST and GraphQL API, on Node's built-in fetch

src/auth/

Login window, login code exchange, token storage and refresh

src/server/

Streamable HTTP transport and OAuth login

src/tools/

The MCP tools, one file per area

deploy/

systemd unit, shipped in the package

manifest.json, .mcpbignore

Manifest of the .mcpb bundle, and the files it leaves out

listing/

Name, descriptions and icon to use in connector settings and app directories (how)

.github/

CI, release workflow, Dependabot and the pinned mcp-publisher install

assets/

Logo for this README and the server icon shown by MCP clients

The only runtime dependencies are the official MCP TypeScript SDK and Zod, which the SDK uses for tool schemas.

To call tools by hand, use the MCP Inspector:

npx @modelcontextprotocol/inspector node dist/index.js

Before deploying a change, run a quick check against a real account: log in, search for melk, add a product to your shopping list and remove it again, then view your cart and orders.

To release, set the new version with npm version 1.2.3 --no-git-tag-version and in both places in server.json and in manifest.json, merge it to main, and push a tag: git tag v1.2.3 && git push origin v1.2.3. Only repository admins can create v* tags. The release workflow checks that the versions match, builds the package, attaches it to the GitHub release as albert-heijn-mcp.tgz together with the albert-heijn-mcp.mcpb bundle, and stages the package on npm through trusted publishing, so no npm token is stored. Approve the staged version on npmjs.com (or with npm stage approve) to make it live; the workflow then updates the MCP Registry entry. The release starts without notes; write them on GitHub.

License

Apache 2.0

Available Tools

37 tools
ah_activate_personal_offerAlbert Heijn: Activate Personal OfferA
Destructive

Activate one or more of the user's personal Albert Heijn offers (Bonus Box) so the discount applies in the store and online. Get offer ids from ah_get_personal_offers. AH allows only a limited number of activations per week (max_activations) and an activation cannot be undone, so only activate the offers the user chose. Offers that are already active are skipped.

Inputs: offer_ids (required), period. Returns: failed, activated, already_active, activated_count, +1 more

ah_add_free_text_to_shopping_listAlbert Heijn: Add Free-Text to Shopping ListA

Add a free-text item to the Albert Heijn shopping list (no product ID needed). Use for reminders like 'verse bloemen', 'any good wine', or items not found in search. Free-text items have no quantity: put amounts in the text, e.g. '2 bossen bloemen'.

Inputs: name (required).

ah_add_recipe_to_shopping_listAlbert Heijn: Add Recipe to Shopping ListA

Put the ingredients of an Allerhande recipe on the shopping list in one step. Each ingredient is matched to the AH product whose name fits it best (among equally good matches, one on bonus unless prefer_bonus=false); one unit of each product is added. Water is always skipped; pass skip for anything the user already has (e.g. olive oil, salt). Set dry_run=true to show the matches without adding them. Returns the added, skipped and unmatched ingredients, and any whose search failed (worth retrying). When you mention a product or recipe from the result, link its name to its url.

Inputs: recipe_id (required), skip, dry_run, servings, +1 more. Returns: added, failed, recipe, dry_run, +2 more

ah_add_to_favorite_listAlbert Heijn: Add to Favourite ListA

Add products to a named Albert Heijn favorite list. Get list_id from ah_get_favorite_lists.

Inputs: items (required), list_id (required).

ah_add_to_shopping_listAlbert Heijn: Add to Shopping ListA

Add one or more products to your Albert Heijn shopping list. Pass an array of items, each with product_id (int) and quantity (int). Returns confirmation listing the names of successfully added products.

Inputs: items (required).

ah_clear_cartAlbert Heijn: Clear OrderA
Destructive

Remove ALL items from the active Albert Heijn delivery order (not the shopping list). Irreversible — requires confirm="yes" to prevent accidental use.

Inputs: confirm (required).

ah_clear_shopping_listAlbert Heijn: Clear Shopping ListA
Destructive

Remove ALL items from the Albert Heijn shopping list. Irreversible — requires confirm="yes".

Inputs: confirm (required).

ah_create_favorite_listAlbert Heijn: Create Favourite ListA

Create a new, empty Albert Heijn favorite list with the given name; AH drops some punctuation, such as '-'. Returns its id; add products with ah_add_to_favorite_list.

Inputs: name (required). Returns: id, name, item_count, updated_at

ah_delete_favorite_listAlbert Heijn: Delete Favourite ListA
Destructive

Delete an Albert Heijn favorite list and everything on it. Irreversible — requires confirm="yes". Get list_id from ah_get_favorite_lists.

Inputs: confirm (required), list_id (required).

ah_get_bonus_group_productsAlbert Heijn: Bonus Group ProductsA
Read-only

Get all individual products belonging to a specific Albert Heijn bonus promotion group. Use this to drill into a deal like '2+1 gratis kaas' or 'Alle yoghurt 25% korting'. Get segment_id from the bonus_segment_id field in ah_get_bonus_offers results. For an offer from next week's bonus, set period='next'. Returns the same fields as ah_search_products. When you mention a product or recipe from the result, link its name to its url.

Inputs: segment_id (required), period. Returns: products

ah_get_bonus_offersAlbert Heijn: Bonus OffersA
Read-only

Get Albert Heijn bonus/promotional offers. Use this (not ah_search_products) when the user asks what is on bonus/sale/discount. Returns this week's bonus by default; set period='next' for next week's bonus, which AH publishes a few days before the new bonus week starts. Supports optional keyword filter to find e.g. cheese on bonus: set query='kaas'. Set previously_bought=true for offers on products the user bought before (AH's 'Eerder gekocht'). Group deals (e.g. '2+1 gratis', 'Alle yoghurt 25% korting') have no id but a bonus_segment_id — pass that to ah_get_bonus_group_products to see the individual products in the group. Returns id, bonus_segment_id, title, original_price, bonus_price, discount_percentage, bonus_mechanism. When you mention a product or recipe from the result, link its name to its url.

Inputs: limit, query, period, previously_bought. Returns: offers

ah_get_cartAlbert Heijn: View Order CartA
Read-only

View the items in the active Albert Heijn delivery order (the order cart). An order only exists after the user has chosen a delivery or pick-up slot; the products the user is collecting before that are on the shopping list (use ah_get_shopping_list). Returns the order state, items with names and quantities, total price, and total discount. When you mention a product or recipe from the result, link its name to its url.

Inputs: no named parameters. Returns: order

ah_get_categoriesAlbert Heijn: Product CategoriesA
Read-only

List Albert Heijn's product categories, e.g. 'Groente, aardappelen' or 'Kaas'. Without parent_id returns the top-level categories (the aisles of ah.nl); with a parent_id, its subcategories with their product counts. Categories overlap, so a subcategory can also appear under other parents. Pass a category id as category_id to ah_search_products to search or list products in it.

Inputs: parent_id. Returns: categories

ah_get_delivery_slotsAlbert Heijn: Delivery SlotsA
Read-only

List the delivery time windows Albert Heijn offers at the member's address, per day (Dutch time). Booking a slot is only possible in the AH app or on ah.nl; this shows when delivery is possible. Returns date, windows like '15:00-17:00', and the minimum order value for delivery that day in euros.

Inputs: days. Returns: days, postal_code

ah_get_favorite_listsAlbert Heijn: View Favourite ListsA
Read-only

List all Albert Heijn favorite/saved shopping lists with their names and item counts. Use the returned list ID with ah_add_to_favorite_list, ah_remove_from_favorite_list or ah_delete_favorite_list.

Inputs: no named parameters. Returns: lists

ah_get_frequent_itemsAlbert Heijn: Frequently Bought ItemsA
Read-only

Get the products the user buys most often, counted over their Albert Heijn delivery orders and in-store receipts (kassabonnen) of the last few months. purchase_count is the number of orders and store visits that included the product, split into online_count and in_store_count. Use it to suggest a shopping list or spot staples that are on bonus. Returns product_name, product_id, the counts and last_purchased_date, most bought first. When you mention a product or recipe from the result, link its name to its url.

Inputs: limit, months, source, min_order_count, +1 more. Returns: products, warnings, from_date, online_orders, +1 more

ah_get_last_chance_itemsAlbert Heijn: Last-Chance ItemsA
Read-only

Get last-chance / vandaag-af / clearance items from an Albert Heijn store. Uses store_id if given, else the store nearest postal_code, else the member's favourite store (set in the AH app), else the store nearest the member's address. Returns the store it used. Uses the dedicated bargainItems GraphQL endpoint which returns today-only markdown deals. When you mention a product or recipe from the result, link its name to its url.

Inputs: limit, store_id, postal_code. Returns: items, store

ah_get_meal_planAlbert Heijn: Meal PlanA
Read-only

Get the user's meal plan from the Albert Heijn app's weekplanner, per day from today (about two weeks): planned Allerhande recipes, their own recipes, products and notes. Use the recipe_id of a planned Allerhande recipe with ah_get_recipe or ah_add_recipe_to_shopping_list, e.g. to shop for the week's dinners; the user's own recipes (own_recipe_id) can't be opened with those tools. incomplete=true means AH failed on some days or entries, so some may be missing or shown as type other. Planning recipes is done in the AH app. When you mention a product or recipe from the result, link its name to its url.

Inputs: include_empty_days. Returns: days, incomplete

ah_get_member_profileAlbert Heijn: Member ProfileA
Read-only

Get your Albert Heijn member profile and savings. Returns name, email (masked), bonus_card_number (last 4 digits only), koopzegels (savings stamps: stamps saved, full booklets, euros invested, interest earned, and payout_value they are worth now), and the air_miles balance.

Inputs: no named parameters. Returns: name, email, air_miles, koopzegels, +3 more

ah_get_order_detailsAlbert Heijn: Order DetailsA
Read-only

Get the full item list for a specific Albert Heijn delivery order by its ID. Returns all products with names, quantities, and prices. Get order_id from ah_get_orders. When you mention a product or recipe from the result, link its name to its url.

Inputs: order_id (required). Returns: id, items, state, total_price, +1 more

ah_get_ordersAlbert Heijn: OrdersA
Read-only

List Albert Heijn online delivery orders. By default returns upcoming orders (with a modifiable flag); set past=true for delivered orders. Returns id, date, time_window, total_price, status. Use the returned id with ah_get_order_details to see the items.

Inputs: past, limit. Returns: orders

ah_get_personal_offersAlbert Heijn: Personal OffersA
Read-only

Get the user's personal Albert Heijn offers (the Bonus Box, 'persoonlijke bonus'): deals picked for this member that only apply after they are activated. Returns max_activations (how many offers the member may activate this week), activated_count, and per offer: id, title, status ('activated' or 'available'), original_price, bonus_price, discount_percentage, unit, and product_id when the offer covers one product. For an offer on several products, pass its id as segment_id to ah_get_bonus_group_products to list them. Activate offers with ah_activate_personal_offer. Set period='next' for next week's offers once AH publishes them. When you mention a product or recipe from the result, link its name to its url.

Inputs: period. Returns: offers, activated_count, max_activations

ah_get_product_alternativesAlbert Heijn: Product AlternativesA
Read-only

Get products Albert Heijn suggests instead of a given product: similar products and substitutes, e.g. when it is sold out or to find a cheaper or organic option. Returns the same fields as ah_search_products. When you mention a product or recipe from the result, link its name to its url.

Inputs: product_id (required), limit. Returns: products

ah_get_productsAlbert Heijn: Product DetailsA
Read-only

Get detailed information about one or more Albert Heijn products by ID (max 20). Returns title, brand, category, description, price, unit size, bonus info, NutriScore, property icons. Set include_nutritional_info=true to also return calories, fat, protein, etc. Get product IDs from ah_search_products, or pass barcodes: the EAN number under a product's barcode (8, 12, 13 or 14 digits, e.g. read from a photo of the pack). A barcode AH doesn't sell returns an error for it. When you mention a product or recipe from the result, link its name to its url.

Inputs: barcodes, product_ids, include_nutritional_info. Returns: products

ah_get_receipt_detailsAlbert Heijn: Receipt DetailsA
Read-only

Get full details of a single Albert Heijn in-store receipt (kassabon) by its id. Returns all purchased items with name, quantity, unit price, line total and deposit (statiegeld), plus any discounts, koopzegels (savings stamps) bought, payment method and total_amount. Get the id from ah_get_receipts first.

Inputs: id (required). Returns: id, items, payments, discounts, +2 more

ah_get_receiptsAlbert Heijn: ReceiptsA
Read-only

List recent Albert Heijn in-store receipts (kassabonnen). Returns receipt id, date, and total amount. Use ah_get_receipt_details with the id to see individual items.

Inputs: limit. Returns: receipts

ah_get_recipeAlbert Heijn: RecipeA
Read-only

Get an Allerhande recipe by id: ingredients, preparation steps, and nutrition per serving. Set servings to scale the ingredient quantities. To shop for it, search the ingredients with ah_search_products and add them with ah_add_to_shopping_list. When you mention a product or recipe from the result, link its name to its url.

Inputs: recipe_id (required), servings. Returns: id, url, steps, title, +9 more

ah_get_shopping_listAlbert Heijn: View Shopping ListA
Read-only

Get the contents of the Albert Heijn shopping list (boodschappenlijst). In the AH app this is the basket the user fills while shopping; choosing a delivery slot moves its products into an order, after which the list is unavailable until the order is done (use ah_get_cart then). Returns item names, quantities, and product IDs. When you mention a product or recipe from the result, link its name to its url.

Inputs: no named parameters. Returns: items

ah_loginAlbert Heijn: Log InA

Log in to Albert Heijn. Call without arguments to start. On the user's own computer this usually opens a login window that finishes the login by itself. Otherwise it returns the AH login link and step-by-step instructions: show them to the user as given, in order (the developer console must be open before they log in). The user then copies a link like appie://login-exit?code=...; call ah_login again with code set to that link (or just the code) to finish. Codes are single-use and expire quickly. If already logged in, returns the account name; to switch accounts, call ah_logout first.

Inputs: code.

ah_logoutAlbert Heijn: Log OutA
Destructive

Log out of Albert Heijn by deleting the stored tokens. Use this to switch accounts or reset a broken session. After logout, call ah_login to authenticate again.

Inputs: no named parameters.

ah_remove_from_cartAlbert Heijn: Remove from OrderA
Destructive

Remove a single product from the active Albert Heijn delivery order. Use product_id from ah_get_cart. To remove products from the shopping list, use ah_remove_from_shopping_list.

Inputs: product_id (required).

ah_remove_from_favorite_listAlbert Heijn: Remove from Favourite ListA
Destructive

Remove products from a named Albert Heijn favorite list. Get list_id from ah_get_favorite_lists.

Inputs: list_id (required), product_ids (required).

ah_remove_from_shopping_listAlbert Heijn: Remove from Shopping ListA
Destructive

Remove one or more items from the Albert Heijn Boodschappenlijst. For product items pass product_ids; for free-text items pass names. Get product_ids from ah_get_shopping_list.

Inputs: names, product_ids.

ah_search_productsAlbert Heijn: Search ProductsA
Read-only

Search Albert Heijn (Dutch supermarket) products by keyword. Pass one or more queries (max 10) to search for several products in one call. Prefer Dutch search terms for best results: e.g. 'melk' (milk), 'kaas' (cheese), 'brood' (bread), 'kip' (chicken), 'appel' (apple). Set bonus=true to return only products currently on promotion. filters narrows results to products matching all of them, e.g. ['organic', 'gluten_free']: organic, prijsfavoriet (AH's budget label), new, frozen, a diet (vegan, vegetarian, low_sugar, low_fat, low_salt), or free from an allergen (gluten_free, lactose_free, milk_free, egg_free, nut_free, peanut_free, soy_free, fish_free, shellfish_free, sesame_free, celery_free, mustard_free, lupin_free, sulphite_free). sort orders results: relevance (default), price_low_high, price_high_low, most_bought (by this user), nutriscore. category_id (from ah_get_categories) limits results to one category; with category_id, queries may be left out to list the category itself, e.g. the cheapest products in it. Returns, per query: id, title, price, bonus_price, unit, is_bonus, bonus_mechanism, image_url. When you mention a product or recipe from the result, link its name to its url.

Inputs: sort, bonus, limit, filters, +2 more. Returns: searches

ah_search_recipesAlbert Heijn: Search RecipesA
Read-only

Search Allerhande, Albert Heijn's recipe collection. Dutch search terms work best, e.g. 'pasta', 'stamppot', 'kip curry'; a recipe matches when it has all the words. filters narrows results to recipes matching all of them, e.g. ['vegetarian', 'quick', 'italian']: a label (easy, quick, budget, healthy, light), course (main_course, lunch, dessert, ...), dish (pasta, soup, salad, ...), main ingredient (meat, fish, ...), diet (vegan, gluten_free, ...), occasion, season, cooking method (oven, airfryer, ...) or cuisine (italian, asian, ...). query may be left out to browse by filters alone. sort orders results: relevance (default), newest, popular. Returns id, title, url, cook_minutes, servings, courses, nutri_score, rating, and corrected_query when AH fixed a typo. Use the id with ah_get_recipe for ingredients and steps. When you mention a product or recipe from the result, link its name to its url.

Inputs: sort, limit, query, filters. Returns: total, recipes, corrected_query

ah_search_storesAlbert Heijn: Search StoresA
Read-only

Find Albert Heijn stores near a Dutch postal code. If no postal_code is given, uses the address from the member profile and lists the member's favourite store (set in the AH app) first. The favourite store is marked favorite: true. Returns store id (use this for ah_get_last_chance_items), name, type, and address.

Inputs: postal_code. Returns: stores

ah_update_cart_itemAlbert Heijn: Update Order ItemA
Destructive

Set the quantity of a product in the active Albert Heijn delivery order. Requires an order (started by choosing a delivery slot in the AH app or on ah.nl, which moves the shopping list into it); to collect products before that, use ah_add_to_shopping_list. Use product_id from ah_search_products or ah_get_cart. Set quantity=0 to remove the item (or use ah_remove_from_cart).

Inputs: quantity (required), product_id (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 37 tools

    Disambiguation4/5

    Most tools target clearly distinct resources and actions, and the descriptions go out of their way to delimit overlapping surfaces (e.g. shopping list vs cart, search_products vs get_bonus_offers, get_products vs get_product_alternatives). A few boundaries require careful reading—search_products with bonus=true, get_bonus_offers, get_frequent_items, and category browsing all surface products—but descriptions keep them resolvable.

    Naming Consistency5/5

    Every tool follows the same ah_<verb>_<noun> snake_case convention (ah_search_products, ah_add_to_shopping_list, ah_get_order_details, ah_activate_personal_offer). The prefix and verb-first pattern are uniform across all 37 tools, with no camelCase or stylistic mixing.

    Tool Count3/5

    37 tools is heavy and exceeds the comfortable range, but the domain is genuinely broad (products, shopping list, cart, orders, recipes, meal plan, bonus, receipts, favorites, auth), so most tools earn their place. It sits at the upper edge of justified rather than excessive, but the count still strains scannability.

    Completeness5/5

    The surface covers near-full lifecycle for every resource: product search/details/alternatives/categories, complete shopping list and cart lifecycles, orders and receipts with list+detail, favorite lists CRUD, bonus and personal offers with activation, recipes and meal plan, plus auth/profile/stores/delivery slots. The only omissions (slot booking, direct cart-add) are explicitly impossible by AH platform design.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables querying live offers and prices from 10 Dutch supermarket chains through a single normalised JSON API. Exposes 26 curated tools, including product search and category lookups, over stdio or authenticated Streamable HTTP.
      20
      1
      MIT
    • 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 shop groceries across Rohlik Group platforms by searching products, managing carts, and accessing account, order, delivery, and discount information. It also offers smart shopping features that suggest meals and frequent items based on order history.
      -
    • 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