@pipeworx/jecfa
Connect: https://gateway.pipeworx.io/jecfa/mcp · Install: one-click buttons
Tools: 6
Safety evaluations from the Joint FAO/WHO Expert Committee on Food Additives: Acceptable Daily Intakes (ADIs), the committee’s conclusions, dietary-exposure findings, and the meeting reports and toxicological monographs behind them — for food additives, flavourings, food contaminants and veterinary drug residues.
JECFA is the body whose ADI a regulator cites when it sets a limit. This pack answers “has this substance been evaluated, and what intake did the committee judge acceptable” — not “is it permitted in yogurt in the EU”, which is the Codex GSFA / national-regulator question.
Tools
| Tool | What it answers |
|---|---|
jecfa_search | Look up by substance name, CAS number, or INS/E-number → ADI, CAS, functional class, chemical id |
jecfa_chemical | Full record for one id: synonyms, INS, and every evaluation JECFA has made — year, ADI, conclusions, intake findings, meeting number, TRS report, tox monograph |
jecfa_by_functional_class | Every substance in a class (sweetener, preservative, colour…) or in one of the four groups |
jecfa_functional_classes | The 71-class vocabulary, so a caller knows the exact name to pass |
jecfa_by_number | Resolve a FEMA or JECFA substance number |
jecfa_recent_evaluations | What the committee has looked at most recently |
Coverage
3,245 substances: 777 food additives, 2,289 flavouring agents, 115 veterinary drugs, 64 food contaminants. Evaluations run from the committee’s earliest meetings to the present — aspartame, for instance, carries evaluations from 1981 through the 2023 re-evaluation at meeting 96.
Auth
None. Keyless, no registration, no quota.
Data sources
- Database: https://apps.who.int/food-additives-contaminants-jecfa-database/
- About JECFA: https://www.fao.org/food-safety/scientific-advice/jecfa/en/
The database has no documented API. The endpoints this pack calls are the ones backing the site’s own Kendo grid, read off the page. They are undocumented and unversioned, so they can drift without notice; the pack’s own gotcha comments (top of src/index.ts) record the shapes that were verified live.
Gotchas
Five upstream behaviours produce confidently wrong answers if taken at face value. All are guarded in the pack, but they matter if you extend it:
-
/SearchChemical/ByPartialNamefabricates a row. It prepends your query string as a result withId: 0and a blank ADI — the UI’s “search for this literal text” affordance. Pass it through and you have invented a substance that was never evaluated. The pack drops every row withId <= 0. -
The same endpoint returns
CAS_NO: nulleven when you searched by CAS. Searching50-70-4correctly finds SORBITOL, then reports its CAS as null. Only/ChemicalData/GetBy/par/returns populated records, which is whatjecfa_searchactually calls. -
/ChemicalData/GetBy/fir/wants the character, not the id. Its companion/FilterData/Get/FirstCharacterhands you{"Id": 65, "Name": "A"}; passing65returns HTTP 500, passingAreturns 501 rows. -
INS/E-numbers are not searchable at all.
ByPartialName/951returns zero rows — INS numbers exist only on the server-rendered detail page. Sojecfa_searchresolves them throughINS_INDEX, a build-time harvest of all 777 additive detail pages (486 carry an INS). Regenerate withnode mcps/jecfa/scripts/build-ins-index.mjsafter a meeting adds substances. -
Detail-page citation rows use a different CSS class than every other field. ADI, comments, intake and meeting render in
col-sm-8; the Report, Tox Monograph and Specification rows render incol-**md**-8and wrap their text in an<a>. A parser matching onlycol-sm-8returnsnullfor all three — which reads as “JECFA published no report for this evaluation” when in fact the link to the TRS PDF was right there. Theurlon each citation is upstream’s own, usually a direct PDF oniris.who.int.Bare INS numbers are genuinely ambiguous — INS 160 denotes 19 separately evaluated carotenes — so the index maps each key to a list and
jecfa_searchreturns every candidate withambiguous: truerather than picking one. Upstream writes sub-forms inconsistently (100(i)and100iboth occur), so keys are normalized to alphanumerics; the generator and the pack must keep using the same normalization or every lookup silently misses.
Tools
- jecfa_search — Look up a food additive, flavouring, contaminant or veterinary drug in the WHO/FAO JECFA database by substance name, CAS number, or INS/E-number (E951, INS 951, 160a). Returns the Acceptable Daily Int
- jecfa_chemical — Fetch the complete JECFA record for one substance by its chemical id: chemical and synonym names, CAS and INS numbers, functional class, and every safety evaluation JECFA has made of it — evaluation y
- jecfa_by_functional_class — List every substance JECFA has evaluated in one functional class — sweeteners, preservatives, colours, emulsifiers, antioxidants and so on — or every substance in one of the four groups: food_additive
- jecfa_functional_classes — List the JECFA functional-class vocabulary — the 71 technological purposes a substance can be evaluated under (sweetener, emulsifier, antioxidant, humectant…), grouped into food additives, flavouring
- jecfa_by_number — Resolve a FEMA number or a JECFA substance number to its evaluated substance. These identifiers appear in flavouring literature and JECFA meeting reports. For INS/E-numbers use jecfa_search instead.
- jecfa_recent_evaluations — Show the substances most recently added or re-evaluated by JECFA, with their current ADI and functional class. Use to check what the committee has looked at lately rather than to look up a known subst
Tools
-
jecfa_by_functional_class— List every substance JECFA has evaluated in one functional class — sweeteners, preservatives, colours, emulsifiers, antioxidants and so on — or every substance in one of the four groups: food_additive -
jecfa_by_number— Resolve a FEMA number or a JECFA substance number to its evaluated substance. These identifiers appear in flavouring literature and JECFA meeting reports. For INS/E-numbers use jecfa_search instead. -
jecfa_chemical— Fetch the complete JECFA record for one substance by its chemical id: chemical and synonym names, CAS and INS numbers, functional class, and every safety evaluation JECFA has made of it — evaluation y -
jecfa_functional_classes— List the JECFA functional-class vocabulary — the 71 technological purposes a substance can be evaluated under (sweetener, emulsifier, antioxidant, humectant…), grouped into food additives, flavouring -
jecfa_recent_evaluations— Show the substances most recently added or re-evaluated by JECFA, with their current ADI and functional class. Use to check what the committee has looked at lately rather than to look up a known subst -
jecfa_search— Look up a food additive, flavouring, contaminant or veterinary drug in the WHO/FAO JECFA database by substance name, CAS number, or INS/E-number (E951, INS 951, 160a). Returns the Acceptable Daily Int