MCP Server for Open Food Facts — barcode lookup, nutrition facts, allergen checks, eco-scores and product search for 3M+ food products
Project description
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
Installation
pip install openfoodfacts-mcp-server
Usage
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"openfoodfacts": {
"command": "openfoodfacts-mcp-server"
}
}
}
Direct Run
openfoodfacts-mcp-server
Tools
| Tool | Description |
|---|---|
lookup_product_by_barcode |
Full product info by EAN barcode |
search_food |
Search products by name, ingredient, or brand |
get_nutrition_facts |
Nutrition data + Nutri-Score explanation |
check_allergens |
All 14 EU allergens + traces |
get_eco_score |
Eco-Score + CO₂ + packaging info |
find_alternatives |
Better products by Nutri-Score or Eco-Score |
get_product_additives |
E-numbers / additives list |
get_product_labels |
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openfoodfacts_mcp_server-0.1.0.tar.gz.
File metadata
- Download URL: openfoodfacts_mcp_server-0.1.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f36be873745fdf6a477e4cd4bb6b2f3be707ae083e031fe479c37f1d03baeb4
|
|
| MD5 |
984307d1b7e4027037280ba82e03b00f
|
|
| BLAKE2b-256 |
a0313603fd261f6e9a4fea71344371c24c79525d74236b8425b5c5222b4df423
|
File details
Details for the file openfoodfacts_mcp_server-0.1.0-py3-none-any.whl.
File metadata
- Download URL: openfoodfacts_mcp_server-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b64b1134eb56bb123fcffb0102fd86406d58582df6a99d042d9b7b9dd09e9dac
|
|
| MD5 |
5a0f428aa6f9870a82758edc60fbe840
|
|
| BLAKE2b-256 |
4348c619e7812831bfa1df64a4a4a30f9749ef1188ba7e153a3a05893fa6d26a
|