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.
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
- Session :
curl_cffiimite un navigateur Chrome pour passer Cloudflare - Scraping SSR : parse le
routeDataNuxt (format JSON:API indexe) depuis le HTML - Cache SQLite : TTL 30min pour eviter le rate limiting
- 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
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
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.