L'Atlas / MCP servers / openfoodfacts-mcp-server
MCP server

openfoodfacts-mcp-server

io.github.cyanheads/openfoodfacts-mcp-server

MCP server OK 4 tools

Get a review See pricing

Barcode lookup, nutrition search, and product comparison for 3M+ crowd-sourced food products.

Technical sheet

Author
cyanheads (registry namespace)
Repository
github.com/cyanheads/openfoodfacts-mcp-server
Site
—
Version
0.5.1
Transport
Streamable HTTP stdio
Authentication
None (observed by our test)
Server address
https://openfoodfacts.caseyjhand.com/mcp Streamable HTTP
Packages
@cyanheads/openfoodfacts-mcp-server 0.5.1 npm stdio
@cyanheads/openfoodfacts-mcp-server 0.5.1 npm Streamable HTTP
Tools
4
Categories
—
Last updated
30 Nov 2026
Published
30 Nov 2026

Verified author and popularity

Entry not claimed yet. Is it your project? Claim it

Not “Popular” for now Removed automatically as soon as the criteria are no longer met.

  • Distinct visitors of this entry over 30 days: 0 (30 needed) not yet
  • or install configs copied over 30 days: 0 (5 needed) not yet
  • and a successful test less than 14 days old: tested 28 Nov 2026 met

Badge updates by itself. Always “tested on …”, never “certified”. How it works

