mcp-carrefour-drive
Provides tools for Carrefour Drive: login, store selection by postal code, product search with prices and promotions, product details (nutrition, ingredients), cart management (add, remove, update quantity), and delivery slot reservation (without payment).
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-carrefour-drive find lactose-free milk and add 1 to my cart"
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.
mcp-carrefour-drive
MCP server for Carrefour Drive — Search products, manage your cart, check delivery slots, and order groceries via AI assistants.
Built with Playwright (headless Chrome) since Carrefour doesn't provide a public API.
Features
Login/Logout — Authenticate with your Carrefour account, session persisted via cookies
Store selection — Find and select your Carrefour Drive by postal code
Product search — Search products with prices, promotions, and availability
Product details — Get nutrition facts, ingredients, allergens
Cart management — Add, remove, update quantities
Delivery slots — View available pickup slots and reserve one
Note: This MCP does NOT handle payment. You validate and pay manually on the Carrefour website.
Related MCP server: mcp-leclerc-drive
Installation
npm install mcp-carrefour-driveOr clone and build:
git clone https://github.com/maximeallanic/mcp-carrefour-drive.git
cd mcp-carrefour-drive
npm install
npx playwright install chromium
npm run buildConfiguration
Environment variables
Variable | Description | Required |
| Your Carrefour account email | Yes (for login) |
| Your Carrefour account password | Yes (for login) |
| Directory for cookies/session data | No (default: |
Claude Code / Claude Desktop
Add to your .mcp.json or claude_desktop_config.json:
{
"mcpServers": {
"carrefour-drive": {
"command": "npx",
"args": ["-y", "mcp-carrefour-drive"],
"env": {
"CARREFOUR_EMAIL": "your-email@example.com",
"CARREFOUR_PASSWORD": "your-password"
}
}
}
}Docker
Since this uses headless Chrome, you need to install Chromium in your Docker container:
RUN npx playwright install --with-deps chromiumAvailable Tools
Tool | Description |
| Login to Carrefour with email/password |
| Check if currently logged in |
| Logout from Carrefour |
| Select a Carrefour Drive by postal code |
| Search for products |
| Get detailed product info (nutrition, ingredients) |
| Add a product to your cart |
| Remove a product from your cart |
| Update product quantity in cart |
| View current cart contents and total |
| List available pickup time slots |
| Reserve a pickup slot |
Example usage
> Search for "lait demi-écrémé"
> Add the first result to my cart, quantity 2
> What's in my cart?
> Show me available pickup slots for tomorrowLimitations
Carrefour's website may change at any time, breaking selectors
Rate limiting may apply — the server adds reasonable delays between actions
No payment automation (by design)
Requires a headless Chrome environment (not compatible with minimal Docker images)
License
MIT
Available Tools
14 toolsadd_to_cartD
Inputs: productId (required), quantity.
check_loginD
Inputs: no named parameters.
confirm_and_payD
Inputs: no named parameters.
get_available_slotsD
Inputs: no named parameters.
get_cartD
Inputs: no named parameters.
get_checkout_summaryD
Inputs: no named parameters.
get_product_detailsD
Inputs: productUrl (required).
loginD
Inputs: email (required), password (required).
logoutD
Inputs: no named parameters.
remove_from_cartD
Inputs: productId (required).
search_productsD
Inputs: query (required), limit.
select_slotD
Inputs: slotId (required).
select_storeD
Inputs: postalCode (required), storeName.
update_cart_quantityD
Inputs: quantity (required), productId (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 targets a clearly distinct action or resource: authentication (login/check_login/logout), product search and details, cart operations (add/remove/update/get), slot selection, checkout, and store selection. No two tools appear to do the same thing, and boundaries are easy to infer from names.
All names use snake_case consistently, with a predictable verb_noun pattern (search_products, add_to_cart, get_available_slots, confirm_and_pay). The bare verbs login and logout are natural exceptions that do not break consistency.
14 tools are well-scoped for an end-to-end grocery drive ordering workflow. Each tool has a clear role in the flow, and the count is neither thin nor bloated.
The surface covers authentication, product discovery, cart lifecycle, slot selection, checkout, and store selection—the core of a drive order. Missing order history/status or payment method management are minor gaps that agents can likely work around.
Maintenance
Related MCP Connectors
Hosted Shopify MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
One MCP server for the services your AI needs: memory, files, Microsoft 365, kanban and more.
Hosted MCP for e-commerce: live product catalog, stock, and pricing for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server that connects Carrefour Drive to Claude and other MCP clients, enabling product search with real prices, nutriscore, availability, and natural language cart management.MIT
- AlicenseAqualityDmaintenanceMCP server for E.Leclerc Drive that enables searching products, managing a cart, and preparing grocery orders natively through natural language.8114 npm31MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for grocery-related web automation using Playwright, enabling AI assistants to interact with grocery websites.ISC
- AlicenseNot gradedqualityCmaintenanceUnofficial MCP server and CLI for controlling Carrefour Drive on carrefour.fr through a persistent Camoufox browser profile, enabling store/session checks, product search and inspection, cart reading, and cart additions without placing orders or making payments.MIT