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
Metadata
Release files for openfoodfacts-mcp-server 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openfoodfacts_mcp_server-0.1.0.tar.gz | 6.7 kB | Without provenance | Details for openfoodfacts_mcp_server-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openfoodfacts_mcp_server-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for openfoodfacts_mcp_server-0.1.0-py3-none-any.whl |
Total release size: 15.4 kB
Release files / openfoodfacts_mcp_server-0.1.0.tar.gz
| Download URL | openfoodfacts_mcp_server-0.1.0.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f36be873745fdf6a477e4cd4bb6b2f3be707ae083e031fe479c37f1d03baeb4
|
|
BLAKE2b-256 checksum How to use checksums |
a0313603fd261f6e9a4fea71344371c24c79525d74236b8425b5c5222b4df423
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Release files / openfoodfacts_mcp_server-0.1.0-py3-none-any.whl
| Download URL | openfoodfacts_mcp_server-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b64b1134eb56bb123fcffb0102fd86406d58582df6a99d042d9b7b9dd09e9dac
|
|
BLAKE2b-256 checksum How to use checksums |
4348c619e7812831bfa1df64a4a4a30f9749ef1188ba7e153a3a05893fa6d26a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Security for openfoodfacts-mcp-server 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.