@pipeworx/rasff
by pipeworx-io
README.md
# @pipeworx/rasff
Live search of the European Commission's Rapid Alert System for Food and Feed
(RASFF): the notifications EU/EEA food-safety authorities raise about unsafe
food, feed and food-contact materials, with product, hazard, risk decision,
measures taken and the countries involved.
Part of [Pipeworx](https://pipeworx.io) — 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
- `rasff_search_notifications(query?, days?, date_from?, date_to?, product_category?, hazard_category?, risk_decision?, classification?, action_taken?, product_type?, notifying_country?, origin_country?, distribution_country?, reference?, limit?, page?, include_hazards?)`
— notifications newest first. Each row has the reference, date, subject,
product, hazard (with `hazard_source`), hazard categories, risk decision,
classification, notifying and origin countries, distribution countries,
measures taken and a link to the record's page. Answers "which Salmonella
notifications were raised in the last 90 days?", "aflatoxin border rejections
of Turkish produce", "serious-risk recalls distributed to the Netherlands".
Zero matches is an explicit empty answer (`empty_reason`, `note`), not an
error.
- `rasff_get_notification(reference)` — one notification by reference (e.g.
`2026.10647`): every finding with the measured result, permitted level,
sampling date and legislation, the risk decision, measures taken and by whom,
notifying / origin / distribution / for-attention / operator countries,
follow-ups and national consumer-information links. An unknown reference
answers `found: false`.
- `rasff_filter_values(kind)` — the closed vocabularies the search accepts:
product categories, hazard categories, risk decisions, classifications,
measures taken, notification bases, product types, countries, notifying
countries.
## Auth
Keyless. The RASFF Window is public; no registration.
## Data sources
- European Commission (DG SANTE), RASFF Window — the public view of RASFF
notifications, read live on every call.
Notes for the next builder:
- Filters take ids, not names. The pack resolves names and ISO alpha-2 codes
against the Window's own lists, one lookup per filter used. Origin and
distribution countries use the country list; the notifying country uses the
RASFF network-member list, which has different ids for the same country.
- Text search matches the notification subject only. The subject names hazard
and product ("Salmonella Infantis in chilled chicken breast from Ukraine").
- Search rows carry no hazard or product name. With `include_hazards` (default)
the pack loads each row's full record, up to 25 per call, five at a time.
Some public records carry no laboratory findings; then the hazard comes from
the risk assessment or, failing that, the subject line before " in ", and
`hazard_source` says which.
- Dates are day-granular and both ends are inclusive. Upstream times are
Brussels local time, returned as given without a zone.
- The upstream page size must be under 100; the pack caps at 25.
- The record's `additionalInformations` block names the officials who filed
it (contact persons). The pack drops it and returns no personal names.
## Quick Start
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
```json
{
"mcpServers": {
"rasff": {
"url": "https://gateway.pipeworx.io/rasff/mcp"
}
}
}
```
### What this endpoint actually serves
`tools/list` at `https://gateway.pipeworx.io/rasff/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/rasff/mcp?meta=1` lists 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 own `tools/list` is the
exact answer on any given day).
- `https://gateway.pipeworx.io/rasff/mcp?meta=0` lists 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:
```json
{
"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
```bash
curl -X POST https://gateway.pipeworx.io/v1/tools/rasff_search_notifications \
-H 'Content-Type: application/json' \
-d '{"query":"salmonella","days":90,"limit":5}'
```
No account needed for the first calls. Inspect any tool: `GET https://gateway.pipeworx.io/v1/tools/rasff_search_notifications`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.
## Run it from npm
`@pipeworx/mcp-rasff` 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/rasff/mcp` endpoint shown above. It needs network access;
there is no offline mode.
```json
{
"mcpServers": {
"rasff": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-rasff"]
}
}
}
```
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 Rasff data" })
```
The gateway picks the right tool and fills the arguments automatically.
## More
- [Docs and guides](https://pipeworx.io/docs)
- [pipeworx.io](https://pipeworx.io)
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessOutdated data