Skip to main content
Glama
Carrefour Drive MCP

Carrefour Drive MCP

Carrefour Drive MCP — 为你的 AI 代理提供生鲜杂货购物能力

适用于 Carrefour Drive(carrefour.fr)的 MCP 服务器。 让 Claude、Cursor 或任何 Model Context Protocol 客户端在你的 Carrefour 账户上搜索法国生鲜杂货目录、构建购物车、 选择 Drive 自提或配送时段、查看积分和过往收据。

48 个工具。 其中 43 个是真实的 carrefour.fr API 端点,以 JSON 描述并由通用执行器运行, 另有 5 个会话管理工具。新增一个端点只需放入一个 JSON 文件——无需编写代码。

"What did I buy last month?"            → get_loyalty_order_receipts
"Refill my usual weekly groceries."     → get_frequent_purchases + add_item_to_cart
"Cheapest organic pasta under 2 €?"     → search_products
"Book the Saturday morning Drive slot." → get_delivery_timeslots + select_cart_delivery_slot
  • 独立运行 — 无需 spectral 二进制文件、无需外部网关、无需 API 密钥。克隆、构建、运行。

  • 可穿透 Cloudflare — 每次调用都从真实的 Chromium 页面发出,因为除此之外 没有任何方式能拿到 200。

  • 保持登录状态 — 你只需在浏览器窗口中登录一次;服务器会通过 OAuth2 SSO 循环 自动续期会话。


目录


Related MCP server: grocery-mcp

安装

无需克隆任何内容。Node.js 20+ 是唯一的前置条件(原生 fetch、 FormData、node:test)。

npx -y github:maximeallanic/CarrefourDriveMCP

这一条命令即可获取、构建并在 stdio 上启动服务器——首次 运行还会下载它用作 HTTP 传输层的 Chromium。大多数情况下你无需 亲自输入这条命令:你把它放进 MCP 客户端配置中 (下一节),客户端会替你运行它。

更希望全局安装一次?

npm install -g github:maximeallanic/CarrefourDriveMCP
carrefour-drive-mcp

你的会话、浏览器配置文件和日志存放在 ~/.carrefour-drive-mcp (设置了 $XDG_DATA_HOME 时为 $XDG_DATA_HOME/carrefour-drive-mcp), 因此升级永远不会让你掉线。可通过 CARREFOUR_DATA_DIR 覆盖。

git clone https://github.com/maximeallanic/CarrefourDriveMCP.git
cd CarrefourDriveMCP
npm install     # builds, and downloads the Chromium transport
node dist/index.js

源码检出会将数据保存在仓库自身的 data/ 目录中。

连接到你的代理

Claude Code

claude mcp add carrefour-drive -- npx -y github:maximeallanic/CarrefourDriveMCP

然后在任何会话中:

> Log me in to Carrefour        (runs carrefour_browser_login)
> Add 2 L of semi-skimmed milk to my Drive cart

Claude Desktop

编辑 claude_desktop_config.json:

  • macOS — ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows — %APPDATA%\Claude\claude_desktop_config.json

  • Linux — ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "carrefour-drive": {
      "command": "npx",
      "args": ["-y", "github:maximeallanic/CarrefourDriveMCP"]
    }
  }
}

重启 Claude Desktop;Carrefour 工具会出现在工具菜单中。

在 Windows 上,使用 "command": "cmd" 并搭配 "args": ["/c", "npx", "-y", "github:maximeallanic/CarrefourDriveMCP"]。

Cursor、Windsurf、Zed、VS Code 及其他 MCP 客户端

任何通过 stdio 使用 MCP 的客户端都接受同样的两个字段:

{
  "command": "npx",
  "args": ["-y", "github:maximeallanic/CarrefourDriveMCP"]
}
  • Cursor — ~/.cursor/mcp.json(或项目中的 .cursor/mcp.json)

  • Windsurf — ~/.codeium/windsurf/mcp_config.json

  • VS Code / Copilot — .vscode/mcp.json,位于 "servers" 下

  • Zed — settings.json,位于 "context_servers" 下

已全局安装或已克隆?换成 {"command": "carrefour-drive-mcp"} 或 {"command": "node", "args": ["/absolute/path/to/dist/index.js"]}。

已有 Cookie?在 "env" 块中传入即可,无需登录: {"CARREFOUR_COOKIES": "…cookie header…"}。

登录

