mcp-carrefour

mcp-carrefour

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.

Category
Visit Server

README

MCP Carrefour

Serveur MCP open-source qui connecte Carrefour Drive a Claude, Cursor, VS Code et tout client MCP.

Recherchez des produits avec les vrais prix, nutriscore et disponibilite. Gerez un panier de courses en langage naturel.

Fonctionnalites

Tool Description
search_products Recherche produits avec prix temps reel, nutriscore, bio, promos
get_product_details Details d'un produit (nutrition, ingredients)
find_stores Magasins/drives par code postal
add_to_cart Ajout au panier
view_cart Consultation du panier avec total
remove_from_cart Suppression du panier
get_promotions Promos en cours par categorie

Installation

Prerequis

  • Python 3.11+
  • curl_cffi (bypass Cloudflare)

Setup

git clone https://github.com/nicovlr/mcp-carrefour.git
cd mcp-carrefour
pip install mcp httpx curl_cffi

Ajouter a Claude Code

claude mcp add carrefour -- python3 /chemin/vers/mcp-carrefour/src/server.py

Config JSON (Claude Desktop / Cursor)

{
  "mcpServers": {
    "carrefour": {
      "command": "python3",
      "args": ["/chemin/vers/mcp-carrefour/src/server.py"]
    }
  }
}

Exemples de prompts

"Cherche du lait d'avoine bio au meilleur prix"
"Fais-moi une liste de courses pour 2 personnes vegetariennes, 50EUR max"
"Quelles sont les promos sur les fruits ?"
"Ajoute 2kg de carottes et 500g de lentilles a mon panier"
"Compare les prix du lait entre Carrefour Bio et Bjorg"

Comment ca marche

  1. Session : curl_cffi imite un navigateur Chrome pour passer Cloudflare
  2. Scraping SSR : parse le routeData Nuxt (format JSON:API indexe) depuis le HTML
  3. Cache SQLite : TTL 30min pour eviter le rate limiting
  4. Throttle : 2s entre chaque requete

Donnees extraites par produit

  • Nom, marque, slug
  • Prix, prix/unite (EUR/kg, EUR/L)
  • Nutriscore (A-E)
  • Label Bio
  • Promotions
  • Note clients + nombre d'avis
  • Code EAN-13
  • Image

Architecture

mcp-carrefour/
  src/
    server.py          # Serveur MCP (7 tools)
    api/
      client.py        # Client HTTP Carrefour (curl_cffi + parsing Nuxt)
      models.py        # Product, Store, Cart, CartItem
    cache/
      cache.py         # Cache SQLite
  config/
    config.json        # Configuration utilisateur

Limitations

  • Pas d'API publique Carrefour : on parse le HTML SSR (peut casser si Carrefour change son front)
  • Rate limiting : le cache et le throttle limitent a ~30 req/min
  • Panier local uniquement (pas de sync avec un compte Carrefour)
  • Disponibilite produits = catalogue national (pas par magasin sans authentification)

Licence

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured