mcp-leclerc-drive
An MCP server for shopping E.Leclerc Drive from Claude: find/select a store, search products, and manage your cart without checking out.
Find nearby E.Leclerc drives by postcode or town, then select and remember the active store.
Search the selected drive’s catalogue by keyword, with price, price per kilo/litre, pack size, family, ratings, offers, stock, and quantity already in cart; filter to available products.
Add one product or up to 30 products at once, set exact quantities, and remove items.
View the full cart and its total.
It stops at the cart: no checkout, slot booking, ordering, or payment.
Integrates with E.Leclerc Drive to find nearby drive stores, select a store, search the grocery catalogue with price and stock details, add products to the cart individually or in bulk, update quantities, remove items, and read the cart and total. It stops at cart management and does not check out, book slots, or pay.
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., "@mcp-leclerc-drive Ajoute 2 packs de lait demi-écrémé, du beurre doux et des petits pois surgelés à mon panier"
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.
Tool output from live runs on 1 and 11 November 2026 (store, prices and offers of those days), shortened to fit.
What it does
Finds your drive. By postcode or town, nearest first, then remembers the one you pick.
Searches the shelves. Price, price per kilo or litre, pack size, family, customer rating, instant discounts, stock, and what is already in your cart. Cheapest first, or cheapest per kilo first, if you ask.
Fills the cart. Add one product or up to 30 in one go, set a quantity, remove a line, read the cart and its total. Every change is confirmed by Leclerc Drive; anything it kept short (stock, limits) is said.
Remembers your usual products. « Mémorise ce lait comme mon lait habituel » : next week, « ajoute mon lait » needs no search. Kept on your computer only.
Stops at the cart. No tool validates the cart, books a slot, orders or pays. You check the cart and finish on the site, as usual.
Through your own Chrome. The server opens a Chrome window with its own profile; you log into Leclerc Drive there once and it stays logged in. Requests go out one at a time, spaced like a person's.
French, like the site: the tools answer in French; ask Claude in any language.
Related MCP server: RappiMCP
Security
Read this before you install.
It never sees your password. You log in yourself, in the Chrome window it opens. Your session stays in that dedicated Chrome profile (
~/.mcp-leclerc-drive/chrome); the server never reads, stores or logs a cookie, a password or a 2FA code.It only talks to Leclerc Drive. Every page and request is checked against a short list of
leclercdrive.frhosts, even after redirects. No telemetry, no other site.Your main Chrome is never touched. The server refuses to use your everyday Chrome profile, and never connects to a Chrome it did not start.
Cart changes are real. It is your Leclerc cart. Product names come from the site and are shown to the model as data; check the cart before you check out.
While it runs, the window is drivable from this computer. Chrome listens on a local debug port (127.0.0.1:9333) so the server can drive it; another program running as you on this computer could too. Close the window when you are done shopping.
The details, and how to report a vulnerability: SECURITY.md.
Get started
You need: Node.js 22 or later, Google Chrome, a Leclerc Drive account, and an MCP client such as Claude Code or Claude Desktop.
1a. Claude Desktop, no terminal: download mcp-leclerc-drive-0.5.0.mcpb from the
latest release and open it (or
drag it into Claude Desktop's Settings › Extensions), then go to step 2.
1b. Claude Code, from the latest release (built and attested by GitHub Actions):
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-driveNot
npx mcp-leclerc-driveon its own: that name on npm is the original, unmaintained 0.3.0, without these fixes and checks. This project is never published to npm. To check the tarball was built by this repository's release workflow:gh attestation verify mcp-leclerc-drive-0.5.0.tgz -R lborruto/mcp-leclerc-drive.
Or from a clone, to read the code first or follow main:
git clone https://github.com/lborruto/mcp-leclerc-drive.git && cd mcp-leclerc-drive
npm ci # also builds dist/
claude mcp add --scope user leclerc-drive -- node "$PWD/dist/index.js"2. Log in once. Ask Claude something that needs the site (« trouve les drives autour de 74100 »). A Chrome window opens: log into Leclerc Drive in it and choose your drive. Leave the window open while you shop; your login is kept for next time.
3. Pick your drive in Claude: « find_stores 74100 », then « set_store 027411 » with the id it shows. The shopping works on the drive the Chrome window is logged into.
4. Shop. « Ajoute 2 packs de lait et du beurre », « qu'y a-t-il dans mon panier ? », « enlève
le beurre ». Or hand over the whole list with the courses prompt (in Claude Code:
/mcp__leclerc-drive__courses). Then open the cart on leclercdrive.fr and check out yourself.
Other clients (or Claude Desktop by hand): add it to the client's MCP configuration, for
example claude_desktop_config.json:
{
"mcpServers": {
"leclerc-drive": {
"command": "npx",
"args": [
"-y",
"--package=https://github.com/lborruto/mcp-leclerc-drive/releases/download/v0.5.0/mcp-leclerc-drive-0.5.0.tgz",
"mcp-leclerc-drive"
]
}
}
}Tools
Tool | What it does |
| Drives near a postcode or town, nearest first, with the id to pick one. |
| Choose the drive (remembered across sessions) / show it. |
| Search the drive's catalogue: price, per-kilo price, size, family, rating, offers, stock, already in cart. Sorted by relevance, price or per-kilo price. |
| The products on offer in your drive, filtered by words if you give some. |
| Add units of one product, on top of what the cart holds. |
| Add up to 30 products in one go; one failure does not stop the rest. |
| Set a line to an exact quantity (0 removes it). |
| Remove a line. |
| The cart, line by line, with the total. |
| Your usual products: a short name for a product, per drive, kept on your computer. |
| Checks the install (versions, Chrome, drive, session). Safe to paste in a bug report. |
And one prompt, courses: give it your shopping list, it fills the cart (usual products first)
and stops there.
Settings
Optional environment variables, set in the MCP client's configuration (claude mcp add -e NAME=value …):
Variable | Default | What it does |
| Chrome's usual place | The Chrome to start, if yours is elsewhere. |
|
| The server's own Chrome profile, where your Leclerc login is kept. Never your main profile. |
|
| Chrome's local debug port. |
| none | A drive to start with, instead of |
Throttling and retries have their own settings; see CONTRIBUTING.md.
Good to know
One drive at a time. Your Leclerc session is tied to the drive chosen on the site.
find_storesmarks the drive the Chrome window is on, andset_storewarns when you pick another one: to shop there, choose it in the Chrome window too; otherwise Leclerc answers with an expired-session page.Logged out? The cart tools say so when nobody is logged in in the Chrome window: the cart they fill is then a visitor's, not your account's.
Blocked or logged out? If a tool says Leclerc Drive blocked it or the session expired, reload the page in the server's Chrome window (log in again if asked) and retry. Keep the pace of a person: one shopping list at a time.
Quantities are checked by Leclerc. If a product is short or limited, the tool says how many went into the cart. Prices are the site's at the time of the search.
Relays have their own id.
find_storeslists truck and pedestrian relays as027411-027499: they share their drive's number.Shop from one Claude session at a time. Several sessions share the same Chrome and login, each in its own tab, but each paces only its own requests.
Upgrading
In Claude Desktop, open the new release's .mcpb file. In Claude Code, change the version in the claude mcp add command (remove the old entry with claude mcp remove leclerc-drive), or git pull && npm ci in your clone. What changed is in
CHANGELOG.md. Your login and your drive are kept.
Help and docs
I want to… | Read |
Know what it protects and what it does not | |
Report a vulnerability, privately | |
Hack on it, run the tests, see how it works | |
See how the Leclerc Drive site was mapped | |
See what changed in each version |
Found a bug? Open an issue with the
output of the diagnostic tool (« lance le diagnostic ») and the error text. Never your cookies, account, address or
screenshots of your logged-in account.
Licence and credits
MIT, see LICENSE. Started from skunkobi/mcp-leclerc-drive 0.3.0 (MIT), which mapped the site and found how to work through a real Chrome; this project continues it, with its history.
Not affiliated, no warranty
An independent, unofficial project. It is not made, endorsed or supported by E.Leclerc, DataDome, Google or Anthropic; the names are theirs, used here only to say what it works with. It drives a website that can change at any time, with no warranty of any kind: check your cart before you order.
Available Tools
14 toolsadd_manyAjouter plusieurs produitsA
Ajoute plusieurs produits au panier, l'un après l'autre (30 au plus), chacun en plus de ce qui est déjà au panier. Un échec n'arrête pas les suivants (sauf un blocage de Leclerc Drive). Retourne le résultat de chaque ajout et le panier final.
Inputs: items (required).
add_to_cartAjouter au panierA
Ajoute quantity unités d'un produit au panier, en plus de ce qui y est déjà. Pour fixer une quantité exacte, utilise update_quantity.
Inputs: product_id (required), quantity.
browse_offersVoir les promotionsARead-only
Liste les produits en promotion dans le magasin sélectionné, avec les mêmes informations que search_product. query filtre par mots du libellé ou de la famille (ex. 'café', 'yaourt'). La première lecture est lente (page lourde), puis gardée 10 minutes.
Inputs: sort, limit, query.
diagnosticDiagnosticARead-only
Vérifie l'installation : version du serveur, Node, Chrome, magasin actif, et si la session Leclerc Drive répond (une lecture du panier). Le résultat ne contient ni compte, ni panier, ni nom d'utilisateur : il peut être collé dans un rapport de bug.
Inputs: no named parameters.
find_storesTrouver un driveARead-only
Recherche les drives E.Leclerc proches d'un code postal ou d'une ville, triés par distance. Retourne pour chacun : nom, identifiant (à passer à set_store), type de service (drive/relais/livraison) et distance.
Inputs: query (required).
forget_usualOublier un produit habituelADestructiveIdempotent
Oublie le produit habituel mémorisé sous ce nom pour le magasin actif. Le panier n'est pas touché.
Inputs: name (required).
get_cartVoir le panierARead-only
Affiche le contenu complet du panier avec le total.
Inputs: no named parameters.
get_storeMagasin actifARead-only
Affiche le magasin sélectionné (id, hôte) et l'état de la fenêtre Chrome du serveur.
Inputs: no named parameters.
list_usualsProduits habituelsARead-only
Liste les produits habituels de l'utilisateur pour le magasin actif : un nom court et l'id du produit, à passer à add_to_cart ou add_many sans refaire de recherche. Mémorisés sur cet ordinateur uniquement.
Inputs: no named parameters.
remove_from_cartRetirer du panierADestructiveIdempotent
Retire complètement un produit du panier.
Inputs: product_id (required).
save_usualMémoriser un produit habituelAIdempotent
Mémorise un produit sous un nom court pour le magasin actif (remplace le produit déjà mémorisé sous ce nom). À utiliser quand l'utilisateur dit qu'il prend toujours ce produit.
Inputs: name (required), product_id (required).
search_productRechercher des produitsARead-only
Recherche des produits dans le catalogue Leclerc Drive du magasin sélectionné. Retourne libellé, prix, prix au kilo/litre, format, famille, avis, offres, disponibilité, quantité déjà au panier et l'id à utiliser pour add_to_cart. Les produits disponibles d'abord.
Inputs: query (required), sort, limit, only_available.
set_storeChoisir le magasinAIdempotent
Sélectionne le magasin actif (et le mémorise pour les prochaines sessions). Utilise l'id renvoyé par find_stores. Les courses ne fonctionnent que sur le drive où la fenêtre Chrome du serveur est connectée.
Inputs: store_id (required), host.
update_quantityFixer une quantitéADestructiveIdempotent
Fixe la quantité exacte d'un produit dans le panier (0 le retire).
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
Scored across 14 tools
Each tool has a distinct target: cart reads/writes, catalogue search, usuals, and store selection are cleanly separated. Minor overlap exists between remove_from_cart and update_quantity(0), and between add_many and repeated add_to_cart, but the descriptions explicitly resolve these.
Almost all tools follow a consistent snake_case verb_noun pattern (add_to_cart, get_cart, find_stores, set_store, list_usuals). The only outliers are the bare nouns diagnostic and browse_offers, which still read clearly.
14 tools is well within a healthy range for a grocery-drive client with cart, search, store, and usuals sub-domains. Every tool earns its place, including add_many for batch adds and diagnostic for setup troubleshooting.
Cart lifecycle is fully covered (add, add_many, update_quantity, remove_from_cart, get_cart), plus search, offers, store selection, and usuals CRUD. Gaps are minor: no clear-cart operation and no checkout/order-placement tool to finish the shopping flow.
Maintenance
Related MCP Connectors
Turn any shopping list into a ready-to-checkout grocery cart across 26 European supermarkets.
Search live store shelves, verify delivery windows, and run instant AI agent checkouts.
Run your online shop from Claude: orders, prices, sales, catalogue and design, confirmed by you.
Search Rakuten Ichiba products and compare prices via Claude. Zero setup, no API key needed.
Related MCP Servers
- FlicenseAqualityCmaintenanceEnables Claude to search products, build a shopping cart on Selver.ee, and open it in the browser for checkout.423-
- AlicenseAqualityDmaintenanceEnables Claude to browse stores, search products, manage the cart, and open checkout on Rappi Chile through natural language, automating grocery and delivery purchases.121MIT
- AlicenseAqualityBmaintenanceEnables product search and basket management for Intermarché Drive through a visible Chromium browser, using the browser session to handle anti-bot measures. Provides tools to search products, view and modify the basket, and set substitutions, while checkout and payment remain on the website.373MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude to do grocery shopping through a logged-in drive session, including product search with labels, Nutri-Score and price per kilo, weekly promotions, usual products, purchase habit analysis, Open Food Facts quality checks, and cart quantity management.1MIT