Carrefour Drive MCP
Carrefour Drive MCP — AIエージェントのための食料品ショッピング
Carrefour Drive(carrefour.fr)用MCPサーバー。 Claude、Cursor、その他あらゆる Model Context Protocolクライアントで、フランスの食料品カタログを検索し、カートを構築し、 Driveの受け取り時間枠や配送枠を選び、ポイント残高や過去のレシートを確認できます — すべてお客様自身のCarrefourアカウントで。
48のツール。 43個の実在するcarrefour.fr APIエンドポイントをJSONとして記述し、
汎用エグゼキュータで実行します。さらに5つのセッション管理ツールを追加。エンドポイントの追加は
JSONファイルを1つ置くだけ — コードは不要です。
"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その1つのコマンドで、stdio上で動作するサーバーをフェッチしてビルドし、起動します — 初回実行時には HTTPトランスポートとして使用するChromiumもダウンロードされます。ほとんどの場合、 コマンドを自分で入力する必要はありません。MCPクライアントの設定に記載しておけば (次のセクション)、クライアントが代わりに実行してくれます。
一度グローバルにインストールしたい場合は?
npm install -g github:maximeallanic/CarrefourDriveMCP
carrefour-drive-mcpセッション、ブラウザプロファイル、ログは~/.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 cartClaude Desktop
claude_desktop_config.jsonを編集します:
macOS —
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows —
%APPDATA%\Claude\claude_desktop_config.jsonLinux —
~/.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を話せるクライアントなら、同じ2つのフィールドで動作します:
{
"command": "npx",
"args": ["-y", "github:maximeallanic/CarrefourDriveMCP"]
}Cursor —
~/.cursor/mcp.json(またはプロジェクト内の.cursor/mcp.json)Windsurf —
~/.codeium/windsurf/mcp_config.jsonVS Code / Copilot —
.vscode/mcp.jsonの"servers"配下Zed —
settings.jsonの"context_servers"配下
グローバルにインストールした場合やソースからクローンした場合は、代わりに以下を使用します:
{"command": "carrefour-drive-mcp"}または
{"command": "node", "args": ["/absolute/path/to/dist/index.js"]}。
すでにクッキーをお持ちの場合は、ログインの代わりに"env"ブロックで渡せます:
{"CARREFOUR_COOKIES": "…cookie header…"}。
ログイン
carrefour.frは、Cloudflare Turnstileキャプチャと OTPの背後でクッキーによるサインインを行います。そのためログインは対話式で、一度だけ行います:
エージェントに
carrefour_browser_loginの実行を依頼します。Carrefourのログインページでブラウザウィンドウが開きます。メールアドレス、パスワード、 OTPコードはご自身で入力してください。
ウィンドウを閉じないでください — サーバーがOAuthループの完了を検出し、 メモリからセッションクッキーを取得して、ウィンドウを閉じます。
以降、セッションは自動的に更新されます。サーバーは認証が必要な呼び出しの前にSSOの authorize → callbackリダイレクトを再生し、さらに30分ごとにキープアライブを実行します。 SSOクッキー自体が期限切れになった場合(最大24時間、またはアイドル60分)にのみ、 再度ログインが必要です — ツールがその旨を明示的に通知します。
セッション状態はいつでもcarrefour_session_statusで確認できます(verify: trueで
実際の呼び出しを行います)。
セッションツール | 機能 |
| サインイン用ウィンドウを開く(キャプチャ + OTP) |
| 保存済みクッキー、ブラウザプロファイル、SSO残り時間を表示 |
| 更新を強制する(通常は不要 — 自動更新されます) |
| クッキーを手動でインポート(ヘッダー、JSONマップ、JSON配列のいずれか) |
| ローカルセッションを消去 |
carrefour_set_cookiesでは、JSON配列形式のみがクッキーのdomainを保持できます —c4iamsecuretkを提供できるのはこの形式だけであり、 これがないと自動更新は不可能です。
クッキージャーは<data dir>/sessions/cookies.json(0600)に保存され、
起動のたびにブラウザプロファイルへ再注入されます。
ツールリファレンス
検索とカタログ (アカウント不要)
ツール | エンドポイント | 必須パラメータ |
| GET /s |
|
| GET /autocomplete |
|
| POST /products |
|
| GET /products/query/{query_id} |
|
| GET /product/{ean}/reviews |
|
| GET /navigation | — |
| POST /api/marketing/{placement} |
|
| GET /donation | — |
| POST ocb.carrefour.fr/preprompts |
|
| GET /api/eligibility/drive |
|
カートとチェックアウト
ツール | エンドポイント | 必須パラメータ |
| GET /api/cart | — |
| PATCH /api/cart |
|
| PATCH /api/cart/items |
|
| POST /api/cart/promo_code |
|
| GET /api/cart/simulate |
|
| GET /api/timeslots |
|
| PUT /api/cart/slot |
|
| POST /api/checkout/{basket_service_type}/validate/slot |
|
| POST /api/checkout/{basket_service_type}/validate/summary |
|
| GET /api/checkout/recommendations/{facility_id}/{basket_service} |
|
| POST /api/checkout/payment |
|
⚠️
submit_checkout_paymentは実際の支払いを実行します。4つのパラメータが 説明ではHTTPヘッダーを示唆しているにもかかわらず、クエリ文字列として取得されました — 本番環境で使用する前に、実際のトレースと照合して確認してください。
アカウント、注文、ポイント
ツール | エンドポイント | 必須パラメータ |
| GET /api/user/orders | — |
| GET /api/user/orders/last | — |
| GET /mon-compte/achats-frequents | — |
| GET /api/user/secured/loyalty/balance | — |
| GET /api/user/secured/loyalty/my-cards | — |
| GET /api/user/loyalty/coupons-dashboard | — |
| GET /api/user/loyalty/coupon-collection | — |
| GET /api/user/secured/loyalty/orders/receipts |
|
| GET /api/user/secured/loyalty/orders/receipt/{gln}/{date_key}/{receipt_number} |
|
| GET /api/advantage-code | — |
| GET /api/user/products/vignettes-products | — |
| GET /api/user/loyalty/olympic-games/prime | — |
| GET /api/user/my-account/kpis |
|
| GET /api/user/my-account/consents | — |
| GET /api/favoritestore | — |
| POST /api/information-insert/stores/{store_id} |
|
| GET /api/homepage/returningBanner | — |
| GET /api/user/recommendation/cdp | — |
| GET /api/recommendations |
|
買い物リスト
ツール | エンドポイント | 必須パラメータ |
| GET /api/shopping-lists | — |
| GET /api/shopping-lists-id/{list_id} |
|
| POST /api/shopping-lists/memo-list |
|
なぜ実際のブラウザが必要なのか
carrefour.fr は Cloudflare の マネージドチャレンジ の背後にあり、クライアントをフィンガープリントします。同じ日に1つのIPから測定した結果:
クライアント |
|
|
|
|
|
Chrome |
|
ヘッダーをいくら調整しても変わりません。唯一有効なトランスポートはブラウザです。そしてリクエストはページから発行される必要があります — Playwright の APIRequestContext は Node の HTTP スタックを使用するため、fetch と同様にブロックされます。
そこで、サーバーは永続的な Chromium を保持し、すべての API 呼び出しをターゲットオリジンに駐車したページ内の fetch として実行します(オリジンごとに1ページ、CORS のため)。これはウィンドウレスで実行されますが、標準のヘッドレスモードではありません:
起動モード | 結果 |
|
|
|
|
|
|
最後の行が実際に出荷されるものです。
認証の仕組み
2つの独立した Cookie システム:
ドメイン | 役割 | 有効期間 |
| ForgeRock SSO、Cookie | 最大24時間、アイドル60分で失効 |
| ストアセッション( | 短命、更新可能 |
ログインは2つの制約があるため対話式です。フォームは Cloudflare Turnstile キャプチャの背後にあり、CDP 駆動のブラウザでは検証を拒否します。また、c4iamsecuretk は セッション Cookie であり、Chromium がディスクに書き込むことはありません。そこで、ウィンドウはデバッグポートを開いた通常の Chromium ですが、ログインが完了するまで何もアタッチされません。サーバーは /json/list 上のプレーン HTTP でタブをポーリングします(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(境界はfetchに任せます);ジッター付きのスライディングレート制限とブラウザヘッダーを適用します。
エンドポイントの追加 = tools/ に新しい JSON ファイルを置くだけです。コードを書く必要はありません。
設定
.env.example を参照してください。主な変数:
変数 | デフォルト | 役割 |
| — | セッション Cookie(ヘッダー、JSON マップ、または JSON 配列) |
| — | JSON Cookie エクスポートへのパス |
|
| 以下に書き込まれるすべてのルート |
|
| 永続化された Cookie ジャー |
|
| 永続的な Chromium プロファイル |
|
| SSO キープアライブ期間; |
|
| リフレッシュに使用する OAuth2 クライアント |
|
| BFF コールバック |
|
| 要求されるスコープ |
|
| JSON ツール定義ディレクトリ |
|
| 大きなレスポンスの切り詰め |
|
| HTTP タイムアウト |
|
| レート制限ウィンドウ |
|
| リクエスト間のジッター |
|
| 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 セグメント、クエリ文字列内の配列、3つのボディエンコーディング、Cookie ジャーの処理をカバーしています。スモークテストは実際にサーバーを起動し、JSON-RPC ハンドシェイクを実行してツールを一覧表示します。
carrefour.fr へのネットワーク呼び出しは自動テストされません — 実際のアカウントと有効な Cookie が必要です。
FAQ
API キーは必要ですか? いいえ。Carrefour には公開 API がありません。このサーバーは、ウェブサイトが使用するのと同じプライベートエンドポイントを、あなた自身のセッションで駆動します。
フランス国外でも動作しますか? カタログと店舗はフランス向けです(carrefour.fr)。Cloudflare は一部の IP からより厳格に動作する場合があります。
パスワードは保存されますか? いいえ。ブラウザウィンドウに入力するだけです。永続化されるのは 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 の利用規約を尊重し、それに応じてレート制限を守ってください。
ライセンス
MIT © Maxime Allanic
キーワード: Carrefour MCP server · Carrefour Drive API · Model Context Protocol 食料品 · Claude Desktop MCP · Claude Code MCP server · Cursor MCP · フランスの食料品の買い物AIエージェント · オンラインショッピング · drive · 買い物リスト · Carrefour ロイヤルティ · MCP ショッピングカート自動化.
Available Tools
48 toolsadd_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).
autocomplete_searchA
Retrieves search autocomplete suggestions for a query on Carrefour France. Returns a list of suggested search terms with their highlighted text, plain text, and corresponding search links. Useful for powering a search bar autocomplete/typeahead feature.
Inputs: q (required), maxResults, productCard.
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_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
Scored across 48 tools
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.
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.
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.
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
Hosted MCP for e-commerce: live product catalog, stock, and pricing for AI agents.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Hosted Shopify MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
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
- AlicenseNot gradedqualityDmaintenanceMCP server for grocery-related web automation using Playwright, enabling AI assistants to interact with grocery websites.ISC
- AlicenseCqualityFmaintenanceMCP server for Carrefour Drive that enables AI assistants to search products, manage carts, check delivery slots, and order groceries via automated browser interactions.142MIT
- 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