An MCP server that lets Claude do the tedious half of the weekly grocery order on E.Leclerc Drive: find the drive, search the shelves and the offers, remember the usual products, fill the cart. It stops there. No tool validates the cart, books a slot or pays; I check the cart and finish on the site myself. It works through my own Chrome, with a profile of its own that I log into once.
Source: https://github.com/lborruto/mcp-leclerc-drive
You Ajoute à mon panier : 2 packs de lait demi-écrémé, du beurre doux et des petits pois surgelés.
Claude ▸ search_product × 3 ▸ add_many (3 produits)
3/3 ajout(s) réussi(s) :
✓ Lait demi-écrémé UHT Délisse Brique - 6x1L (id=2612) +2 → 2 au panier
✓ Beurre Extra fin Les Croisés Doux - 82% MG - 250g (id=2111) +1 → 1 au panier
✓ Petits Pois Notre Jardin 600g (id=87001) +1 → 1 au panier
skunkobi/mcp-leclerc-drive did the hard part: it mapped the site (server-rendered ASP.NET pages with product records embedded as JSON, a single cart endpoint taking absolute quantities, a separate store-locator API) and found the only way past DataDome's active mode, which is to be a real browser. Then it stopped being maintained, with two open bug reports that broke it for many stores.
Before using it with my own account I audited it. The code was clean, but a few things I would not run as they were:
add_to_cart sent the quantity as Leclerc's absolute target, so "add 2" to a line of 2 left it at 2.So I took it over as a standalone repository (MIT, history kept, credited), fixed it, hardened it, and set it up like my other projects.
Claude Code ── stdio (MCP) ──▶ mcp-leclerc-drive (Node)
│ one request at a time, 1 s + jitter apart
│ CDP over 127.0.0.1:9333, the server's own tab
▼
Chrome, dedicated profile (~/.mcp-leclerc-drive/chrome)
│ fetch() runs inside the page: real cookies,
│ real TLS fingerprint, DataDome's challenge solved
▼
fdN-courses.leclercdrive.fr · www · api-recherchemagasins
set_store, the environment, the saved settings). CI also scans the code and the build for any host outside it.-secure twin, which an in-page fetch cannot follow (re-navigate and retry once).diagnostic tool gives a report that is safe to paste in an issue.node:vm sandbox with a same-origin-only fetch, plus a simulated cart. An independent review pass found races (two parallel adds losing one, a set_store landing mid-request) that now have tests.main, and never on npm (the name there is still upstream's 0.3.0).You need Google Chrome and a Leclerc Drive account. In Claude Desktop, open the .mcpb file of the latest release: no terminal needed. In Claude Code (Node.js 22+):
claude mcp add --scope user leclerc-drive -- npx -y \
--package=https://github.com/lborruto/mcp-leclerc-drive/releases/download/v0.5.0/mcp-leclerc-drive-0.5.0.tgz \
mcp-leclerc-driveAsk Claude for the drives around your postcode: a Chrome window opens, log into Leclerc Drive there and choose your drive, then set_store with the id it showed. From then on, « ajoute 2 packs de lait et du beurre » fills the cart, and you check out on the site. The README has the clone-based install, other clients' configuration and the settings; there is a French one too.
Created 2026-11-01T15:15:01+01:00, updated 2026-11-11T16:26:19+01:00 · History · Edit