Skip to main content

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.

PyPI version License: MIT

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)

Source distribution for openfoodfacts-mcp-server 0.1.0
File Size Uploaded
openfoodfacts_mcp_server-0.1.0.tar.gz 6.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for openfoodfacts-mcp-server 0.1.0
File Interpreter ABI Platform
openfoodfacts_mcp_server-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page