Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add cyanheads/openfoodfacts-mcp-server --skill openfoodfacts-guidegit clone --depth 1 https://github.com/cyanheads/openfoodfacts-mcp-serverWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/cyanheads/openfoodfacts-mcp-server/openfoodfacts-guide)<a href="https://agentmods.dev/skills/cyanheads/openfoodfacts-mcp-server/openfoodfacts-guide"><img src="https://agentmods.dev/badge/skills/cyanheads/openfoodfacts-mcp-server/openfoodfacts-guide/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/cyanheads/openfoodfacts-mcp-server/openfoodfacts-guide"><img src="https://agentmods.dev/badge/skills/cyanheads/openfoodfacts-mcp-server/openfoodfacts-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00099 | $0.01526 |
| Opus 5.5 | $0.00040 | $0.00610 |
| Sonnet 5.5 | $0.00020 | $0.00305 |
| Haiku 4.5 | $0.00010 | $0.00153 |
Grade A, and why
openfoodfacts-guide scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 42 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Scope
Packaged, barcoded foods as Open Food Facts contributors recorded them: label text, declared allergens and traces, additives, Open Food Facts' computed grades, and nutrition per 100 g (per 100 ml for liquids) and per serving. It is not a verdict on whether a food is safe for a particular person, and it holds no recalls. Reference composition for generic, unbranded foods belongs to a food-composition database such as USDA FoodData Central.
Identifiers
| Identifier | Where it comes from |
|---|---|
| Barcode | The user (a scan or the pack), or the rows of off_search_products. One product has many barcodes — sizes, regional editions, reformulations — and each is a separate record with its own completeness and grades. |
Tag ID (en:organic, en:nuts) |
off_browse_taxonomy, or the tag arrays on a product record. The same ID can mean different things in different facets: the category en:nuts holds peanut products, while the allergen en:nuts means tree nuts. |
| Category tags | A record carries its category's ancestors too (a pistachio row lists en:snacks, en:salty-snacks, en:nuts, en:pistachios), so a broad category filter also matches products filed under its subcategories. |
| Off-taxonomy entries | A product's tag arrays can hold contributor entries the taxonomy never canonicalized: a non-en: prefix or display text with capitals, spaces, or accents (fr:Goûter, en:Pâtes à tartiner). Don't reuse one as a filter value; resolve the concept with off_browse_taxonomy first. |
Gates
- Allergy questions: never answer "safe" or "free of X". Report what the record says and how far it goes. Read all three sources:
ingredients_text(in the label's own language, often with allergens emphasized in capitals or brackets),allergens_tags, andtraces_tags. An emptytraces_tagsmeans no trace data was entered, not that the label carries no warning. When the three disagree, say the record is unreliable: a record can carry a truncated ingredients text beside allergen tags that text cannot support. End by pointing the user to the physical label. - Nut allergies need two tags.
en:nutsmeans tree nuts; peanuts are the separateen:peanuts. Check both on the record, and pass both to exclude_allergens or exclude_traces. - Free-from searches start from a positive claim. An exclusion alone also passes every product with no allergen data entered, so select first on something the record asserts: a label (
en:no-gluten,en:vegan) or a free-from category (en:gluten-free-pasta). Add the exclusion on top, then confirm shortlisted barcodes with off_get_product. For vegan, the ingredients-analysis verdicten:veganis Open Food Facts' computation from the parsed ingredients, while the labelen:veganis a claim printed on the pack. They are different evidence, so say which one you used. - Grade ranges take one call per grade. nutrition_grade and nova_group each take a single value. For "Nutri-Score B or better", search once with
aand once withb, then merge the results. A product with no grade drops out of both searches. - A product named without a barcode: pick a barcode deliberately. Don't take the first search row on faith. Records for one product can carry different Nutri-Score and NOVA grades even when their nutrition is identical, when one record's ingredient list or other entered data is incomplete. Prefer the user's own barcode. Otherwise sort by unique_scans_n, favor high completeness, and name the barcode the answer came from.
- Grades are Open Food Facts' computation from the record, not the grade printed on the pack. When a user quotes a different grade, the record's data is the first suspect: check its
completeness,data_quality_tags, and ingredient list. - Spend searches one at a time. The search budget is about 10 upstream requests a minute on the default configuration. The server process holds it, so every caller of a shared deployment draws from it, and each retry of a failing request spends its own slot. Never fan out parallel searches; when the budget runs out, the error's
data.retryAftergives the wait. Product lookups draw on a separate budget, but off_compare_products spends one lookup from it per barcode, the same as off_get_product.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 42 lines · 99 tokens per session scan A 04d7e385c94c
openfoodfacts-guide is a skill published in the GitHub repository cyanheads/openfoodfacts-mcp-server (1 stars, last pushed 2d ago), licensed Apache-2.0. It adds 99 tokens to every session and 1,526 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-28.
Other skills, from other repositories
open-meteo-guide
Tool choice, gates, and workflows for the openmeteo weather tools, covering threshold odds from the ensemble, frost, anomalies against a normal, 2050 projections, surf spots, river flood outlooks, and air quality for a set hour. Use before answering a weather, climate, marine, river, or air-quality question from…
ensembl-guide
Gates and identifier chains for the ensembl tools. Covers checking a coordinate's assembly before you pass it in, finding a gene's counterpart in another species through homology, reading multi-allelic and capped VEP results, and which Ensembl object holds the UniProt, RefSeq, GO, and PDB references. Use when an…
noaa-spaceweather-guide
Judgment for the noaaspaceweather tools — turning SWPC Kp, storm scales, solar wind, flares, and alerts into answers about aurora visibility tonight, coming geomagnetic storms, radio blackouts, and impacts on HF radio, GPS, satellites, and power grids. Use before answering an aurora or space-weather question with…
noaa-marine-guide
Gates and conventions for the noaamarine tools (NOAA CO-OPS tides, tidal currents, water levels; NDBC buoys). Covers which station serves which tool, why a place-name search misses, time-zone and direction conventions across the two sources, and what the server cannot answer (forecasts, warnings, past buoy readings).…
usgs-water-guide
Gates and workflows for the water tools over USGS stream gages and groundwater wells. Covers whether a river or aquifer is high or low right now, telling live gages from discontinued ones, reading depth-to-water rankings (they run inverted), finding the parameter code a site actually reports, time zones and data lag…
omh-geospatial-analysis
This is an OMH geospatial-analysis workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).