About Delhaize receipts
Delhaize receipts is an unofficial MCP server and CLI for retrieving a user's own Delhaize Belgium receipts and weekly promotions. It uses a headless browser, reuses a user-created login session, and saves files without handling passwords or transcribing receipts.
Key features
- 01Check saved login status
- 02List recent receipts
- 03Fetch new receipt images
- 04Backfill missing receipt photos
- 05Save weekly promotion pages
Use cases
- 01Collect new receipts for personal records
- 02Recover missing receipt images
- 03Save weekly promotions for later review
MCP support
The MCP server exposes tools to check login status, list and fetch receipts, backfill images, and save promotion pages. The same actions are also available through the `delhaize-receipts` CLI.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
uvx delhaize-mcpDELHAIZE_DATA_DIRFolder for receipts_all.json and the saved images (default ~/.delhaize-mcp/data)Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
5Saved tool list · updated 3w ago
This tool takes no parameters.
Details
From the project READMEdelhaize-mcp
An unofficial Model Context Protocol server that lets an AI assistant fetch your own Delhaize (Belgium) till receipts and this week's promotions, using its own headless browser, without driving your everyday browser and without ever seeing your password.
Unofficial and not affiliated with or endorsed by Delhaize. It reads only your own account, at your request, the way you would read it yourself. Check that your use fits Delhaize's terms of use, keep the request rate low, and do not use it to collect other people's data.
What it does
| Tool | What it does | Writes |
|---|---|---|
delhaize_auth_status | Is the saved login still valid? | nothing |
delhaize_list_receipts | Lists recent receipts and flags which are not in your record yet | nothing |
delhaize_fetch_new_receipts | Saves the image of each new receipt | data/receipts_inbox/ |
delhaize_backfill_images | Saves the missing photos of receipts already in your record | data/receipts_backfill/ |
delhaize_fetch_promotions | Saves the raw pages of the weekly promotions listing | data/promos_inbox/<date>/ |
It never transcribes items, never edits your record, and never handles your password. It only puts files on disk. Reading the images and recording them is left to you or your assistant, ideally with a check that each receipt's lines sum to its printed total.
Receipts are identified by (date, store, total), so nothing is fetched twice.
Requirements
- Python 3.10+
- A Delhaize account with receipts linked to your loyalty card
Install
pip install delhaize-mcp
python3 -m playwright install chromium
This gives you two commands: delhaize-mcp (the MCP server) and delhaize-receipts (the same actions from the command line).
Set up
-
Log in once. A browser window opens, and you sign in yourself:
delhaize-receipts loginThe session is saved in
~/.delhaize-mcp/profile(or setDELHAIZE_PROFILE). Later runs reuse it headlessly. If it lapses, runloginagain. That folder holds your session cookies: never commit or share it. -
Choose a data folder (optional). By default everything is written to
~/.delhaize-mcp/data. SetDELHAIZE_DATA_DIRto use another folder. Your record of receipts isreceipts_all.jsonin that folder, a JSON list such as:[{"date": "2026-08-11", "store": "Delhaize Centre", "total": 11.11, "image": "photos/2026-08-11.jpeg"}]imageis optional. A receipt without an existing image is whatbackfilllooks for. -
Connect it to your assistant.
Claude Code:
claude mcp add delhaize-receipts -- delhaize-mcpClaude Desktop (
claude_desktop_config.json):{ "mcpServers": { "delhaize-receipts": { "command": "delhaize-mcp", "env": {"DELHAIZE_DATA_DIR": "/path/to/your/data"} } } }If the app cannot find
delhaize-mcp, use its full path (which delhaize-mcpshows it).
Command line
The same actions work without an assistant:
delhaize-receipts status
delhaize-receipts list --months 1 # this month and last
delhaize-receipts fetch --months 1
delhaize-receipts backfill --months 3
delhaize-receipts promos
How it works
Delhaize renders each receipt as an image inside a client-side app, so the server lets the real page render in a headless Chromium (Playwright) and reads the finished page, exactly as a person would. All parsing rules (French dates, euro amounts, de-duplication, file naming) live in src/delhaize_mcp/core.py, which has no browser dependency and is fully unit-tested.
Tests
No browser or network needed:
python3 tests/test_core.py
python3 tests/test_server.py
Privacy
- Nothing leaves your machine except the normal page requests to delhaize.be.
- No password is read or stored. The login is a browser profile you create yourself.
- Your login and data live in
~/.delhaize-mcp, outside the code, so they never end up in a repository.
Limitations
- Built against the French-language Belgian site (
delhaize.be/fr). Page changes on Delhaize's side can break it; the parsers are deliberately forgiving, and the tools report what they missed rather than failing silently. - The promotions capture saves raw page data only; interpreting it is up to you.
Licence
MIT. See LICENSE.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.