🔌 MCP Servers
FDA Drugs Data Access Server
Provide seamless access to comprehensive FDA drug data through intuitive search and detailed information retrieval. Enable discovery of drugs by name, indication, similarity, and application history t
Description
FDA Drugs MCP Server
A Model Context Protocol (MCP) server for accessing FDA drug data through the OpenFDA API.
Features
- Drug Name Search: Search for drugs by brand or generic name
- Indication Search: Find drugs by medical condition or therapeutic indication
- Detailed Drug Information: Get comprehensive drug details including clinical data
- Similar Drug Discovery: Find drugs with similar mechanisms of action or indications
- Application History: Access FDA application and approval history
- BLA/NDA Focus: Defaults to approved drugs (BLA/NDA), excludes generics (ANDA) unless specified
Available Tools
search_drug_by_name- Search for drugs by brand or generic namesearch_drug_by_indication- Search for drugs by medical indicationget_drug_details- Get comprehensive details for a specific drugsearch_similar_drugs- Find drugs similar to a reference drugget_drug_application_history- Get FDA application history
Run Locally
-
HTTP (recommended):
pip install -r requirements.txt PORT=8081 TRANSPORT=http python server.py -
STDIO (backwards compatible):
pip install -r requirements.txt python server.py
Use With Clients
Smithery (Custom Container)
- This repo includes
Dockerfileandsmithery.yamlconfigured for HTTP streamable transport. - Deploy via https://smithery.ai/new by connecting your GitHub repo.
- Local test (HTTP):
docker build -t fda-drugs-mcp . docker run -p 8081:8081 -e PORT=8081 fda-drugs-mcp npx @smithery/cli playground --port 8081
Installing via Smithery
To install FDA Drugs MCP Server automatically via Smithery:
npx -y @smithery/cli install @plainyogurt21/fda-drugs-mcp
Config fields supported when launching via Smithery:
fdaApiKey: OpenFDA API keylogLevel: DEBUG | INFO | WARNING | ERROR | CRITICAL
Cline (CLI MCP Client)
- Cline supports MCP over HTTP. Start the server:
PORT=8081 TRANSPORT=http python server.py - Then configure Cline to connect to
http://localhost:8081as an MCP server. If Cline supports session config, passfdaApiKeyin the session config.
Claude Code
- Claude Code supports both STDIO and HTTP MCP servers.
- Recommended: run HTTP and add a server entry pointing to
http://localhost:8081. - Alternative (STDIO): point Claude Code to run
python server.pyin this folder.
Other MCP Clients
- Any MCP client that supports streamable HTTP can connect to
http://<host>:8081. - Per-request config can be passed using Smithery’s
configquery parameter format.
Notes
- HTTP mode uses CORS with permissive defaults to work across clients.
- The server reads the OpenFDA API key from, in order of precedence:
- Per-request config
fdaApiKey - STDIO/runtime config or env
FDA_API_KEY - Built-in default (see
utils/config.py)
- Per-request config
Testing (local modules)
python test_server.py
Reviews (0)
Sign in to write a review.
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!