carrefour.fr 通过 Cookie 登录,背后还有 Cloudflare Turnstile 验证码和 OTP。因此登录是交互式的,只需一次:

  1. 让代理运行 carrefour_browser_login。

  2. 浏览器窗口会在 Carrefour 登录页面上打开。请自行输入邮箱、密码 和 OTP 验证码。

  3. 不要关闭窗口 — 服务器会检测 OAuth 循环的结束, 从内存中抓取会话 Cookie 并替你关闭窗口。

此后会话会自动静默续期:服务器会在经过身份验证的调用之前重放 SSO authorize → callback 重定向,在 401/403 之后也会如此, 并且每 30 分钟执行一次保活。只有当 SSO Cookie 本身过期时 (最长 24 小时,或空闲 60 分钟)你才需要重新登录——工具会明确提示。

随时用 carrefour_session_status 检查状态(verify: true 会发起 真实调用)。

会话工具

功能

carrefour_browser_login

打开窗口登录(验证码 + OTP)

carrefour_session_status

已存储的 Cookie、浏览器配置文件、SSO 剩余时间

carrefour_refresh_session

强制续期(很少需要——它是自动的)

carrefour_set_cookies

手动导入 Cookie(header、JSON 映射或 JSON 数组格式)

carrefour_clear_session

清除本地会话

对于 carrefour_set_cookies,只有 JSON 数组 格式携带 Cookie 域名——它是唯一能提供 c4iamsecuretk 的格式,没有它就无法 自动续期。

Cookie 存储位于 <data dir>/sessions/cookies.json(权限 0600), 每次启动时都会重新注入浏览器配置文件。

工具参考

搜索与目录 (无需账户)

工具

端点

必填参数

search_products

GET /s

q

autocomplete_search

GET /autocomplete

q

get_products_by_gtins

POST /products

gtins

get_products_by_query

GET /products/query/{query_id}

query_id

get_product_reviews

GET /product/{ean}/reviews

ean

get_navigation_tree

GET /navigation

—

get_marketing_placements

POST /api/marketing/{placement}

placement、searchTerm、categories、productFilters

get_donation_products

GET /donation

—

get_chat_preprompts

POST ocb.carrefour.fr/preprompts

modes、count、navigationCurrentPageTitle、navigationCurrentPageType

get_eligible_drive_stores

GET /api/eligibility/drive

latitude、longitude、postalCode、city

购物车与结算

工具

端点

必填参数

get_cart

GET /api/cart

—

add_item_to_cart

PATCH /api/cart

ean、counter、basketServiceId、subBasketType

add_item_to_cart_by_ean

PATCH /api/cart/items

ean、basketServiceId、subBasketType

apply_promo_code_to_cart

POST /api/cart/promo_code

code、facilityServiceId、subBasketType

simulate_cart_for_store

GET /api/cart/simulate

storeRef

get_delivery_timeslots

GET /api/timeslots

facilityServiceId

select_cart_delivery_slot

PUT /api/cart/slot

slotRef、storeRef

validate_checkout_slot

POST /api/checkout/{basket_service_type}/validate/slot

basket_service_type、deviceFingerPrintId

validate_checkout_summary

POST /api/checkout/{basket_service_type}/validate/summary

basket_service_type、deviceFingerPrintId

get_checkout_recommendations

GET /api/checkout/recommendations/{facility_id}/{basket_service}

facility_id、basket_service

submit_checkout_payment ⚠️

POST /api/checkout/payment

checkout_type、device_fingerprint_id、payments

⚠️ submit_checkout_payment 会发起真实扣款。它的四个参数 被捕获为查询字符串,而描述却暗示它们是 HTTP 头——在生产环境中使用前 请对照真实调用记录进行核实。

账户、订单与积分

工具

端点

必需参数

get_orders

GET /api/user/orders

—

get_last_orders

GET /api/user/orders/last

—

get_frequent_purchases

GET /mon-compte/achats-frequents

—

get_loyalty_balance

GET /api/user/secured/loyalty/balance

—

get_loyalty_cards

GET /api/user/secured/loyalty/my-cards

—

get_loyalty_coupons_dashboard

GET /api/user/loyalty/coupons-dashboard

—

get_loyalty_coupon_collection

GET /api/user/loyalty/coupon-collection

—

get_loyalty_order_receipts

GET /api/user/secured/loyalty/orders/receipts

loyaltyCardNumber, loyaltyCardType

get_loyalty_order_receipt_details

GET /api/user/secured/loyalty/orders/receipt/{gln}/{date_key}/{receipt_number}

gln, date_key, receipt_number

get_advantage_codes

GET /api/advantage-code

—

get_vignettes_products

GET /api/user/products/vignettes-products

—

