Skip to main content

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.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openfoodfacts_mcp_server-0.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openfoodfacts_mcp_server-0.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file openfoodfacts_mcp_server-0.1.0.tar.gz.

File metadata

File hashes

Hashes for openfoodfacts_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1f36be873745fdf6a477e4cd4bb6b2f3be707ae083e031fe479c37f1d03baeb4
MD5 984307d1b7e4027037280ba82e03b00f
BLAKE2b-256 a0313603fd261f6e9a4fea71344371c24c79525d74236b8425b5c5222b4df423

See more details on using hashes here.

File details

Details for the file openfoodfacts_mcp_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openfoodfacts_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b64b1134eb56bb123fcffb0102fd86406d58582df6a99d042d9b7b9dd09e9dac
MD5 5a0f428aa6f9870a82758edc60fbe840
BLAKE2b-256 4348c619e7812831bfa1df64a4a4a30f9749ef1188ba7e153a3a05893fa6d26a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page