Labsco
MCP SERVER

OpenFoodTox Food Chemical Hazards

by spyrosze

Ask EFSA's chemical hazards database whether a substance is safe, and at what intake.

Physical Sciences & Scientific Computing
Summary
It is a snapshot, and the date is the thing to quote.

The bundled dataset is the EFSA release of 14 September 2023, which is what makes queries fast and offline — and what means an answer reflects that release rather than today's science. The project says so itself: for regulatory or legal use, go back to the original EFSA scientific outputs. Within those bounds it answers the questions that genuinely take a long time by hand, like listing every additive in a class flagged carcinogenic.

What it is

A local server over EFSA's OpenFoodTox database — the European Food Safety Authority's compiled toxicological reference values for food additives, contaminants, pesticides and feed additives. Questions that would otherwise mean cross-referencing spreadsheets become single lookups.

What you get
  • Search Substance finds a substance by name, E-number or description
  • Get Substance Safety Assessment returns the mutagenic, genotoxic and carcinogenic flags
  • Get Toxicity Endpoints returns study data including NOAEL, LD50 and target organs
  • Get Risk Assessments returns safe intake limits — ADI and TDI values — with their safety factors
  • Get Genotoxicity Details returns test guidelines and results
  • Get Opinions retrieves EFSA opinion documents with publication dates, DOIs and regulation information
  • List Substances by Class and Safety filters by category and safety criteria; List Substances by Assessment filters by ADI/TDI range, assessment type and population group
  • The bundled dataset holds 8,006 chemical substances, 45,582 alternative names and 54,621 study records from 2,437 scientific assessments, including 11,357 risk assessments and 11,698 toxicity endpoints
Requirements

Python 3.12+ and the uv package manager. Published as mcp-openfoodtox version 0.1.0. Setup is two steps: `make setup` creates the environment, installs dependencies and builds the local database — required on first run — then `make claude` registers the server, or you add it by hand pointing at the project's `.venv/bin/python` and `main.py`. No account, no key, no network at query time: the EFSA dataset ships with the project, in the version updated 14 September 2023.

Setup effort

Build from source — clone the repository and build it, then point your client at the binary