get_olympic_games_prime

GET /api/user/loyalty/olympic-games/prime

—

get_account_kpis

GET /api/user/my-account/kpis

codes

get_user_consents

GET /api/user/my-account/consents

—

get_favorite_store

GET /api/favoritestore

—

get_store_information_inserts

POST /api/information-insert/stores/{store_id}

store_id, insert_ids

get_homepage_returning_banner

GET /api/homepage/returningBanner

—

get_personalized_recommendations

GET /api/user/recommendation/cdp

—

get_product_recommendations

GET /api/recommendations

context

购物清单

工具

端点

必需参数

get_shopping_lists

GET /api/shopping-lists

—

get_shopping_list

GET /api/shopping-lists-id/{list_id}

list_id

create_shopping_list

POST /api/shopping-lists/memo-list

title

为什么需要真实浏览器

carrefour.fr 位于 Cloudflare managed challenge(托管质询)之后,会对客户端进行指纹识别。从同一 IP 在同一天测得的结果如下:

客户端

GET /api/cart

fetch (undici)

403 cf-mitigated: challenge,在第一个请求时即被拦截

curl

前几次调用返回 200,随后变为 403

Chrome

200

无论怎样调整请求头都无法改变这一点:唯一可行的传输方式是浏览器。而且请求必须从页面内发出——Playwright 的 APIRequestContext 使用的是 Node HTTP 栈,会像 fetch 一样被拦截。

因此,服务器保持一个常驻的 Chromium,并让每个 API 调用都以 fetch 的形式在停留于目标源(origin)的页面内执行(每个源一个页面,这是出于 CORS 的限制)。它以**无窗口(windowless)**模式运行,但不是标准的无头模式:

启动模式

结果

headless: true(headless shell)

403——UA 暴露了 HeadlessChrome

headless: false

200

channel: 'chromium' + 掩蔽的 UA + --disable-blink-features=AutomationControlled

200,navigator.webdriver 为 false

最后一行就是实际发布所用的方式。

身份验证的工作原理

两套不同的 Cookie 系统:

域

作用

有效期

moncompte.carrefour.fr

ForgeRock SSO,Cookie c4iamsecuretk

最长 24 小时,空闲 60 分钟后失效

www.carrefour.fr

门店会话(HttpOnly Cookie)

短期有效,可续期

登录是交互式的,原因有两个限制:登录表单位于 Cloudflare Turnstile 验证码之后,而该验证码拒绝在 CDP 驱动的浏览器中通过验证;此外,c4iamsecuretk 是会话 Cookie,Chromium 永远不会将其写入磁盘。因此,窗口是一个普通的 Chromium,调试端口已打开,但在登录完成前不附加任何调试连接;服务器通过普通 HTTP 在 /json/list 上轮询标签页(未启用任何 CDP 域,因此不会留下自动化痕迹),当 OAuth 循环跳回门店页面的那一刻才附加连接,并从内存中读取 Cookie。

此后的续期只是一次普通的导航——Chromium 会跟随重定向并自行设置 Cookie:

GET moncompte.carrefour.fr/iam/oauth2/CarrefourConnect/authorize?client_id=…&redirect_uri=https://www.carrefour.fr/login/check
  └─302─► www.carrefour.fr/login/check?code=…   (the BFF exchanges the code)
      └─302─► www.carrefour.fr/                  (fresh session cookies)

执行器的工作原理

