# EU Medical Device Field Safety Notices & Recalls (MCP) (`fact-olol/eu-medtech-vigilance`) Actor

MCP server: medical device field safety notices and recalls from UK MHRA, France ANSM and Spain AEMPS, grouped by action, for regulatory and vigilance teams.

- **URL**: https://apify.com/fact-olol/eu-medtech-vigilance.md
- **Developed by:** [fact-olol](https://apify.com/fact-olol) (community)
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $30.00 / 1,000 corrective action returneds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## EU Medical Device Field Safety Notices & Recalls (MCP)

Medical device field safety notices, recalls and safety information from the UK MHRA, France's ANSM and Spain's AEMPS, as an MCP server for AI agents: one result per corrective action across countries, each linked to the official sources.

Built for regulatory affairs, quality, post-market surveillance, vigilance and clinical engineering teams that need to know when a device they make, sell, buy or maintain is subject to a field safety corrective action (FSCA) in Europe, without reading three national websites in three languages every day.

### What you get

- **Three authorities, one feed:** MHRA (GB), ANSM (FR) and AEMPS (ES), updated every day.
- **Grouped by corrective action:** when the same action is published in several countries you get one item with every national publication (date, reference, official link), not three unrelated records. Uncertain matches are never merged: they are listed as `possible_duplicate_of`.
- **Monitoring built in:** `watch` returns only what appeared since your last check, for a watchlist of manufacturers, keywords, countries and action types.
- **Traceable:** every publication has `source_url`, authority, `published_at` and `fetched_at`; documents are links to the official files, never copies.
- **Short answers for agents:** 10 actions per page by default (at most 20), compact fields, errors returned as data with a hint.

### Connect

The Actor runs in Standby mode as an MCP server (Streamable HTTP). Use your Apify API token as a Bearer token.

- Direct endpoint: `https://fact-olol--eu-medtech-vigilance.apify.actor/mcp`
- Through the Apify MCP server: `https://mcp.apify.com/?tools=fact-olol/eu-medtech-vigilance`

Example client configuration:

```json
{
  "mcpServers": {
    "eu-medtech-vigilance": {
      "url": "https://fact-olol--eu-medtech-vigilance.apify.actor/mcp",
      "headers": { "Authorization": "Bearer <YOUR_APIFY_TOKEN>" }
    }
  }
}
```

### Tools

| Tool | Use it to | Charged |
| --- | --- | --- |
| `search_notices` | Find corrective actions by words, manufacturer, device, country, action type or publication date | per action returned; less for a search with no results |
| `watch` | Get only the actions that appeared since your last check, for scheduled monitoring | per check, plus per action returned |
| `notice_detail` | See one action with every national publication in full | as one action returned |
| `health` | Check that each source is fresh | free |

#### `search_notices`

Parameters: `query` (words), `manufacturer`, `device`, `countries` (`GB`, `FR`, `ES`), `action_types` (`recall`, `field_safety_notice`, `safety_information`, `other`), `date_from` and `date_to` (`YYYY-MM-DD`), `limit` (1–20, default 10), `cursor`.

```json
{"manufacturer": "Sysmex", "limit": 3}
```

Response (shortened; real data of 2026-11-23):

```json
{
  "items": [
    {
      "id": "fsca_1073dc09b11b",
      "title": "SYSMEX CORPORATION: CN-3000, CN-6000, CN-3500, CN-6500",
      "manufacturer": "Sysmex Corporation Japan",
      "device_names": ["Analizadores de la serie CN: CN-3000, CN-6000, CN-3500 y CN-6500", "CN-3000", "CN-6000"],
      "action_type": "field_safety_notice",
      "product_class": "ivd",
      "countries": ["ES", "FR", "GB"],
      "publications": [
        {"notice_id": "aemps:2026-523", "country": "ES", "published_at": "2026-10-29", "source_url": "https://alertasps.aemps.es/alertasps/documentos/115980", "authority_reference": "2026-523"},
        {"notice_id": "ansm:R2632263", "country": "FR", "published_at": "2026-11-03", "source_url": "https://ansm.sante.fr/informations-de-securite/hemostase-automates-cn-series-cn-3000-cn-3500-cn-6000-cn-6500-sysmex", "authority_reference": "R2632263"},
        {"notice_id": "mhra:2026/010/023/601/142", "country": "GB", "published_at": "2026-11-04", "source_url": "https://www.gov.uk/drug-device-alerts/field-safety-notices-26-to-30-october-2026#sysmex-corporation-cn-3000-cn-6000-cn-3500-cn-6500", "authority_reference": "2026/010/023/601/142"}
      ],
      "documents": [{"url": "https://ansm.sante.fr/uploads/2026/11/03/20261103-mes-automates-cn-sysmex.pdf", "title": "Courrier de la société Sysmex", "published_at": "2026-11-03"}],
      "first_published_at": "2026-10-29",
      "notice": "Informational only, not medical advice. Follow the manufacturer's notice and the linked official source.",
      "possible_duplicate_of": []
    }
  ],
  "total": 5,
  "next_cursor": "eyJvIjozfQ",
  "data_as_of": "2026-11-23T16:28:44.465Z"
}
```

#### `watch`

Parameters: `watchlist` (`manufacturers`, `keywords`, `countries`, `action_types`; empty = everything), `since_token`, `limit` (1–20, default 10).

First run without `since_token` (you get the last 7 days), then store `next_token` and pass it on the next run. If `has_more` is true, call again at once with `next_token`. An action you already received comes back only when another authority publishes it; `new_publication_ids` lists the new publications.

```json
{"watchlist": {"manufacturers": ["Medtronic", "Abbott"], "countries": ["GB", "FR"], "action_types": ["recall"]}, "since_token": "<next_token of the previous call>"}
```

Response: `{"items": [...actions as in search_notices, each with "new_publication_ids"...], "has_more": false, "next_token": "eyJ2Ijoy…", "data_as_of": "2026-11-23T16:28:44.465Z"}`

#### `notice_detail`

```json
{"id": "ansm:R2633187"}
```

Accepts an action id (`fsca_…`) or a publication id (`mhra:…`, `ansm:…`, `aemps:…`). Returns `action` (as in `search_notices`), `notices` (each national publication in full: title as published, manufacturer, device names, models, device type, authority and FSCA references, notice date, last update, documents) and `possible_duplicates`.

#### `health`

```json
{"status": "ok", "sources": [{"id": "mhra", "state": "ok", "last_success_at": "2026-11-23T16:28:44.465Z", "age_hours": 0.4, "max_age_hours": 48, "record_count": 559, "snapshot_version": "20261123T162844Z-9c22748ef5ab"}, "…ansm 761, aemps 681"]}
```

#### Errors and empty results

Errors are data, not crashes: `{"error": {"code": "INVALID_INPUT", "message": "countries.0: Invalid option: expected one of \"GB\"|\"FR\"|\"ES\"", "hint": "Check parameter names, types and allowed values in the tool description."}}`. Codes: `INVALID_INPUT`, `NOT_FOUND`, `SOURCE_UNAVAILABLE`, `TIMEOUT`, `CHARGE_LIMIT_REACHED`. A search with no results returns empty `items` with `"code": "NO_RESULTS"` and a hint. When a country you asked for has no fresh data, the response carries a `warning`.

### Sources and updates

| Authority | Country | What is included | Reuse terms |
| --- | --- | --- | --- |
| MHRA | GB | Weekly field safety notice lists, Device Safety Information, device National Patient Safety Alerts | Open Government Licence v3.0 |
| ANSM | FR | Safety information on medical devices and IVDs (recalls and information to users) | French public information reuse (CRPA), citing source and date of last update |
| AEMPS | ES | Medical device alerts and safety information notes | Reproduction allowed citing the source; reuse of public sector information (RD 1495/2011) |

- **Update:** once a day. A notice may reach the feed up to a day after it appears on the authority's site. `health` shows the age of each source.
- **History:** the last 12 months of each source, plus every notice collected since 2026-11-23 (the archive keeps growing).
- **Not included (yet):** other countries, including Italy (Ministero della Salute), Germany (BfArM), Ireland (HPRA) and Switzerland (Swissmedic): their terms or technical protections do not allow automated reuse without permission. Medicines are out of scope.

### Pricing

Pay per event: you pay only for results you receive, and nothing for platform usage on top (the server runs on the developer's account).

| Event | When | Price |
| --- | --- | --- |
| Action returned (primary event) | each corrective action returned by `search_notices`, `watch` or `notice_detail`, with all its national publications | $0.03 |
| Empty search | a `search_notices` call with no results (instead of the primary event) | $0.01 |
| Watch check | each `watch` call, with or without new actions | $0.02 |
| `health`, invalid input, errors | never charged | free |

Examples: a search that returns 10 actions costs $0.30; a daily `watch` with nothing new costs $0.02 (about $0.60 a month); a `watch` with 3 new actions costs $0.11. Use `limit` to receive fewer actions per call. Users on the Apify free plan have the same tools and limits.

### Limits

- 10 actions per page by default, at most 20; cursor (`search_notices`) or token (`watch`) for more.
- Each tool answers within 10 seconds or returns `TIMEOUT`.
- Typical response sizes: one action about 1,200 characters; a page of 10 actions up to about 21,000 characters.
- The first call after a period of inactivity can take a few seconds while the server starts; the following calls answer in about one second.

### Data quality and known limitations

- **Grouping across countries** uses FSCA references, document links, device words and codes within a date window, and never merges conflicting manufacturers, models, product classes or references. Measured on a hand-checked golden set inside the real feed: precision 1.000 (no wrong merge), recall 0.893; the missed links are flagged as `possible_duplicate_of`. Some actions published in several countries may still appear as separate items.
- **Fields from the source pages only:** manufacturer letters (PDF) are linked, not read. Models, FSCA references and notice dates are therefore often empty for ANSM and AEMPS; MHRA does not mark IVDs (`product_class: "unknown"`).
- **As published:** titles and device names stay in the original language and spelling of each authority.

### Intended use and terms

Information for regulatory, quality, vigilance and clinical engineering professionals. It is not legal, regulatory or medical advice, does not replace the official sources or the manufacturer's notice, and must be checked by a qualified person before any relevant decision. It is not a medical device: it has no diagnostic, therapeutic or patient monitoring purpose.

Use of this Actor is governed by the Apify Standard Actor Contract. The data comes from public sources under the reuse terms listed above; links point to the official documents.

### Privacy

The feed contains no personal data: contact names, e-mail addresses and phone numbers are removed from every record, and only companies and public bodies are named. The server does not store or log the parameters of your calls; the `watch` position lives only in the `next_token` you keep.

### Changelog

- **0.1.5 (2026-11-23):** prices set ($0.03 per action, $0.01 per empty search, $0.02 per watch check); per-request charging for the shared server.
- **0.1 (2026-11):** first version: `search_notices`, `watch`, `notice_detail`, `health`; MHRA, ANSM and AEMPS; grouping by corrective action; daily update with archive.

### In italiano

Avvisi di sicurezza (FSN), richiami e informazioni di sicurezza sui dispositivi medici pubblicati da MHRA (Regno Unito), ANSM (Francia) e AEMPS (Spagna), raggruppati per azione correttiva, come server MCP per agenti. Quattro strumenti: `search_notices` per cercare, `watch` per la sorveglianza periodica, `notice_detail` per il dettaglio, `health` (gratuito) per la freschezza dei dati. Aggiornamento giornaliero, link solo alle fonti ufficiali, nessun dato personale. Uso informativo per professionisti: non è consulenza legale o medica, non sostituisce la fonte ufficiale né l'avviso del fabbricante e non è un dispositivo medico. Le fonti italiane non sono incluse: i termini del Ministero della Salute non permettono, per ora, il riuso automatico.

### Development

This package holds the data schema, the connectors, the daily feed update, the clustering and the MCP server (Apify Server Actor, from the template `ts-mcp-empty`).

#### Connectors

| Source | File | How it reads the source |
| --- | --- | --- |
| MHRA | `src/connectors/mhra.ts` | GOV.UK Search API (device alerts updated in the last 365 days), then one Content API request per page, one request per second. Weekly field safety notice lists give one notice per entry; Device Safety Information and device National Patient Safety Alerts give one notice per page. Manufacturer PDFs on `mhra-gov.filecamp.com` are linked, never downloaded (its robots.txt disallows all automated access). |
| ANSM | `src/connectors/ansm.ts` | Safety information list of ansm.sante.fr filtered on medical devices and IVDs (20 items per page, ordered by last change), read back 365 days; every item gives one notice. Detail pages are read only for the links to the manufacturer letters, and only for items that are new, have no letter yet or changed in the last 7 days (at most 200 per run); the others reuse the letters of the previous snapshot. Titles "type – device – manufacturer" are split at the dashes; a closing segment about the action ("– Rappel de produit et conduites à tenir") is not taken as the manufacturer. `updated_at` keeps the date of last update, as the reuse terms (CRPA) require. Letters are linked, never downloaded. |
| AEMPS | `src/connectors/aemps.ts` | Public JSON API of the alerts app (`alertasps.aemps.es`, alerts published in the last 365 days, pages of 100), then the yearly lists of medical device safety notes on `www.aemps.gob.es` and one request per note. Each alert gives one notice (`aemps:2026-548`); each safety note gives one notice (`aemps:PS-46/2026`). PDFs are linked, never downloaded. |

Every request identifies the service (`src/feed.ts`: user agent with a contact, robots.txt, at least one second between requests to the same site, retries with backoff). Page text is untrusted data: connectors only read it into plain strings and never store page bodies. Free-text fields go through the personal-data sanitizer of `@agent-factory/shared` (`src/sanitize.ts`).

#### Daily update

`scripts/update-feed.ts`, run every day by `.github/workflows/eu-medtech-vigilance.yml`: previous snapshot, connectors, pipeline, snapshot published as an asset of the pre-release `snapshot-eu-medtech-vigilance`. The run fails, and GitHub emails it, when a source fails, returns zero records or drops below half of its previous records; that source keeps its previous records.

- **Archive:** a notice that a source stops returning because it left the 365-day window (last update for the ANSM, publication otherwise, with a 7-day margin: `keepInArchive` in `src/feed.ts`) stays in the snapshot, so the id of a corrective action (`fsca_…`, from its first publication) never changes. A notice that disappears inside the window was withdrawn by the source and is dropped.
- **`first_seen_at`:** when a notice first appeared in the data (publication time for notices published before 2026-11-23). `watch` delivers by this time.
- **Stable ANSM ids:** a page keeps the id of the previous snapshot, so an id never moves to another page sharing the same ANSM number.

#### Data model and clustering

`src/schema.ts`: `Notice` (one publication by one authority) and `NoticeCluster` (one corrective action, the item returned by search). Readable ids (`mhra:2026/010/023/601/142`, `ansm:R2633187`, `aemps:PS-46/2026`) and stable cluster ids (`fsca_` + 12 hex characters). `src/cluster.ts` configures the generic `clusterRecords` of `@agent-factory/core-feed`; the Actor computes the clusters when it loads a snapshot (about 0.1 s for 2,000 notices).

#### Commands

```bash
npm test --workspace actors/eu-medtech-vigilance
## Local feed run: real requests to the sources, nothing published
FEED_SNAPSHOT_FILE=snapshot.json.gz node actors/eu-medtech-vigilance/scripts/update-feed.ts
## Reports: one source, clustering, personal data
node actors/eu-medtech-vigilance/scripts/source-report.ts snapshot.json.gz mhra
node actors/eu-medtech-vigilance/scripts/cluster-report.ts --snapshot snapshot.json.gz
node actors/eu-medtech-vigilance/scripts/pii-report.ts snapshot.json.gz
## Local MCP server on a downloaded snapshot (free mode)
npm run build --workspace actors/eu-medtech-vigilance
SNAPSHOT_FILE=snapshot.json.gz ACTOR_WEB_SERVER_PORT=3011 node actors/eu-medtech-vigilance/dist/main.js
npx @modelcontextprotocol/inspector --cli http://127.0.0.1:3011/mcp --transport http --method tools/list
```

The Actor reads the snapshot from `SNAPSHOT_FILE` (local runs) or from the release `snapshot-eu-medtech-vigilance`, with a read-only token in the secret environment variable `GITHUB_SNAPSHOT_TOKEN` (set in the Apify Console only, never in `actor.json`).

# Actor input Schema

## Actor input object example

```json
{}
```

# Actor output Schema

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("fact-olol/eu-medtech-vigilance").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("fact-olol/eu-medtech-vigilance").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call fact-olol/eu-medtech-vigilance --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fact-olol/eu-medtech-vigilance"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/WqzmAnITroluPLEW7/builds/XlgP5bBDKcrrQDtXo/openapi.json
