
Delhaize receipts
io.github.SHIMABEIGIv0.1.0Updated Oct 1, 2026
Fetch your own Delhaize (Belgium) till receipts and weekly promotions with a headless browser.
Overview
Fetches your own Delhaize (Belgium) till receipts and weekly promotions into local files using a headless browser.
- What it does
- An unofficial MCP server that logs into your own Delhaize account with a saved browser session and saves receipt images and weekly promotion pages to disk. Tools cover checking login status, listing recent receipts, fetching images of new receipts, backfilling missing receipt photos, and capturing the weekly promotions listing. It never transcribes items, edits your record, or handles your password; it only writes files. Receipts are identified by date, store and total so nothing is fetched twice.
- When to use it
- Use it when you want an assistant to pull your own Delhaize Belgium receipts and promotions into a local folder for later reading or record-keeping. It suits users who already have a Delhaize account with receipts linked to their loyalty card and are comfortable running a local Python tool.
- Requirements
- Python 3.10+ and a Delhaize account with receipts linked to your loyalty card. Install the PyPI package and Playwright Chromium. A one-time interactive login creates a browser profile; the optional DELHAIZE_DATA_DIR environment variable sets the data folder. Network access to delhaize.be is needed.
Installation
In SourceWeft
- Open Delhaize receipts in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
delhaize-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
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
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:
The 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:imageis optional. A receipt without an existing image is whatbackfilllooks for. -
Connect it to your assistant.
Claude Code:
Claude Desktop (
claude_desktop_config.json):If the app cannot find
delhaize-mcp, use its full path (which delhaize-mcpshows it).
Command line
The same actions work without an assistant:
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:
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.
Source: README.md at commit c8b81bf
Tools
0Version history
1- v0.1.0LatestOct 1, 2026