tools/*.json ──► loader (validation) ──► params (JSON Schema ➜ zod) ──► MCP tools/list
                                     └─► resolve ($param ➜ URL/query/headers/body)
                                              └─► http.service (cookies + rate limit + fetch)

tools/ 中的每个文件都是自描述的:

{
  "name": "add_item_to_cart",
  "parameters": { "type": "object", "properties": { … }, "required": [ … ] },
  "request": {
    "method": "PATCH",
    "url": "https://www.carrefour.fr/api/cart",
    "headers": { … },
    "query": {},
    "body": { "items": [ { "ean": { "$param": "ean" }, … } ] },
    "content_type": "application/json"
  },
  "requires_auth": true
}

引擎(src/spec/):

  • 递归替换 headers、query 和 body 中的 {"$param": "name"} 节点,并保留原始类型(数字、布尔值、数组);

  • 丢弃没有实参的占位符,这样可选参数会从请求中消失,而不会被发送为 null;

  • 填充 URL 段 {basket_service_type}、{store_id}、……,并进行编码;当必需的段缺失时,会报出清晰的错误信息;

  • 将数组序列化为重复的查询键(codes[]=14&codes[]=15);

  • 根据 content_type 对请求体进行编码:JSON、x-www-form-urlencoded 或 multipart/form-data(boundary 交给 fetch 处理);

  • 应用带抖动的滑动速率限制,并附带浏览器请求头。

添加一个端点只需向 tools/ 中放入一个新的 JSON 文件,无需编写任何代码。

配置

参见 .env.example。主要变量:

变量

默认值

作用

CARREFOUR_COOKIES

—

会话 Cookie(header、JSON 映射或 JSON 数组)

CARREFOUR_COOKIE_FILE

—

JSON Cookie 导出文件的路径

CARREFOUR_DATA_DIR

~/.carrefour-drive-mcp(源码下的仓库 data/)

下方所有内容的写入根目录

CARREFOUR_SESSION_FILE

<data>/sessions/cookies.json

持久化的 Cookie 存储(cookie jar)

CARREFOUR_BROWSER_PROFILE

<data>/browser-profile

持久化的 Chromium 配置文件

CARREFOUR_KEEPALIVE_MINUTES

30

SSO 保活周期;0 表示禁用

CARREFOUR_OAUTH_CLIENT_ID

carrefour_onecarrefour_web

用于刷新的 OAuth2 客户端

CARREFOUR_OAUTH_REDIRECT_URI

https://www.carrefour.fr/login/check

BFF 回调地址

CARREFOUR_OAUTH_SCOPE

openid iam

请求的作用域

CARREFOUR_TOOLS_DIR

<project>/tools

JSON 工具定义目录

CARREFOUR_MAX_RESPONSE_CHARS

60000

对大响应的截断

REQUEST_TIMEOUT_MS

30000

HTTP 超时时间

RATE_LIMIT_REQUESTS / RATE_LIMIT_WINDOW_MS

10 / 60000

速率限制窗口

MIN_DELAY_MS / MAX_DELAY_MS

100 / 500

请求之间的抖动延迟

LOG_LEVEL, CARREFOUR_LOG_DIR

info, <data>

winston 日志(文件 + stderr,绝不输出到 stdout)

验证安装

从源码检出开始:

npm run build     # tsc
npm test          # build + unit tests (node:test)
npm run smoke     # build + real MCP stdio handshake + tools/list
npm run verify    # all three

测试覆盖 $param 替换、URL 段、查询字符串中的数组、三种请求体编码以及 cookie-jar 处理。冒烟测试会实际启动服务器,完成 JSON-RPC 握手并列出所有工具。

对 carrefour.fr 的网络调用不会自动测试——它们需要真实账号和有效的 Cookie。

常见问题

需要 API 密钥吗? 不需要。Carrefour 没有公开 API;本服务器驱动的是网站所使用的同一批私有端点,用的是你自己的会话。

在法国之外能用吗? 商品目录和门店都在法国(carrefour.fr)。对于某些 IP,Cloudflare 可能会采取更严格的策略。

密码会被存储吗? 不会。你在浏览器窗口中输入密码;只有 Cookie 会被持久化,存储在 ~/.carrefour-drive-mcp/sessions/cookies.json,权限为 0600。本仓库不保存任何凭据,data/ 和 .env 已在 gitignore 中。

它能下真实订单吗? 能——submit_checkout_payment 会发起真实扣款。请谨慎使用。

我可以添加端点吗? 在 tools/ 中放入一个 JSON 文件即可。参见执行器的工作原理。

支持哪些客户端? 任何通过 stdio 使用 MCP 的客户端都可以:Claude Code、Claude Desktop、Cursor、Windsurf、VS Code / Copilot、Zed、Continue,以及使用 MCP SDK 的自定义代理。

免责声明

非官方项目,与 Carrefour 无关联,未获得 Carrefour 的认可或支持。仅供在个人账号上用于个人和教育用途。请遵守 Carrefour 的服务条款,并相应地限制自己的请求频率。

许可证

MIT © Maxime Allanic

关键词:Carrefour MCP server · Carrefour Drive API · Model Context Protocol 杂货 · Claude Desktop MCP · Claude Code MCP server · Cursor MCP · 法国食品杂货购物AI代理 · courses en ligne · drive · liste de courses · fidélité Carrefour · MCP 购物车自动化。

Available Tools

48 tools
add_item_to_cartA

Adds or updates a product item in the authenticated user's cart on Carrefour France. Allows specifying the product EAN, desired quantity, the basket service (store/drive), and the sub-basket type (e.g. drive click-and-collect). Also accepts a tracking context to indicate the page type and ID from which the action was triggered. Returns updated cart totals and summary. (requires an authenticated Carrefour session)

Inputs: ean (required), counter (required), subBasketType (required), basketServiceId (required), +2 more.

add_item_to_cart_by_eanA

Adds a product to the authenticated user's cart on Carrefour France using the product EAN, a basket service ID, and a sub-basket type (e.g. drive click-and-collect). Also accepts a tracking context to indicate the page type and page ID from which the action was triggered. Returns updated cart totals and summary. (requires an authenticated Carrefour session)

Inputs: ean (required), subBasketType (required), basketServiceId (required), pageId, +1 more.

apply_promo_code_to_cartA

Applies a promotional/discount code to the authenticated user's cart on Carrefour France. Associates the promo code with a specific facility/store service and sub-basket type (e.g. drive click-and-collect). Returns a success confirmation or an error if the code is invalid or cannot be applied. (requires an authenticated Carrefour session)

Inputs: code (required), subBasketType (required), facilityServiceId (required).

carrefour_browser_loginA

Opens a browser window on the server profile so you can sign in to carrefour.fr. Finish the captcha and the emailed OTP, then close the window: the session — including the IAM SSO cookie that lets the server renew itself — stays in the profile. The login cannot be automated: Cloudflare Turnstile refuses to validate in a driven browser.

Inputs: no named parameters.

carrefour_clear_sessionA

Delete the locally stored Carrefour cookies.

Inputs: no named parameters.

carrefour_refresh_sessionA

Force a renewal of the www.carrefour.fr session from the stored IAM SSO cookie. Rarely needed by hand: authenticated requests already refresh and retry on their own.

Inputs: no named parameters.

carrefour_session_statusA

Report whether a Carrefour session is stored locally, and optionally verify it against the site.

Inputs: verify.

carrefour_set_cookiesA

Store your www.carrefour.fr session cookies so the other tools can act on your account. Accepts a raw cookie header ("a=1; b=2"), a JSON map, or a JSON array export (Playwright / EditThisCookie / DevTools). Get them from DevTools (F12) > Application > Cookies > https://www.carrefour.fr.

Inputs: cookies (required).

create_shopping_listA

Creates a new shopping list (memo-list type) for the authenticated user on Carrefour France. Accepts a title for the new list and returns the created list details including its ID, type, slug, item count, last updated date, and EANs. (requires an authenticated Carrefour session)

Inputs: title (required).

get_account_kpisA

Retrieves loyalty and financial KPI metrics for the authenticated user's account on Carrefour France. Each KPI is identified by a numeric code and returns a value (e.g. cumulative loyalty rewards earned in-store or online since the start of the current year). Useful for displaying account performance indicators on the loyalty/fidelity dashboard. Known codes include: 14 (cumulative in-store loyalty card rewards since the start of the year), 15 (cumulative drive/e-commerce and in-store loyalty discounts since the start of the year, excluding delivery fee discounts), 16 (cumulative e-commerce individual rewards since the start of the year, excluding delivery fee rewards). (requires an authenticated Carrefour session)

Inputs: codes (required).

get_advantage_codesA

Retrieves the advantage/promo codes available to the authenticated user on Carrefour France. Returns a list of advantage codes with details such as code value, validity start/end dates, reward amount, reward type, label description (e.g. immediate discount on a minimum purchase), whether it is for new customers only, validity slot, and terms and conditions. (requires an authenticated Carrefour session)

Inputs: no named parameters.

get_cartA

Retrieves the current shopping cart contents and summary for the authenticated user on Carrefour France. Returns cart totals (amounts, discounts, loyalty points, delivery fees), marketplace sub-baskets, additional orders, preorders, and relevant API endpoints. Optionally forces a refresh of cart data. (requires an authenticated Carrefour session)

Inputs: refresh.

get_chat_prepromptsA

Retrieves contextual and/or generic pre-suggested questions/prompts for the Carrefour AI chat assistant (OCB), based on the user's current navigation context (page type and title). For product detail pages, a product GTIN can also be provided. Returns contextual questions relevant to the current page (e.g. recipe suggestions for a search on 'tomato') and generic questions (e.g. recipe ideas, shopping list generation, product recommendations). Useful for populating chat suggestion chips on search results or product pages.

Inputs: count (required), modes (required), navigationCurrentPageType (required), navigationCurrentPageTitle (required), +1 more.

get_checkout_recommendationsA

Retrieves product recommendations during checkout on Carrefour France for a specific facility/store and basket service type. Returns recommendation zones such as frequent purchases, personalized recommendations, and current promotions, each with a list of products and delivery type. Useful for displaying cross-sell or upsell suggestions to the user at checkout. (requires an authenticated Carrefour session)

Inputs: facility_id (required), basket_service (required).

get_delivery_timeslotsA

Retrieves available delivery or drive time slots for a specific facility/store service on Carrefour France. Returns a list of days with available time slot cells, indicating availability, dates, and collaborative delivery type. Useful for letting the user pick a delivery or click-and-collect time window. (requires an authenticated Carrefour session)

Inputs: facilityServiceId (required).

get_donation_productsA

Retrieves the list of donation products (charitable associations) available on Carrefour France. Returns a list of donation items with their EAN, title, brand, slug, category, images, and other product attributes. Useful for displaying available charities/associations that users can donate to during checkout.

Inputs: no named parameters.

get_eligible_drive_storesA

Retrieves a paginated list of Carrefour drive stores eligible for ordering near a given location on Carrefour France. Returns store details such as ID, name, reference, distance from the provided coordinates, banner, address, format, order type, and opening patterns. Useful for finding nearby drive/click-and-collect stores available for a specific city or postal code.

Inputs: city (required), latitude (required), longitude (required), postalCode (required), +2 more.

get_favorite_storeA

Retrieves the authenticated user's favorite/preferred store on Carrefour France. Returns store details such as store ID, reference, GLN, name, postal code, store format, drive type, and available service modes (drive, home delivery, express delivery, click-and-collect, etc.). (requires an authenticated Carrefour session)

Inputs: no named parameters.

get_frequent_purchasesA

Retrieves the authenticated user's frequently purchased products on Carrefour France. Returns a paginated list of products the user buys regularly, with product details (EAN, title, brand, category, images, links), facets for filtering (promotions, Carrefour brands, etc.), and pagination metadata. Optionally includes unavailable products. (requires an authenticated Carrefour session)

Inputs: page, displayUnavailable.

get_homepage_returning_bannerA

Retrieves the returning user banner for the Carrefour France homepage. Returns a list of personalized product recommendations (with product ID, name, image URL, and optional highlight label such as 'promotion') tailored for returning users. Optionally limits the number of recommendations returned. (requires an authenticated Carrefour session)

Inputs: limit.

get_last_ordersA

Retrieves the most recent orders for the authenticated user on Carrefour France. Returns a list of the user's last orders with their details. (requires an authenticated Carrefour session)

Inputs: no named parameters.

get_loyalty_balanceA

Retrieves the loyalty points balance for the authenticated user on Carrefour France. Returns the account bonus, last updated timestamp, available total points, and the date until which the points are valid. Useful for displaying the user's current loyalty points balance. (requires an authenticated Carrefour session)

Inputs: no named parameters.

get_loyalty_cardsA

Retrieves the loyalty cards associated with the authenticated user's account on Carrefour France. Returns a list of loyalty cards with their card numbers and types (e.g. LOYALTY). Useful for displaying the user's registered loyalty/fidelity cards. (requires an authenticated Carrefour session)

Inputs: no named parameters.

get_loyalty_coupon_collectionA

Retrieves the loyalty coupon collection for the authenticated user on Carrefour France. Returns a list of available coupons with details such as label, discount amount, discount unit, validity/expiration dates, product packaging description, image URL, category, and availability status. Also returns facet metadata for filtering by category. (requires an authenticated Carrefour session)

Inputs: no named parameters.

get_loyalty_coupons_dashboardA

Retrieves the loyalty coupons dashboard summary for the authenticated user on Carrefour France. Returns the number of available coupons, total available coupon amount (in euros), and number of coupons already added to the cart. Useful for displaying a quick overview of the user's loyalty coupon status. (requires an authenticated Carrefour session)

Inputs: no named parameters.

get_loyalty_order_receipt_detailsA

Retrieves the detailed receipt for a specific in-store purchase associated with the authenticated user's loyalty card on Carrefour France. Returns receipt details such as store name, transaction date, total paid amount, discounts, receipt number, barcode, and links to invoice/card receipt. The receipt is identified by the store GLN, date key, and receipt number. (requires an authenticated Carrefour session)

Inputs: gln (required), date_key (required), receipt_number (required).

get_loyalty_order_receiptsA

Retrieves the in-store purchase receipts associated with the authenticated user's loyalty card on Carrefour France. Returns a paginated list of receipts with details such as transaction date, store name, receipt number, total paid amount, and receipt label. Supports scrolling through results using a scroll paging token and scroll hash. Useful for displaying the user's in-store purchase history linked to their loyalty card. (requires an authenticated Carrefour session)

Inputs: loyaltyCardType (required), loyaltyCardNumber (required), scrollHash, scrollPaging.

get_marketing_placementsA

Retrieves marketing/advertising placements (e.g. sponsored products, banners) for a specific placement context on Carrefour France. The placement context is determined by the URL path segment (e.g. 'home', 'home_food', 'search', 'search_cross_sell', 'search_panel', 'pdp', 'pdp_cross_sell', 'category', 'category_cross_sell', 'basket', 'checkout'). Returns a list of ad placements with product details, beacons, and positioning information.

Inputs: placement (required), categories (required), searchTerm (required), productFilters (required).

get_navigation_treeA

Retrieves the full navigation/category tree for the Carrefour France website. Returns a hierarchical tree of categories (rayons) and redirections, including category names, codes, IDs, types, business types, slugs, picto URLs, and child categories. Also indicates whether promotions are currently active. Useful for building navigation menus or browsing the category hierarchy.

Inputs: no named parameters.

get_olympic_games_primeA

Retrieves the authenticated user's Olympic Games Prime loyalty account information on Carrefour France. Returns the account balance, whether the user has an associated sports club, the club name, and a link to the Olympic Games Prime website. Useful for displaying the user's Olympic Games loyalty subscription and club association status. (requires an authenticated Carrefour session)

Inputs: no named parameters.

get_ordersA

Retrieves the authenticated user's order history on Carrefour France. Returns a paginated list of orders with details such as order number, service type, date, total amount, order status, store information, delivery slot, payment info, and available action links (cancel, refund, change slot, etc.). Supports filtering by date range (startDate/endDate), limiting the number of results (scrollSize), and paginating through results using a scroll hash and paging token. (requires an authenticated Carrefour session)

Inputs: endDate, startDate, scrollHash, scrollSize, +1 more.

get_personalized_recommendationsA

Retrieves personalized product recommendations for the authenticated user on Carrefour France, based on their CDP (Customer Data Platform) profile. Returns a wording block (image, text, title, color) and a list of recommended products tailored to the user's preferences (e.g. organic promotions, personalized deals). (requires an authenticated Carrefour session)

Inputs: no named parameters.

get_product_recommendationsA

Retrieves product recommendations for a given page context on Carrefour France. On product detail pages (context=pdp), returns recommendation zones such as 'Customers also bought' and 'You might also like', based on the product EAN, price, categories, and facility service. On product listing pages (context=plp), returns recommendations based on categories. Returns a list of recommendation zones, each with a label and a list of recommended products. (requires an authenticated Carrefour session)

Inputs: context (required), price, category, scenario, +5 more.

get_product_reviewsA

Retrieves customer reviews for a specific product on Carrefour France, identified by its EAN/GTIN. Returns the total review count and a paginated list of reviews. Supports sorting by field and order, and limiting the number of reviews returned.

Inputs: ean (required), limit, sortField, sortOrder.

get_products_by_gtinsA

Retrieves product details for a list of GTINs (barcodes/EANs) from Carrefour France, optionally scoped to a specific facility/store service. Returns product details including EAN, title, brand, category, images, business type, and links for each matching product. Useful for bulk product lookups by barcode.

Inputs: gtins (required), facilityServiceId.

get_products_by_queryA

Retrieves a list of products from Carrefour France based on a predefined query identifier. Returns product details including EAN, title, brand, category, images, and links. Useful for fetching curated product lists (e.g. bestsellers, promotions, themed selections) identified by a query ID. (requires an authenticated Carrefour session)

Inputs: query_id (required), limit.

get_shopping_listA

Retrieves the details of a specific shopping list for the authenticated user on Carrefour France, identified by its unique list ID. Returns the list reference, title, type (e.g. MTB for in-store memo list), item count, categories, and memos/items. (requires an authenticated Carrefour session)

Inputs: list_id (required).

get_shopping_listsB

Retrieves all shopping lists for the authenticated user on Carrefour France. Returns a list of shopping lists with details such as list ID, title, type (e.g. standard, in-store), item count, slug, last updated date, and EANs of items in the list. (requires an authenticated Carrefour session)

Inputs: no named parameters.

get_store_information_insertsA

Retrieves store-specific information inserts (e.g. banners, notices, messages) for a given store and a set of placement identifiers on Carrefour France. Useful for displaying contextual informational content at specific locations during checkout (e.g. top of checkout, checkout summary, checkout slot selection, checkout payment). Returns a list of information insert items for the requested placements. (requires an authenticated Carrefour session)

Inputs: store_id (required), insert_ids (required).

get_user_consentsA

Retrieves the marketing and communication consent preferences for the authenticated user on Carrefour France. Returns consent flags for various communication channels (email, SMS, WhatsApp, Instagram, Messenger) and partner/marketplace marketing preferences. (requires an authenticated Carrefour session)

Inputs: no named parameters.

get_vignettes_productsB

Retrieves the authenticated user's vignette products on Carrefour France. Returns a list of products associated with promotional vignettes/stickers collected by the user. Useful for displaying the user's vignette-based promotions or collectible product labels. (requires an authenticated Carrefour session)

Inputs: no named parameters.

search_productsA

Searches for products on Carrefour France using a text query. Returns a paginated list of products matching the query, along with pagination metadata, facets for filtering (promotions, Carrefour brands, categories, etc.), total result count, and navigation links. Supports pagination via the page parameter.

Inputs: q (required), page.

select_cart_delivery_slotA

Selects a delivery or drive time slot for the authenticated user's cart on Carrefour France. Associates the cart with a specific time slot at a given store. Returns the confirmed slot details including title, date/time range, cutoff time, slot reference, and expiration time in minutes. (requires an authenticated Carrefour session)

Inputs: slotRef (required), storeRef (required).

simulate_cart_for_storeA

Simulates the current shopping cart against a specific store on Carrefour France to check product availability. Returns the count of unavailable products and their GTINs (barcodes) for the given store reference. Useful for determining which cart items cannot be fulfilled at a particular store before placing an order. (requires an authenticated Carrefour session)

Inputs: storeRef (required).

submit_checkout_paymentA

Submits payment method selection for the authenticated user's checkout on Carrefour France. Sends the chosen payment methods (e.g. credit card by saved card ID, loyalty card with a specific amount) for a given basket service type (e.g. 'driveclcv' for drive click-and-collect). Returns the total and remaining amounts, available payment methods with provider tokens/URLs (Apple Pay, CB credit card, card pass, etc.), saved payment methods, and the payment group. Useful for initiating the payment step during checkout. (requires an authenticated Carrefour session)

Inputs: payments (required), checkout_type (required), device_fingerprint_id (required), apple_pay, +3 more.

validate_checkout_slotA

Validates the checkout slot step for a specific basket service type (e.g. 'driveclcv' for drive click-and-collect) on Carrefour France. Submits a device fingerprint ID and returns the current cart state, checkout step, store context, workflow steps, warnings, and available checkout links (payment, on-site payment, device fingerprint generator). Useful for confirming the slot selection step before proceeding to the payment step. (requires an authenticated Carrefour session)

Inputs: basket_service_type (required), deviceFingerPrintId (required).

validate_checkout_summaryA

Validates the checkout summary for a specific basket service type (e.g. 'driveclcv' for drive click-and-collect) on Carrefour France. Submits a device fingerprint ID and returns the current cart state, checkout step, store context, workflow steps, warnings, and available checkout links (payment, on-site payment, device fingerprint generator). Useful for initiating or confirming the checkout summary step before proceeding to payment. (requires an authenticated Carrefour session)

Inputs: basket_service_type (required), deviceFingerPrintId (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 48 tools

    Disambiguation2/5

    Several tool pairs have unclear boundaries, most notably add_item_to_cart and add_item_to_cart_by_ean, which both accept an EAN and the same cart context arguments. validate_checkout_slot and validate_checkout_summary have near-identical returned payloads, and get_orders/get_last_orders plus multiple recommendation tools add further overlap.

    Naming Consistency4/5

    The overall verb_noun snake_case pattern is consistent and readable, with get_*, crete_*, search_*, and validate_* tools. Deviations include the carrefour_ prefix applied only to session tools and inconsistent coupon/coupons singular/plural naming.

    Tool Count2/5

    At 48 tools, this is far beyond the 25+ threshold and places a heavy selection burden on the agent. Even for a broad e-commerce and loyalty API, the surface feels over-sized compared with more focused MCP servers.

    Completeness3/5

    The set covers search, product data, cart, checkout, orders, loyalty, stores, and shopping lists, but has noticeable lifecycle gaps: cart items can be added/updated but not removed, and shopping lists can be created and fetched but not updated or deleted. The checkout flow also lacks an explicit final order-confirmation tool, so some workflows may hit dead ends.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP 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
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for grocery-related web automation using Playwright, enabling AI assistants to interact with grocery websites.
      ISC
    • A
      license
      Not graded
      quality
      C
      maintenance
      Unofficial 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