# openFDA MCP

> FDA (openFDA) connects your AI agent directly to the public health databases of the U.S. Food and Drug Administration. Search drug labels, monitor adverse event reports for drugs and foods, track medical device recalls, and check for current shortages—all from one place. Skip cross-referencing multiple government websites; get instant data on pharmaceutical safety, food contamination, and medical device compliance.

## Overview
- **Category:** the-unthinkable
- **Price:** Free
- **Tags:** drug-labeling, safety-monitoring, regulatory-compliance, medical-devices, recall-tracking

## Description

Need to know what's going on with drug labels or public health risks? This MCP connects your AI agent straight into the openFDA database. You can ask it complex questions about everything from approved medications to recent recalls affecting food products. Instead of downloading massive CSV files and spending hours manually cross-referencing government APIs, you just talk to your agent. It handles the deep dives. Need to check if a drug is currently facing shortages? Ask for it. Concerned about a medical device's safety record? Run the query instantly. When you connect this MCP via Vinkius, you get access to thousands of datasets—including detailed information on NDC codes and enforcement actions—without ever building complex manual exports yourself.

## Tools

### get_drug_shortages
Checks the current status of drugs that are facing shortages, both active and resolved.

### get_usage
Shows your rate limit and API usage data for monitoring costs.

### search_device_adverse_events
Finds adverse event reports specifically related to medical devices.

### search_device_classification
Looks up the official classification codes for medical devices.

### search_device_enforcement
Retrieves enforcement and recall reports for medical equipment.

### search_drug_adverse_events
Searches the public database for adverse event reports linked to pharmaceuticals.

### search_drug_approvals
Finds FDA-approved brand names and generic drug listings.

### search_drug_enforcement
Lists official recall enforcement reports for pharmaceutical products.

### search_drug_labels
Retrieves the full, official labeling information for FDA drug products.

### search_food_adverse_events
Searches adverse event reports related to food items and consumption.

### search_food_enforcement
Retrieves enforcement and recall reports specifically for contaminated foods.

### search_ndc
Searches the National Drug Code directory using manufacturer identifiers.

## Prompt Examples

**Prompt:** 
```
Search for adverse events reported for Ibuprofen.
```

**Response:** 
```
Searching drug adverse events... I've retrieved the latest reports. Common reported reactions include nausea and headache. Would you like to see the demographic breakdown of these reports?
```

**Prompt:** 
```
Are there any recent food recalls in New York?
```

**Response:** 
```
Inspecting food enforcement reports... I found 3 recent recalls affecting New York, including a voluntary recall of organic spinach due to potential contamination. Shall I list the specific product details?
```

**Prompt:** 
```
Show me the label information for Advil.
```

**Response:** 
```
Retrieving Advil product label... I've found the official FDA labeling. It contains detailed indications, dosage instructions, and warnings. Would you like me to summarize the usage guidelines?
```

## Capabilities

### Monitor Drug Safety
Search for adverse events reported against specific drugs or check official drug labels.

### Track Food & Product Recalls
List enforcement reports and adverse event data for contaminated food or recalled medical devices.

### Identify Drug Shortages
Get immediate status updates on drugs that are currently unavailable in the market.

### Verify Product Classification
Search databases to understand the official classification and approval status of medical devices.

### Lookup Drug Codes
Query the National Drug Code (NDC) directory for detailed manufacturer product identifiers.

## Use Cases

### Investigating an unexpected outbreak.
A public health official notices spikes in sickness cases. They ask their agent, 'What were the adverse events reported for foods consumed in Q1?' The agent runs `search_food_adverse_events` and identifies a specific batch of organic spinach linked to contamination.

### Due diligence on new medical equipment.
An engineer needs to vet a piece of industrial machinery. They tell their AI client, 'Check the device classification and any enforcement actions.' The agent runs `search_device_classification` followed by `search_device_enforcement`, giving an instant risk profile.

### Researching competitor drug profiles.
A researcher needs to compare two drugs. They prompt the agent, 'Show me the labels and approval status for Drug A vs. Drug B.' The MCP uses `search_drug_labels` and `search_drug_approvals` to pull structured data side-by-side.

### Handling a sudden product recall.
A compliance officer needs to know the scope of a food recall. They ask, 'Are there any recent recalls in California?' The agent uses `search_food_enforcement` and provides a list of affected products and regions.

## Benefits

- Pinpoint product risks immediately. Instead of reading through pages of documents, you can ask the agent to run a query using `search_device_adverse_events` across thousands of reports for medical devices.
- Stay ahead of supply chain issues. Use `get_drug_shortages` to check if a critical medication is facing current or resolved shortages before drafting a clinical recommendation.
- Simplify compliance checks. When monitoring recalls, you can use `search_food_enforcement` and `search_drug_enforcement` in one workflow to see where contaminated products are circulating.
- Deep dive into product details. Get the full picture of any medication by using `search_drug_labels` to pull official FDA labeling data directly into your analysis flow.
- Streamline identification. Don't waste time guessing a drug’s code; use `search_ndc` to look up its exact National Drug Code (NDC) identifier instantly.

## How It Works

The bottom line is: you ask a question in plain English, and this MCP delivers the complex health data answer.

1. First, subscribe to this MCP and optionally input your openFDA API Key in the settings.
2. Next, tell your AI client exactly what you need—for example, 'What were the adverse events for drug X last quarter?'
3. Your agent uses the available tools to query the public databases and returns structured data on drugs, foods, or devices.

## Frequently Asked Questions

**How do I check for drug shortages using openFDA (openFDA)?**
You use the `get_drug_shortages` tool. This immediately tells you if a medication is currently short, or if it was previously marked as such, giving you real-time supply chain status.

**Can I search for food adverse events with openFDA (openFDA)?**
Yes, use the `search_food_adverse_events` tool. This allows you to pull reports on unusual incidents related to consumed foods, helping track public health risks quickly.

**What is the difference between drug and food recalls in openFDA (openFDA)?**
The MCP separates these domains for accuracy. Use `search_drug_enforcement` for pharmaceutical recalls and `search_food_enforcement` for contaminated food products.

**How do I find drug labels using openFDA (openFDA)?**
Run the `search_drug_labels` tool. This pulls detailed, official FDA labeling information directly into your workspace, which is much faster than navigating the web portal.

**Do I need an API key for openFDA (openFDA)?**
It's optional but recommended. You can input your own openFDA API Key in settings to ensure reliable and continuous access when running complex queries.