
Medical
STDIOMCP server providing comprehensive medical information from FDA, WHO, PubMed, and RxNorm APIs
MCP server providing comprehensive medical information from FDA, WHO, PubMed, and RxNorm APIs
A Model Context Protocol (MCP) server that provides comprehensive medical information by querying multiple authoritative medical APIs including FDA, WHO, PubMed, and RxNorm.
This MCP server offers five specialized tools for querying medical information from reliable sources:
search-drugs
Search for drug information using the FDA database.
Input:
query
(string): Drug name to search for (brand name or generic name)limit
(optional, number): Number of results to return (1-50, default: 10)Output:
Example:
Drug Search Results for "Advil"
Found 1 drug(s)
1. **ADVIL**
Generic Name: IBUPROFEN
Manufacturer: PFIZER CONSUMER HEALTHCARE
Route: ORAL
Dosage Form: TABLET
Purpose: For temporary relief of minor aches and pains...
Last Updated: 20210902
get-drug-details
Get detailed information about a specific drug by NDC (National Drug Code).
Input:
ndc
(string): National Drug Code (NDC) of the drugOutput:
get-health-statistics
Get health statistics and indicators from WHO Global Health Observatory.
Input:
indicator
(string): Health indicator to search for (e.g., 'Life expectancy', 'Mortality rate')country
(optional, string): Country code (e.g., 'USA', 'GBR')limit
(optional, number): Number of results to return (1-20, default: 10)Output:
Example:
Health Statistics: Life expectancy at birth (years)
Country: USA
Found 10 data points
1. **USA** (2019)
Value: 78.5 years
Numeric Value: 78.5
Date: 2019-12-31
search-medical-literature
Search for medical research articles in PubMed.
Input:
query
(string): Medical topic or condition to search formax_results
(optional, number): Maximum number of articles to return (1-20, default: 10)Output:
Example:
Medical Literature Search: "diabetes treatment"
Found 10 article(s)
1. **Novel Approaches to Diabetes Management**
PMID: 12345678
Journal: New England Journal of Medicine
Publication Date: 2024-01-15
search-google-scholar
Search for academic research articles using Google Scholar.
Input:
query
(string): Academic topic or research query to search forOutput:
Example:
Google Scholar Search: "machine learning healthcare"
Found 10 article(s)
1. **Machine Learning in Healthcare: A Systematic Review**
Authors: Smith J, Johnson A - Journal of Medical AI
Year: 2023
Citations: Cited by 45
URL: https://scholar.google.com/...
Abstract: This systematic review examines the application of machine learning...
Note: This tool uses web scraping to access Google Scholar since it doesn't provide a public API. It includes rate limiting protection and stealth measures to avoid detection.
search-drug-nomenclature
Search for drug information using RxNorm (standardized drug nomenclature).
Input:
query
(string): Drug name to search for in RxNorm databaseOutput:
git clone <repository-url> cd medical-mcp
npm install
npm run build
Start the MCP server:
npm start
The server runs on stdio and can be connected to any MCP-compatible client.
Here are some example queries you can make with this MCP server:
{ "tool": "search-drugs", "arguments": { "query": "Tylenol", "limit": 5 } }
{ "tool": "get-drug-details", "arguments": { "ndc": "00071015527" } }
{ "tool": "get-health-statistics", "arguments": { "indicator": "Life expectancy at birth (years)", "country": "USA", "limit": 5 } }
{ "tool": "search-medical-literature", "arguments": { "query": "COVID-19 treatment", "max_results": 10 } }
{ "tool": "search-drug-nomenclature", "arguments": { "query": "aspirin" } }
This MCP server integrates with the following medical APIs:
GET /drug/label.json
- Drug labeling informationGET /api/Indicator
- Health statistics and indicatorsGET /esearch.fcgi
- Search for medical articlesGET /efetch.fcgi
- Retrieve article detailsGET /REST/drugs.json
- Standardized drug nomenclatureThe server includes comprehensive error handling:
The Google Scholar integration uses Puppeteer for web scraping with the following features:
Important: This MCP server provides information from authoritative medical sources but should not be used as a substitute for professional medical advice, diagnosis, or treatment. Always consult with qualified healthcare professionals for medical decisions.
@modelcontextprotocol/sdk
- MCP SDK for server implementationsuperagent
- HTTP client for API requestspuppeteer
- Browser automation for web scraping Google Scholarzod
- Schema validation for tool parametersThis project is licensed under the MIT License - see the LICENSE.md file for details.