
fda-food-substances
io.github.pipeworx-io/fda-food-substances
fda-food-substances: US FDA 'Substances Added to Food' inventory (formerly EAFUS). Two tools…
Documentation
@pipeworx/fda-food-substances
US FDA Substances Added to Food inventory (formerly EAFUS): look up a food substance by name or CAS number and read what it is used for and which 21 CFR sections cite it.
Part of Pipeworx — an MCP gateway connecting AI agents to 2075+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
Tools
fda_food_substance_search(query, limit?, offset?)— matches substances by name, partial name, CAS number or technical effect (for example "aspartame", "22839-47-0", "sweetener"). Returns each substance's id, CAS number, uses and 21 CFR sections. Returnsfound: falsewhen nothing matches.fda_food_substance_get(substance_id | name)— one substance: CAS number, other names, technical effects (used for), and the food additive and GRAS regulations (21 CFR Parts 170-186) that cite it, each with a link to the regulation text. Returnsfound: falsefor an unknown substance.
Auth
Keyless.
Data sources
- US Food and Drug Administration, Human Foods Program, Substances Added to Food inventory (formerly EAFUS). Live lookups; nothing is stored. The inventory is a partial list of food ingredients: inclusion is not an FDA approval or evaluation of a use.
Some substances (for example flavouring substances) carry FEMA or JECFA numbers instead of, or beside, a 21 CFR citation; those come back under other_fields and cfr_citations may be empty for them.
Quick Start
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
{
"mcpServers": {
"fda-food-substances": {
"url": "https://gateway.pipeworx.io/fda-food-substances/mcp"
}
}
}
What this endpoint actually serves
tools/list at https://gateway.pipeworx.io/fda-food-substances/mcp returns the tools in the table
above plus five Pipeworx tools: ask_pipeworx, discover_tools, ask_pipeworx_grounded, company_register_search and company_facts.
ask_pipeworx answers a question this pack does not cover by routing across the
whole catalog, without adding a second MCP server.
Add an option to the same URL:
https://gateway.pipeworx.io/fda-food-substances/mcp?meta=1lists this pack's tools plus up to 48 shared Pipeworx tools (48 when this README was generated; a connection without an account lists fewer, and its owntools/listis the exact answer on any given day).https://gateway.pipeworx.io/fda-food-substances/mcp?meta=0lists this pack's tools alone.
Or connect to the full Pipeworx gateway to get every pack's tools listed directly, instead of just this one's:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
Both URLs reach the same gateway and the same 2075+ data sources. The
only difference is which pack's tools are listed directly; ask_pipeworx
reaches all of them from either one (it is not listed on a ?meta=0 connection).
No MCP client? Call it over HTTP
curl -X POST https://gateway.pipeworx.io/v1/tools/fda_food_substance_search \
-H 'Content-Type: application/json' \
-d '{"query":"aspartame"}'
No account needed for the first calls. Inspect any tool: GET https://gateway.pipeworx.io/v1/tools/fda_food_substance_search. Find one: POST https://gateway.pipeworx.io/v1/tools/search_packs with {"query":"..."}.
Run it from npm
@pipeworx/mcp-fda-food-substances is a local stdio bridge to the Pipeworx gateway: your MCP client
starts it with npx, and it forwards every call to the same
https://gateway.pipeworx.io/fda-food-substances/mcp endpoint shown above. It needs network access;
there is no offline mode.
{
"mcpServers": {
"fda-food-substances": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-fda-food-substances"]
}
}
}
Without a key it calls anonymously, capped at 50 calls a day. A free account
raises that to 200 a day: get a key at https://pipeworx.io/signup and add
"env": { "PIPEWORX_API_KEY": "<your key>" } to the server entry.
The key is sent as a Bearer token, the same way a hosted connection sends it,
so calls are metered and billed exactly as they are there.
It lists only this pack's tools by default. Set PIPEWORX_META_TOOLS=1 to
also list ask_pipeworx and the other gateway-wide tools.
Behind an HTTPS proxy: Node's built-in fetch does not read HTTPS_PROXY by
default. Newer Node releases honour it when NODE_USE_ENV_PROXY=1 is set; check
your Node version's documentation.
Using with ask_pipeworx
Instead of calling tools directly, you can ask questions in plain English — this works on the pack endpoint above as well as on the full gateway:
ask_pipeworx({ question: "your question about Fda Food Substances data" })
The gateway picks the right tool and fills the arguments automatically.
More
License
MIT
@pipeworx/mcp-fda-food-substancesnpm install @pipeworx/mcp-fda-food-substances