openfoodfacts-mcp-server
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., "@openfoodfacts-mcp-server What are the allergens in product 3017620422003?"
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.
openfoodfacts-mcp-server
MCP Server for Open Food Facts — the world's largest open-source food product database with 3M+ products from 200+ countries. No API key required.
Features
Barcode Lookup — Get full product info by EAN barcode
Product Search — Search 3M+ products by name, ingredient, or brand
Nutrition Facts — Detailed nutritional data + Nutri-Score (A–E)
Allergen Check — All 14 EU major allergens + traces
Eco-Score — Environmental impact, CO₂ footprint, packaging info
Find Alternatives — Find healthier or more eco-friendly products
Additives / E-Numbers — List all additives in a product
Labels & Certifications — Organic, Vegan, Fairtrade, Halal, Kosher, Gluten-Free
Related MCP server: agriculture-mcp-server
Installation
pip install openfoodfacts-mcp-serverUsage
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"openfoodfacts": {
"command": "openfoodfacts-mcp-server"
}
}
}Direct Run
openfoodfacts-mcp-serverTools
Tool | Description |
| Full product info by EAN barcode |
| Search products by name, ingredient, or brand |
| Nutrition data + Nutri-Score explanation |
| All 14 EU allergens + traces |
| Eco-Score + CO₂ + packaging info |
| Better products by Nutri-Score or Eco-Score |
| E-numbers / additives list |
| Organic, Vegan, Fairtrade, Halal, Kosher, etc. |
Example Queries
"What are the allergens in product 3017620422003?"
"Find vegan pasta products with a good Nutri-Score"
"What is the eco-score of this chocolate bar?"
"Find healthier alternatives to this snack"
"List all E-numbers in product 5449000214911"Data Source
All data comes from Open Food Facts — a free, open-source, collaborative food database. No API key required. Data is available under the Open Database License (ODbL).
License
MIT © AiAgentKarl
Available Tools
8 toolscheck_allergensA
Prueft alle Allergene und Spurenbestandteile eines Produkts. Gibt eine strukturierte Liste der 14 EU-Hauptallergene zurueck.
Inputs: barcode (required). Returns: object
find_alternativesA
Findet gesundheitlich oder oekologisch bessere Alternativen zu einem Produkt. Sucht in derselben Produktkategorie nach besser bewerteten Optionen.
Inputs: barcode (required), besser_nutriscore, besser_ecoscore, max_results. Returns: object
get_eco_scoreA
Ruft den Eco-Score und Umweltinformationen eines Produkts ab. Gibt CO2-Fussabdruck, Verpackung, Herkunft und Umweltbewertung zurueck.
Inputs: barcode (required). Returns: object
get_nutrition_factsA
Ruft detaillierte Naehrwertinformationen fuer ein Produkt ab. Gibt Kalorien, Makros, Vitamine und Nutri-Score mit Bewertung zurueck.
Inputs: barcode (required). Returns: object
get_product_additivesB
Listet alle Zusatzstoffe (E-Nummern) eines Produkts auf. Gibt Risikoklasse und Beschreibung der Zusatzstoffe zurueck.
Inputs: barcode (required). Returns: object
get_product_labelsA
Gibt alle Zertifizierungen und Labels eines Produkts zurueck. Z.B. Bio, Fairtrade, Vegan, Vegetarisch, Halal, Koscher, Glutenfrei.
Inputs: barcode (required). Returns: object
lookup_product_by_barcodeB
Ruft vollstaendige Produktinformationen anhand des Barcodes ab. Gibt Name, Marke, Naehrwerte, Allergene und Bewertungen zurueck.
Inputs: barcode (required). Returns: object
search_foodA
Sucht Lebensmittelprodukte nach Name, Zutat oder Marke. Gibt eine Liste von passenden Produkten mit Grundinformationen zurueck.
Inputs: query (required), max_results, page. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct aspect of food product data: allergens, alternatives, eco-score, nutrition, additives, labels, barcode lookup, and text search. No functional overlap.
All tool names follow a consistent verb_noun pattern in English (check_allergens, find_alternatives, get_eco_score, etc.), providing clear predictability.
8 tools is well-scoped for an Open Food Facts server, covering search, lookup, and various product attributes without being excessive or sparse.
Covers major product information needs (nutrition, eco, allergens, labels, alternatives, search, barcode lookup). Minor gaps like missing product comparison or user contributions are acceptable.
Related MCP Connectors
Unlock the power of food transparency with our Open Food Facts MCP server. Easily look up any food
MCP server for real-time product search by barcode (EAN, UPC, GTIN) or keyword on ean-search.org
USDA FoodData Central nutrient lookup, FDA recall watch, EU FMCG labelling via remote MCP
Related MCP Servers
- AlicenseAqualityBmaintenanceAn MCP server for the Open Food Facts API that allows users to search, read, and contribute to a global food database. It enables looking up nutrition data by barcode or name and managing product information through natural language.10341 npm4MIT
- AlicenseAqualityDmaintenanceMCP server for agriculture and farming data. 8 tools: soil conditions (temperature, moisture), crop weather forecasts, historical climate data (NASA POWER, since 1981), global agriculture statistics (World Bank, 20+ indicators), and food product database (Open Food Facts, 3M+ products). All APIs free, no keys required.820 PyPI1MIT
- FlicenseNot gradedqualityBmaintenanceMCP server for looking up product information by UPC, EAN, GTIN barcodes and PLU produce codes.-
- AlicenseNot gradedqualityCmaintenanceMCP server for looking up EAN/UPC barcodes to get localized product details like title, description, price, and images.8 npm1MIT