MarkdownREADME.md
[![Status on L’Atlas](https://latlas.dev/badge/statut/mcp/io.github.cyanheads/openfoodfacts-mcp-server.svg?lang=en)](https://latlas.dev/en/mcp/io.github.cyanheads/openfoodfacts-mcp-server)
HTML
<a href="https://latlas.dev/en/mcp/io.github.cyanheads/openfoodfacts-mcp-server"><img src="https://latlas.dev/badge/statut/mcp/io.github.cyanheads/openfoodfacts-mcp-server.svg?lang=en" alt="Status on L’Atlas" height="20"></a>

Badge for your README

Listed on L’Atlas

Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.

MarkdownREADME.md
[![Listed on L’Atlas](https://latlas.dev/badge/fiche/io.github.cyanheads/openfoodfacts-mcp-server.svg?lang=en)](https://latlas.dev/en/mcp/io.github.cyanheads/openfoodfacts-mcp-server)
HTML
<a href="https://latlas.dev/en/mcp/io.github.cyanheads/openfoodfacts-mcp-server"><img src="https://latlas.dev/badge/fiche/io.github.cyanheads/openfoodfacts-mcp-server.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>

Our tests

Every week: initialize then tools/list, without credentials, never calling a tool. Method

Address
https://openfoodfacts.caseyjhand.com/mcp
Last result
OK 28 Nov 2026, 11:12
Response time
1,373 ms (initialize + tools/list)
Protocol version
2025-11-25
Announced name
openfoodfacts-mcp-server 0.5.0
Tools
4

History

DateResultResponseTools
28 Nov 2026, 11:12OK1,373 ms4

Exposed tools (4, from tools/list, 28 Nov 2026)

off_get_product

Get Food Product by Barcode

Fetch a packaged food product by barcode (4–40 digits: EAN-13, EAN-8, UPC, and the shorter and longer codes Open Food Facts also holds) from Open Food Facts. Returns the product name and generic name, brand, quantity, ingredients (raw text and parsed list), declared allergens, trace allergens the label warns about, additives, the product-level vegan/vegetarian/palm-oil analysis, computed scores (Nutri-Score a–e and Green-Score, each with the points behind its grade, and NOVA 1–4), the low/moderate/high levels of fat, saturated fat, sugars, and salt Open Food Facts computes, nutrition per serving and per 100 g, or per 100 ml for liquids, categories, labels, packaging, origins, countries of sale, image URL, data completeness, and when the record was last modified and created. The ingredients text is in the record's main language, named by lang, and can be a contributor's translation rather than what the pack prints; ingredients_text_languages carries the text in every language entered, and image_ingredients_url and image_nutrition_url link the label photos to check it against. Open Food Facts is a crowd-sourced database — a missing field means "not yet entered by contributors," not that the attribute is absent from the actual product. Nutrition is the exception: Open Food Facts returns one preparation state per read, so a read of prepared figures (_prepared keys under nutriments) omits as-sold figures the record can still hold; when that happens, one more product read fetches…

ParameterTypeRequiredDescription
barcodestringyesProduct barcode, digits only: 4–40 digits after any leading zeros. The primary key for Open Food Facts — the barcode of an off_search_products row works as is. Example: "3017620422003" (Nutella FR).
fieldsarray<enum: "product_name" | "generic_name" | "brands" | "quantity" | "lang" | "ingredients_text" | "ingredients_text_languages" | "ingredients" …>noSubset of fields to return. Omitting returns all standard fields. Use to reduce payload when only scores or ingredients are needed. A field that cannot be read on its own arrives with what it depends on: nutriments brings serving_size, serving_quantity, and serving_quantity_unit so per-serving figu…

off_search_products

Search Food Products

Search Open Food Facts by full-text query, structured tag filters, or both at once. Returns a summary list with barcodes, product names, brands, quantity (which tells pack sizes of one product apart), Nutri-Score, NOVA group, Green-Score, categories, data completeness, and when each record was last modified and created — enough for triage and selection, not full label data. Use off_get_product on the returned barcodes for complete details. A text query and tag filters combine: every word of the query must match the product name or generic name, and every filter provided must hold (e.g. query "dark chocolate" with labels_tag "en:organic" and countries_tag "en:france" returns organic chocolate sold in France). The query searches names only, so express a category, label, or brand as categories_tag, labels_tag, or brands_tag rather than as query words. Numeric nutrient_filters express thresholds per 100 g, or per 100 ml for liquids, such as sugars below 8 g, each compared as given, and combine the same way; they reach only products whose text-index entry carries the constrained nutrient, and each row then carries the indexed values the thresholds were compared against. ingredients_tag takes canonical ingredient IDs (e.g. "en:inulin") that must all appear among the ingredients Open Food Facts parsed from the label, and combines the same way. nutrition_grade, nova_group, and ecoscore_grade (Green-Score) each take one grade or an array matching any of them. Tag filter values are ca…

ParameterTypeRequiredDescription
querystringnoWords to find. Every word must match the product name or generic name, in the product's main language or any of the major languages the text index analyzes, so a product named only in French is found by its French name. Categories, labels, brand, ingredients, and quantity are not searched, so expre…
categories_tagstringnoCanonical category tag ID. Example: "en:breakfast-cereals", "en:cheeses". Use off_browse_taxonomy with facet="categories" to discover valid values.
brands_tagstringnoBrand name as printed, or its slug (lowercased, hyphenated). Example: "nutella", "kellogg-s". A brand is matched as a whole name: as given, under its slug — lowercased, common Latin accents dropped, punctuation and spaces hyphenated ("Ben & Jerry's" → "ben-jerry-s", "Nestlé" → "nestle"), the form o…
labels_tagstring | array<string>noCanonical label/certification tag ID, or an array of up to 10 that must all apply. Example: "en:organic", or ["en:organic", "en:fair-trade"] for products carrying both. Use off_browse_taxonomy with facet="labels".
allergens_tagstringnoCanonical allergen tag ID. Example: "en:milk", "en:gluten". Use off_browse_taxonomy with facet="allergens". Selects products that declare this allergen; it cannot select allergen-free products, because a product with no allergen tags may simply have none entered yet. To leave an allergen out, use e…
traces_tagstringnoCanonical allergen tag ID the label warns the product may contain as a trace ("may contain nuts"). Example: "en:nuts". Trace tags are allergen tags, so off_browse_taxonomy with facet="allergens" resolves them. Selects products carrying the warning; to leave them out, use exclude_traces.
exclude_allergensarray<string>noAllergen tag IDs a product must not declare, all applied. Example: ["en:nuts", "en:peanuts"]. Each value must be an allergen tag Open Food Facts recognizes — resolve it with off_browse_taxonomy facet="allergens" — and one it does not recognize is rejected rather than sent, because it would exclude…
exclude_tracesarray<string>noAllergen tag IDs a product's label must not warn it may contain as traces, all applied. Example: ["en:nuts"]. Values are validated like exclude_allergens. A product with no trace data entered passes, so check a candidate with off_get_product before relying on it.
ingredients_analysis_tagenum: "en:palm-oil" | "en:palm-oil-free" | "en:may-contain-palm-oil" | "en:palm-oil-content-unknown" | "en:vegan" | "en:maybe-vegan" | "en:non-vegan" | "en:vegan-status-unknown" …noVegan, vegetarian, or palm-oil verdict Open Food Facts computes from the parsed ingredients. Example: "en:vegan", "en:palm-oil-free". "en:maybe-vegan" and "en:may-contain-palm-oil" mean the ingredients could not settle it, and the "-unknown" values mean no verdict could be computed.
ingredients_tagstring | array<string>noCanonical ingredient tag ID, or an array of up to 10 that must all appear among the ingredients Open Food Facts parsed from the label. Example: "en:inulin", or ["en:inulin", "en:oat"] for products listing both. IDs are singular ("en:oat", not "en:oats"); use off_browse_taxonomy with facet="ingredie…
additives_tagstringnoCanonical additive (E-number) tag ID. Example: "en:e322", "en:e330". Use off_browse_taxonomy with facet="additives".
nutrition_gradeenum: "a" | "b" | "c" | "d" | "e" | array<enum: "a" | "b" | "c" | "d" | "e">noFilter by Nutri-Score grade, or an array of grades matching any of them. "a" is highest nutritional quality, "e" is lowest. Example: "a", or ["a", "b"] for B or better. A product carries one grade, so an array matches products graded any of its values, unlike labels_tag, whose values must all apply…
nova_groupenum: "1" | "2" | "3" | "4" | array<enum: "1" | "2" | "3" | "4">noFilter by NOVA food processing class, or an array of classes matching any of them. "1"=unprocessed/minimally processed, "4"=ultra-processed. Example: "1", or ["1", "2"]. A product is in one class, so an array matches products in any of its classes, unlike labels_tag, whose values must all apply. Pr…
ecoscore_gradeenum: "a-plus" | "a" | "b" | "c" | "d" | "e" | "f" | array<enum: "a-plus" | "a" | "b" | "c" | "d" | "e" | "f">noFilter by Green-Score (environmental impact) grade, or an array of grades matching any of them: "a-plus" is the lowest impact, then "a" through "f". "a" does not include "a-plus", so ask for ["a-plus", "a"] for A or better. A product carries one grade, so an array matches products graded any of its…
countries_tagstringnoCanonical country tag ID. Example: "en:france", "en:united-states". Filters to products sold in that country.
nutrient_filtersarray<object>noNumeric constraints on nutrient values per 100 g, or per 100 ml for liquids, combined as AND with each other and with every other filter. Each bound is compared as given, decimals included: sugars gt 3.5 excludes 3.5 and keeps 3.6. Pair two entries on the same nutrient to express a range (e.g. suga…
sort_byenum: "last_modified_t" | "unique_scans_n" | "created_t" | "popularity_key"noSort order, applied on every search. Each value orders newest or highest first: "unique_scans_n" surfaces the most-scanned products, "last_modified_t" and "created_t" the most recently updated and newest records, by the times each row carries as last_modified and created, "popularity_key" the most…
pageintegernoPage number (1-based). Use with page_size to paginate results. Pages are counted at the page_size served, which is at most 100, so repeating one larger page_size pages contiguously (page 2 at page_size 200 is results 101–200). A search by tag filters alone that reads the live database is served thr…
page_sizenumbernoResults per page (default 20). One call returns at most 100: a larger value is served at 100, reported in page_size and page_size_capped, and page then counts pages of 100. Keep low for initial exploration; increase for comparison workflows.

off_compare_products

Compare Food Products Side-by-Side

Side-by-side nutrition and scoring comparison for 2–10 products per call by barcode; a repeated barcode is compared once, so two identical barcodes yield one row, and barcodes past the 10th distinct one are listed in unprocessed rather than fetched. Returns a normalized table of energy (kcal), fat, saturated fat, carbohydrates, total carbohydrates including fiber, sugars, salt, protein, and fiber per 100 g, or per 100 ml for liquids, plus Nutri-Score and Green-Score, each with the points behind its grade, and NOVA group. Open Food Facts returns one preparation state per read, so figures for the prepared product arrive in a prepared object on the row, with the same columns and basis, and never fill an as-sold field; a row whose read returned only prepared figures gets one more product read, of the as-sold set its record stores, once the read of every barcode has settled, with stored_as_sold saying how it went. Designed for "which of these cereals is healthiest?" or "compare these pasta brands" workflows. Missing nutrition data for any product is preserved as absent — comparisons are not imputed. A batch is not all-or-nothing: barcodes that resolve are returned even when others fail, with confirmed-missing barcodes listed in not_found and failed fetches listed separately in failed. Scores carry regional formula caveats; Nutri-Score points break a grade tie only between products of one kind. Data under ODbL 1.0 — cite Open Food Facts in downstream use.

ParameterTypeRequiredDescription
barcodesarray<string>yesBarcodes to compare, returned as one row each in input order; a repeated barcode is compared once, so two identical barcodes yield one row. One call compares at most 10 distinct barcodes: up to 100 are accepted, and those past the 10th distinct one are returned in unprocessed without being fetched.…

off_browse_taxonomy

Browse Food Facts Taxonomy

Resolve a human term to the canonical Open Food Facts tag ID that off_search_products filters on. Covers categories, labels/certifications, allergens, additives, countries, ingredients, NOVA groups, and Nutri-Score grades. Pass a search term to resolve against the Open Food Facts vocabulary, which holds tens of thousands of tags; omitting it returns only a small reference list for each facet except NOVA groups and Nutri-Score grades, which are complete, and ingredients, which has no reference list and returns nothing. Most tag IDs use the "en:" prefix (e.g. "en:organic", "en:no-gluten", "en:crustaceans"); NOVA groups return bare digits "1"-"4" and Nutri-Score grades bare letters "a"-"e". Pass the id through to off_search_products exactly as returned. Category tags are frequently plural ("kombucha" resolves to "en:kombuchas") and ingredient tags singular ("oat" resolves to "en:oat", "oats" to nothing), so use the returned id rather than constructing one.

ParameterTypeRequiredDescription
facetenum: "categories" | "labels" | "allergens" | "additives" | "countries" | "ingredients" | "nova_groups" | "nutrition_grades"yes"categories" covers food categories (en:cheeses, en:breakfast-cereals). "labels" covers certifications (en:organic, en:fair-trade). "allergens" covers declared allergens (en:milk, en:gluten). "additives" covers E-numbers (en:e322). "countries" covers country-of-sale tags (en:france). "ingredients"…
searchstringnoTerm to resolve. Matched case-insensitively as a substring of the tag ID, the display name, or a common synonym of either ("shellfish" resolves to en:crustaceans, "gluten free" to en:no-gluten); the tag the term itself names leads the list even when neither its ID nor its name contains the term as…
limitnumbernoMaximum entries to return (default 20). One call returns at most 200: a larger value returns the first 200 and, when more matched, says how many did. There is no offset or page input: Open Food Facts offers no cursor for this lookup, so narrow the search term rather than paging. The tag the term it…

Client compatibility

Based on the transports each client documents as supported; this is not a live test inside the client.

ClientDocumented transportsThis serverSource
Claude Codestdio Streamable HTTP SSEtransport accepteddoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport accepteddoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport accepteddoc
Cursorstdio Streamable HTTP SSEtransport accepteddoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport accepteddoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport accepteddoc
Gemini CLIstdio Streamable HTTP SSEtransport accepteddoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport accepteddoc

Ready-to-copy configs

Remote address used: https://openfoodfacts.caseyjhand.com/mcp. Formats taken from each client’s documentation.

Claude Code
claude mcp add --transport http openfoodfacts-mcp-server https://openfoodfacts.caseyjhand.com/mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : openfoodfacts-mcp-server ; URL : https://openfoodfacts.caseyjhand.com/mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : openfoodfacts-mcp-server ; Server URL : https://openfoodfacts.caseyjhand.com/mcp ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "openfoodfacts-mcp-server": {
      "url": "https://openfoodfacts.caseyjhand.com/mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "openfoodfacts-mcp-server": {
      "type": "http",
      "url": "https://openfoodfacts.caseyjhand.com/mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "openfoodfacts-mcp-server": {
      "url": "https://openfoodfacts.caseyjhand.com/mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "openfoodfacts-mcp-server": {
      "httpUrl": "https://openfoodfacts.caseyjhand.com/mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.openfoodfacts-mcp-server]
url = "https://openfoodfacts.caseyjhand.com/mcp"

Cite this source

Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.

openfoodfacts-mcp-server · L’Atlas · Tested on

Markdown
[openfoodfacts-mcp-server — L’Atlas](https://latlas.dev/en/mcp/io.github.cyanheads/openfoodfacts-mcp-server)
Test methodology and limitations

Source : Registre officiel MCP · retrieved 3 Dec 2026. L’Atlas adds no data beyond this source and its own tests.