openfoodfacts-mcp-server
io.github.cyanheads/openfoodfacts-mcp-server
Serveur MCP OK 4 outils
Barcode lookup, nutrition search, and product comparison for 3M+ crowd-sourced food products.
Fiche technique
- Auteur
- cyanheads (espace de noms du registre)
- Dépôt
- github.com/cyanheads/openfoodfacts-mcp-server
- Site
- —
- Version
- 0.5.1
- Transport
- Streamable HTTP stdio
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://openfoodfacts.caseyjhand.com/mcp Streamable HTTP
- Paquets
- @cyanheads/openfoodfacts-mcp-server 0.5.1 npm stdio
@cyanheads/openfoodfacts-mcp-server 0.5.1 npm Streamable HTTP - Outils
- 4
- Catégories
- —
- Dernière mise à jour
- 30 nov. 2026
- Publication
- 30 nov. 2026
Auteur vérifié et popularité
Fiche pas encore revendiquée. C’est votre projet ? Revendiquez-la
Pas « Populaire » pour l’instant Retiré tout seul dès que les critères ne sont plus remplis.
- Visiteurs distincts de la fiche sur 30 jours : 0 (il en faut 30) pas encore
- ou configurations d’installation copiées sur 30 jours : 0 (il en faut 5) pas encore
- et un test réussi de moins de 14 jours : testé le 28 nov. 2026 rempli
Badge à jour tout seul. Toujours « testé le … », jamais « certifié ». Comment ça marche
[](https://latlas.dev/mcp/io.github.cyanheads/openfoodfacts-mcp-server)<a href="https://latlas.dev/mcp/io.github.cyanheads/openfoodfacts-mcp-server"><img src="https://latlas.dev/badge/statut/mcp/io.github.cyanheads/openfoodfacts-mcp-server.svg" alt="Statut sur L’Atlas" height="20"></a>Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/io.github.cyanheads/openfoodfacts-mcp-server)<a href="https://latlas.dev/mcp/io.github.cyanheads/openfoodfacts-mcp-server"><img src="https://latlas.dev/badge/fiche/io.github.cyanheads/openfoodfacts-mcp-server.svg" alt="Référencé sur L’Atlas" height="20"></a>Nos tests
Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode
- Adresse
- https://openfoodfacts.caseyjhand.com/mcp
- Dernier résultat
- OK 28 nov. 2026, 11:12
- Temps de réponse
- 1 373 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- openfoodfacts-mcp-server 0.5.0
- Outils
- 4
Historique
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 11:12 | OK | 1 373 ms | 4 |
Outils exposés (4, réponse à 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…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| barcode | string | oui | Product 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). |
| fields | array<enum: "product_name" | "generic_name" | "brands" | "quantity" | "lang" | "ingredients_text" | "ingredients_text_languages" | "ingredients" …> | non | Subset 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…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| query | string | non | Words 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_tag | string | non | Canonical category tag ID. Example: "en:breakfast-cereals", "en:cheeses". Use off_browse_taxonomy with facet="categories" to discover valid values. |
| brands_tag | string | non | Brand 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_tag | string | array<string> | non | Canonical 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_tag | string | non | Canonical 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_tag | string | non | Canonical 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_allergens | array<string> | non | Allergen 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_traces | array<string> | non | Allergen 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_tag | enum: "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" … | non | Vegan, 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_tag | string | array<string> | non | Canonical 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_tag | string | non | Canonical additive (E-number) tag ID. Example: "en:e322", "en:e330". Use off_browse_taxonomy with facet="additives". |
| nutrition_grade | enum: "a" | "b" | "c" | "d" | "e" | array<enum: "a" | "b" | "c" | "d" | "e"> | non | Filter 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_group | enum: "1" | "2" | "3" | "4" | array<enum: "1" | "2" | "3" | "4"> | non | Filter 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_grade | enum: "a-plus" | "a" | "b" | "c" | "d" | "e" | "f" | array<enum: "a-plus" | "a" | "b" | "c" | "d" | "e" | "f"> | non | Filter 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_tag | string | non | Canonical country tag ID. Example: "en:france", "en:united-states". Filters to products sold in that country. |
| nutrient_filters | array<object> | non | Numeric 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_by | enum: "last_modified_t" | "unique_scans_n" | "created_t" | "popularity_key" | non | Sort 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… |
| page | integer | non | Page 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_size | number | non | Results 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| barcodes | array<string> | oui | Barcodes 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| facet | enum: "categories" | "labels" | "allergens" | "additives" | "countries" | "ingredients" | "nova_groups" | "nutrition_grades" | oui | "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"… |
| search | string | non | Term 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… |
| limit | number | non | Maximum 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… |
Compatibilité clients
Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://openfoodfacts.caseyjhand.com/mcp. Formats repris de la documentation de chaque client.
claude mcp add --transport http openfoodfacts-mcp-server https://openfoodfacts.caseyjhand.com/mcpCustomize > Connectors > + Add > Add custom connector ; Name : openfoodfacts-mcp-server ; URL : https://openfoodfacts.caseyjhand.com/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : openfoodfacts-mcp-server ; Server URL : https://openfoodfacts.caseyjhand.com/mcp ; Create as a plugin{
"mcpServers": {
"openfoodfacts-mcp-server": {
"url": "https://openfoodfacts.caseyjhand.com/mcp"
}
}
}{
"mcpServers": {
"openfoodfacts-mcp-server": {
"type": "http",
"url": "https://openfoodfacts.caseyjhand.com/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"openfoodfacts-mcp-server": {
"url": "https://openfoodfacts.caseyjhand.com/mcp"
}
}
}{
"mcpServers": {
"openfoodfacts-mcp-server": {
"httpUrl": "https://openfoodfacts.caseyjhand.com/mcp"
}
}
}[mcp_servers.openfoodfacts-mcp-server]
url = "https://openfoodfacts.caseyjhand.com/mcp"Citer cette source
Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.
openfoodfacts-mcp-server · L’Atlas · Test du
[openfoodfacts-mcp-server — L’Atlas](https://latlas.dev/mcp/io.github.cyanheads/openfoodfacts-mcp-server)Source : Registre officiel MCP · relevé le 2 déc. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.