Skip to main content
Glama
openfoodfacts-mcp-server

openfoodfacts-mcp-server

by AiAgentKarl

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

Related MCP server: agriculture-mcp-server

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

Available Tools

8 tools
check_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

    A4/5.0

    Scored across 8 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in English (check_allergens, find_alternatives, get_eco_score, etc.), providing clear predictability.

    Tool Count5/5

    8 tools is well-scoped for an Open Food Facts server, covering search, lookup, and various product attributes without being excessive or sparse.

    Completeness4/5

    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

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      An 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.
      10
      341 npm
      4
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP 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.
      8
      20 PyPI
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP server for looking up EAN/UPC barcodes to get localized product details like title, description, price, and images.
      8 npm
      1
      MIT