# openFDA MCP Server (Recalls, Adverse Events, Drug Labels) (`oddsdesk/openfda-mcp-server`) Actor

MCP server that gives AI agents official FDA data from openFDA: food, drug and device recalls, top reported adverse reactions for a drug (FAERS), official drug label sections, and medical-device problem reports (MAUDE). Pay per tool call.

- **URL**: https://apify.com/oddsdesk/openfda-mcp-server.md
- **Developed by:** [Jakob](https://apify.com/oddsdesk) (community)
- **Categories:** MCP servers, AI, Developer tools
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 tool calls

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## openFDA MCP Server

**openFDA MCP Server** is a [Model Context Protocol](https://modelcontextprotocol.io) server that gives AI agents and assistants (Claude, ChatGPT, Cursor, VS Code, n8n, LangChain...) live access to official FDA data from openFDA (enforcement reports, FAERS, drug labels, MAUDE). Ask your AI assistant *"Any Class I food recalls for listeria this month?"*, *"What are the most reported side effects of Ozempic?"*, *"What does the metformin label say about dosage?"* or *"What problems are reported for insulin pumps?"*, and it answers from official FDA data.

It runs on Apify in **Standby mode**: an always-ready HTTP endpoint, no server for you to host and no API key from the data source. You pay only per tool call.

### Tools

- `fda_recalls`
- `fda_drug_adverse_events`
- `fda_drug_label`
- `fda_device_events`

Each tool's arguments and description are sent to your AI client automatically.

### Connect it to your AI client

MCP endpoint (streamable HTTP):

```
https://oddsdesk--openfda-mcp-server.apify.actor/mcp
```

Authenticate with your Apify API token as a Bearer header (`Authorization: Bearer <APIFY_TOKEN>`). The exact URL is also shown on this Actor's **Standby** tab.

**Claude Desktop / Cursor / VS Code (`mcp.json`)**

```json
{
  "mcpServers": {
    "openfda-mcp-server": {
      "url": "https://oddsdesk--openfda-mcp-server.apify.actor/mcp",
      "headers": { "Authorization": "Bearer <APIFY_TOKEN>" }
    }
  }
}
```

You can also add it through the [Apify MCP server](https://mcp.apify.com) together with other Actors.

### Try it without an MCP client

Click **Start** for a normal run: pick a **Tool**, give its **arguments** as JSON, and the answer is saved to the dataset.

**Example input**

```json
{
  "tool": "fda_drug_adverse_events",
  "arguments": {
    "drug": "ozempic",
    "top": 5
  }
}
```

**Example output (real)**

```json
{
  "tool": "fda_drug_adverse_events",
  "arguments": {
    "drug": "ozempic",
    "top": 5
  },
  "result": {
    "drug": "ozempic",
    "totalReports": 70863,
    "topReactions": [
      {
        "reaction": "NAUSEA",
        "reports": 10184
      },
      {
        "reaction": "OFF LABEL USE",
        "reports": 7491
      },
      {
        "reaction": "VOMITING",
        "reports": 6681
      },
      {
        "reaction": "DIARRHOEA",
        "reports": 6331
      },
      {
        "reaction": "DECREASED APPETITE",
        "reports": 4689
      }
    ],
    "note": "FAERS reports are voluntary and unverified; counts do not prove the drug caused the reaction. Not medical advice."
  }
}
```

### Pricing

**$0.005 per tool call** ($5 per 1,000 calls). Apify platform usage for the Standby container is billed by Apify as usual.

### Is this allowed?

The server only reads official FDA data from openFDA (enforcement reports, FAERS, drug labels, MAUDE), published for public reuse. It needs no login and stores nothing about you or your questions. the U.S. Food and Drug Administration

*Not affiliated with or endorsed by the FDA.*

### Questions, bugs, ideas

Open an issue on the **Issues** tab and I'll look into it. If a source changes and something breaks, I fix it; Apify also tests this Actor automatically every day. Feature requests (a new field, a new filter, another source) are welcome.

More data tools from the same developer: [apify.com/oddsdesk](https://apify.com/oddsdesk).

# Actor input Schema

## `tool` (type: `string`):

In Standby mode this Actor is an MCP server and your AI client picks the tools. For a normal run, pick one tool to call.

## `arguments` (type: `object`):

Arguments for the tool above, as JSON.

## Actor input object example

```json
{
  "tool": "fda_recalls",
  "arguments": {
    "product_type": "food",
    "classification": "Class I",
    "limit": 10
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One row per result, as described in the README.

# 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 = {
    "arguments": {
        "product_type": "food",
        "classification": "Class I",
        "limit": 10
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("oddsdesk/openfda-mcp-server").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 = { "arguments": {
        "product_type": "food",
        "classification": "Class I",
        "limit": 10,
    } }

# Run the Actor and wait for it to finish
run = client.actor("oddsdesk/openfda-mcp-server").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 '{
  "arguments": {
    "product_type": "food",
    "classification": "Class I",
    "limit": 10
  }
}' |
apify call oddsdesk/openfda-mcp-server --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,oddsdesk/openfda-mcp-server"
        }
    }
}
```

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/vrIgvTsEhuafUyRCB/builds/VWg8h8VjNFrh1G2GZ/openapi.json
