openfda-mcp-server
Supports integration with Gemini CLI and Google ADK for building AI agents that access FDA drug data.
Click on "Install 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-serverCheck the official FDA label for Lisinopril. Are there warnings about kidney issues?"
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.
OpenFDA MCP Server
An MCP (Model Context Protocol) server for the OpenFDA API, built with FastMCP. This server exposes FDA drug labels and adverse event data to LLMs via the Model Context Protocol.
Features
Tools
search_drug_label: Search for official FDA drug labels by brand or generic name. Returns indications, warnings, and dosage information.get_drug_adverse_events: Search for reported adverse events associated with a specific drug, including seriousness and outcomes.
Prompts
drug_safety_report: A prompt template that guides the LLM to generate a comprehensive safety report for a specific drug, combining label warnings with real-world adverse event data.
Related MCP server: OpenFDA FastMCP Server
Installation & Setup
Clone and Install:
git clone https://github.com/ek-nath/openfda-mcp-server.git cd openfda-mcp-server uv syncVerify Installation: Run the server manually to ensure dependencies are correct (it will wait for input):
uv run server.py
API Key Configuration (Optional)
The OpenFDA API is rate-limited. For higher throughput, you can obtain an API key from the OpenFDA website.
If you have an API key, you can provide it to the server using a .env file:
Create
.envfile: Copy the provided template:cp .env.template .envSet
OPENFDA_API_KEY: Edit the newly created.envfile and replaceyour_openfda_api_key_herewith your actual API key:OPENFDA_API_KEY=your_actual_api_key
The server will automatically detect and use the OPENFDA_API_KEY from this file.
Integration
1. Gemini CLI
To use this tool with the Gemini CLI, add the server configuration to your global settings file (~/.gemini/settings.json).
Configuration:
{
"mcpServers": {
"openfda": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/openfda-mcp-server",
"run",
"--quiet",
"server.py"
]
}
}
}Replace /ABSOLUTE/PATH/TO/... with the full path to your cloned directory.
Troubleshooting:
If you encounter EPERM errors on macOS regarding .Trash, add .Trash/ to your ~/.geminiignore file.
2. Google ADK (Agent Development Kit)
This server can be easily integrated into Python agents built with the Google Gen AI Agent Development Kit (ADK).
👉 View the ADK Integration Guide
3. Claude Desktop
Add the same configuration snippet above to your claude_desktop_config.json (usually located in ~/Library/Application Support/Claude/).
Usage Examples
Once connected, you can ask your agent questions like:
"Check the official FDA label for Lisinopril. Are there warnings about kidney issues?"
"I take Atorvastatin. Is it safe to take Ibuprofen?"
"Generate a drug safety report for Metformin."
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceProvides real-time access to medical data including drug interactions, ICD-10 codes, FDA adverse event reports, and clinical guidelines. It enables LLMs to query databases like openFDA, PubMed, and CMS for pharmaceutical and clinical information.Last updated1MIT
- Flicense-qualityDmaintenanceEnables AI agents to query and analyze FDA adverse events, drug labels, medical device clearances, and other public health datasets through natural language commands.Last updated13
- Flicense-qualityBmaintenanceEnables querying FDA drug approvals, device clearances (510(k)), recalls, and adverse events via the openFDA API, providing tools for clinical and pharmaceutical research.Last updated1
- Alicense-qualityCmaintenanceEnables querying FDA drug label information including adverse reactions, warnings, and indications through natural language.Last updated16GPL 3.0
Related MCP Connectors
Drug-drug interaction checker for clinical LLMs using RxNorm and DailyMed.
FDA medical-device regulatory intelligence from keyless openFDA datasets.
Search US grants + federal contracts (Grants.gov + SAM.gov) from any LLM.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ek-nath/openfda-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server