OpenFDA MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OpenFDA MCP Server Search for adverse events related to aspirin"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.

Unofficial FDA API MCP Server
A comprehensive Model Context Protocol (MCP) server that provides access to the U.S. Food and Drug Administration's public datasets through the openFDA API. This server enables querying of drug adverse events, product labeling, recalls, approvals, shortages, NDC directory information, and medical device regulatory data including 510(k) clearances, classifications, and adverse events.
Developed by Augmented Nature
Features
Drug Tools (6 tools implemented)
search_drug_adverse_events: Search FDA Adverse Event Reporting System (FAERS) data
search_drug_labels: Search drug product labeling information
search_drug_ndc: Query the National Drug Code (NDC) directory
search_drug_recalls: Find drug recall enforcement reports
search_drugs_fda: Search the Drugs@FDA database for approved products
search_drug_shortages: Query current drug shortages
Device Tools (4 tools implemented)
search_device_510k: Search FDA 510(k) device clearances
search_device_classifications: Search FDA device classifications
search_device_adverse_events: Search FDA device adverse events (MDR)
search_device_recalls: Search FDA device recall enforcement reports
Key Features
Comprehensive Search: Advanced filtering by drug name, manufacturer, indication, dates, and more
Rate Limiting: Built-in awareness of FDA API rate limits (1,000 requests/hour without API key)
Error Handling: Robust error handling with meaningful error messages
Formatted Results: Clean, structured JSON responses with relevant metadata
Optional API Key: Supports FDA API key for higher rate limits (120,000 requests/hour)
Related MCP server: OpenFDA MCP Server
Installation
The server is already built and configured in your MCP settings
Optionally set an FDA API key for higher rate limits:
# Set FDA_API_KEY environment variable for higher rate limits
export FDA_API_KEY="your_api_key_here"To get an FDA API key:
Sign up for an API key
Add it to your MCP settings or environment
Usage Examples
Search Drug Adverse Events
Search for adverse events related to aspirin that occurred in the United States in 2023Search Drug Labels
Find labeling information for diabetes medications manufactured by Novo NordiskSearch NDC Directory
Look up NDC information for ibuprofen tabletsSearch Drug Recalls
Find all Class I drug recalls from 2023 involving contaminationSearch FDA Approved Drugs
Find all FDA-approved drugs sponsored by Pfizer with injection dosage formSearch Drug Shortages
Find current drug shortages for antibioticsAPI Response Format
All tools return structured JSON with:
search_criteria: The parameters used for the searchtotal_results: Total number of matching records in FDA databaseresults_shown: Number of results returned in this response[data_type]: Array of formatted results (e.g.,adverse_events,drug_labels)api_usage: Information about API key status and rate limits
Rate Limiting
Without API Key: 1,000 requests per hour
With API Key: 120,000 requests per hour
The server automatically handles rate limit errors and provides helpful messages
Architecture
The server is built with a modular architecture:
/src/index.ts: Main server setup and tool registration/src/handlers/drug-handlers.ts: All drug-related tool implementations/src/handlers/device-handlers.ts: All device-related tool implementations/src/utils/api-client.ts: HTTP client with error handling and rate limiting/src/types/fda.ts: TypeScript interfaces for all FDA data structures
Supported Search Parameters
Drug Adverse Events
drug_name: Name of the drug or medicationbrand_name: Brand/trade namegeneric_name: Generic namemanufacturer: Manufacturer namereaction: Adverse reaction or side effectserious_only: Only return serious adverse eventspatient_sex: Patient sex (1=Male, 2=Female)country: Country where event occurreddate_from/date_to: Date range filterscount: Group results for countinglimit: Maximum results (1-100)skip: Pagination offset
Drug Labels
brand_name: Brand/trade name of the druggeneric_name: Generic namemanufacturer: Manufacturer nameactive_ingredient: Active ingredient nameindication: Medical indication or conditionroute: Route of administrationproduct_type: Product typePlus standard pagination and counting parameters
NDC Directory
product_ndc: Product NDC numberpackage_ndc: Package NDC numberproprietary_name: Brand namenonproprietary_name: Generic namelabeler_name: Manufacturer/labeler namedosage_form: Dosage form (tablet, capsule, etc.)route: Route of administrationsubstance_name: Active substance namePlus standard pagination and counting parameters
Drug Recalls
product_description: Product descriptionrecalling_firm: Name of recalling firmclassification: Recall classification (Class I, II, III)status: Recall statusstate/country: Geographic filtersreason_for_recall: Reason for recalldate_from/date_to: Date range filtersPlus standard pagination and counting parameters
Drugs@FDA
sponsor_name: Sponsor/applicant nameapplication_number: FDA application numberbrand_name: Brand/trade namegeneric_name: Generic nameactive_ingredient: Active ingredientdosage_form: Dosage formmarketing_status: Marketing statusPlus standard pagination and counting parameters
Drug Shortages
product_name: Product namegeneric_name: Generic namebrand_name: Brand nameactive_ingredient: Active ingredientshortage_status: Current shortage statusshortage_designation: Shortage designation (Yes/No)dosage_form: Dosage formPlus standard pagination and counting parameters
Device 510(k) Clearances
device_name: Name of the medical deviceapplicant: Applicant company namecontact: Contact informationproduct_code: FDA product codeclearance_type: Type of 510(k) clearancedecision_date_from/decision_date_to: Decision date range filtersPlus standard pagination parameters
Device Classifications
device_name: Name of the medical devicedevice_class: Device class (1, 2, 3)medical_specialty: Medical specialtyproduct_code: FDA product coderegulation_number: FDA regulation numberPlus standard pagination parameters
Device Adverse Events
device_name: Name of the medical devicebrand_name: Brand name of the devicemanufacturer: Device manufacturer nameproduct_code: FDA product codeevent_type: Type of adverse eventpatient_sex: Patient sex (F=Female, M=Male)date_from/date_to: Event date range filtersPlus standard pagination parameters
Device Recalls
product_description: Product description or namerecalling_firm: Name of the recalling firmclassification: Recall classification (Class I, II, III)status: Recall statusproduct_code: FDA product codedate_from/date_to: Recall initiation date range filtersPlus standard pagination parameters
Future Enhancements
The server architecture supports easy extension with additional FDA endpoints:
Device Tools: 510(k) clearances, classifications, adverse events, recalls
Food Tools: Adverse events, recall enforcement reports
Other Tools: Substance data, UNII, tobacco reports, historical documents
Error Handling
The server provides comprehensive error handling for:
Invalid search parameters
API rate limiting
Network connectivity issues
FDA API service unavailability
Malformed responses
Development
Built with:
TypeScript: Type-safe development
MCP SDK: Model Context Protocol implementation
Axios: HTTP client with interceptors
Node.js: Runtime environment
License
This project is open source and available under standard licensing terms.
Support
For issues or questions about the FDA API MCP Server:
Check the FDA API documentation: https://open.fda.gov/apis/
Review rate limiting and authentication requirements
Ensure proper JSON formatting in search parameters
This MCP server provides access to public FDA datasets. Always consult healthcare professionals for medical decisions and drug information.
Available Tools
10 toolssearch_device_510kB
Search FDA 510(k) device clearances
Inputs: device_name, applicant, contact, product_code, +5 more.
search_device_adverse_eventsC
Search FDA device adverse events (MDR)
Inputs: device_name, brand_name, manufacturer, product_code, +6 more.
search_device_classificationsC
Search FDA device classifications
Inputs: device_name, device_class, medical_specialty, product_code, +3 more.
search_device_recallsC
Search FDA device recall enforcement reports
Inputs: product_description, recalling_firm, classification, status, +5 more.
search_drug_adverse_eventsC
Search FDA drug adverse event reports (FAERS)
Inputs: drug_name, brand_name, generic_name, manufacturer, +9 more.
search_drug_labelsC
Search FDA drug product labeling information
Inputs: brand_name, generic_name, manufacturer, active_ingredient, +6 more.
search_drug_ndcC
Search National Drug Code (NDC) directory
Inputs: product_ndc, package_ndc, proprietary_name, nonproprietary_name, +7 more.
search_drug_recallsC
Search drug recall enforcement reports
Inputs: product_description, recalling_firm, classification, status, +8 more.
search_drugs_fdaC
Search Drugs@FDA database for approved drug products
Inputs: sponsor_name, application_number, brand_name, generic_name, +6 more.
search_drug_shortagesB
Search current drug shortages reported to FDA
Inputs: product_name, generic_name, brand_name, active_ingredient, +6 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool targets a distinct FDA dataset (e.g., 510k clearances, drug labels) with no overlap in resource type or dataset, ensuring clear differentiation.
All tools follow a uniform 'search_' prefix followed by a descriptive noun phrase (e.g., search_device_adverse_events), providing a predictable pattern.
10 tools is well-scoped for a public FDA data server, covering major device and drug datasets without being excessive or insufficient.
The set covers key FDA data categories for devices (clearances, adverse events, classifications, recalls) and drugs (adverse events, labels, NDC, recalls, approvals, shortages), with no obvious gaps for the stated domain.
Maintenance
Related MCP Connectors
FDA MCP — US Food and Drug Administration public API (free, no auth)
Hosted MCP server for finding authoritative primary data sources and official portals.
MCP server for US nursing facility search and ownership lookup (NursingHomeDatabase).
Unlock the power of food transparency with our Open Food Facts MCP server. Easily look up any food
Related MCP Servers
- AlicenseAqualityBmaintenanceA Model Context Protocol (MCP) server for querying drug information from the OpenFDA API. Features Retrieve drug label information by brand name Retrieve drug information by generic (active ingredient) name Get all brand versions of a generic drug Get adverse event (side effect) reports for a drug761 npm4MIT
- AlicenseAqualityBmaintenanceMCP server providing access to U.S. FDA public datasets including drugs, medical devices, adverse events, recalls, and more through standardized tools.15677 npm1MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for clinical and pharmaceutical data, enabling search of ClinicalTrials.gov, PubMed, FDA, and ICH guidelines without API keys.MIT
- AlicenseAqualityDmaintenanceAn MCP server that enables AI assistants to query U.S. FDA public datasets, including drug adverse events, labeling, recalls, approvals, shortages, NDC directory, and medical device regulatory information.10MIT