DailyMed 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., "@DailyMed MCP Server search for aspirin drug labels"
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.
DailyMed MCP Server
A Model Context Protocol (MCP) server that provides access to the DailyMed API for comprehensive drug information.
About DailyMed
DailyMed is the official FDA database containing drug labeling information for approved prescription/nonprescription drugs, biologics, and medical devices. It provides structured, up-to-date drug information in multiple formats with cross-references to RxNorm and pharmacologic classifications.
Related MCP server: openfda-mcp-server
Installation
git clone <repository-url>
cd dailymed-mcp-server
npm install
npm run buildOptional: Download mapping files from DailyMed Mapping Files and place in project root:
pharmacologic_class_mappings.txtrxnorm_mappings.txt
Usage
npm start # Production
npm run dev # Development with hot reloadKey Features
Search Tools
search_spls- Search Structured Product Labels with advanced filtering and paginationsearch_drug_names- Search drug names with manufacturer and name type filterssearch_rxcuis- Search RxCUI codes with term type filteringsearch_drug_classes- Search pharmacologic drug classessearch_application_numbers- Search FDA application numberssearch_uniis- Search UNII codes with advanced filters
Drug Information
get_drug_details- Complete drug information by SET IDget_drug_history- Version history for drugsget_drug_ndcs- NDC codes for specific drugsget_drug_packaging- Packaging informationget_drug_media- Media links (images, documents)
Database Access
get_all_*- Paginated access to drug names, classes, NDCs, RxCUIs, UNIIs, application numbersget_dailymed_context- Database information and capabilities
Enhanced Mapping (when mapping files present)
search_by_rxnorm_mapping- Search RxNorm mappings by drug nameget_*_mappings_for_setid- Get mappings for specific drugssearch_drugs_by_pharmacologic_class- Find drugs by pharmacologic class
Advanced SPL Search
Simple Search
{
"query": "aspirin",
"page": 1,
"pageSize": 25
}Advanced Search
{
"manufacturer": "Pfizer",
"boxed_warning": true,
"published_date": "2023-01-01",
"published_date_comparison": "gte",
"page": 1,
"pageSize": 50
}Available filters: application_number, boxed_warning, dea_schedule_code, drug_name, name_type, labeler, manufacturer, ndc, rxcui, unii_code, published_date, and more.
Pagination
All search and list tools support pagination with consistent response format:
{
"data": [...],
"pagination": {
"page": 1,
"pageSize": 25,
"totalResults": 150,
"totalPages": 6,
"hasNextPage": true,
"hasPreviousPage": false
}
}Claude Desktop Configuration
{
"mcpServers": {
"dailymed": {
"command": "node",
"args": ["/path/to/dailymed-mcp-server/dist/index.js"],
"cwd": "/path/to/dailymed-mcp-server"
}
}
}API Information
Format: JSON
Authentication: None required
Compliance: Fully compliant with DailyMed API v2 specifications
Development
npm run build # Build TypeScript
npm run dev # Development modeProject Structure:
src/
├── clients/ # Modular API clients
├── types/ # TypeScript type definitions
├── utils/ # Utilities and helpers
├── index.ts # MCP server implementation
└── tools.ts # Tool definitionsLicense
MIT License
Available Tools
28 toolsget_all_application_numbersB
Get all available FDA application numbers in the DailyMed database with pagination support
Inputs: page, pageSize.
get_all_drug_classesB
Get all available drug classes in the DailyMed database with pagination support
Inputs: page, pageSize.
get_all_drug_namesB
Get all available drug names in the DailyMed database with pagination support
Inputs: page, pageSize.
get_all_ndcsA
Get all available NDC codes in the DailyMed database with pagination support
Inputs: page, pageSize.
get_all_pharmacologic_class_setidsB
Get all pharmacologic class SET IDs that have associated drug mappings
Inputs: no named parameters.
get_all_rxcuisA
Get all available RxCUI codes in the DailyMed database with pagination support
Inputs: page, pageSize.
get_all_uniisC
Get all available UNII codes in the DailyMed database with pagination support
Inputs: page, pageSize.
get_dailymed_contextB
Get comprehensive information about DailyMed database, its purpose, content types, and when to use it
Inputs: no named parameters.
get_download_linksC
Get download links for ZIP and PDF files of a specific drug by its SET ID
Inputs: setId (required).
get_drug_detailsC
Get detailed information about a specific drug by its SET ID
Inputs: setId (required).
get_drug_historyC
Get version history for a specific drug by its SET ID
Inputs: setId (required).
get_drug_mediaC
Get media links (images, documents) for a specific drug by its SET ID
Inputs: setId (required).
get_drug_ndcsC
Get NDC codes for a specific drug by its SET ID
Inputs: setId (required).
get_drug_packagingC
Get packaging information for a specific drug by its SET ID
Inputs: setId (required).
get_mappings_by_rxcuiC
Get mappings for a specific RxCUI
Inputs: rxcui (required).
get_mapping_statisticsB
Get statistics about loaded mapping files
Inputs: no named parameters.
get_pharmacologic_class_detailsC
Get detailed information about a pharmacologic class including FDA context and classification attributes (uses mapping file data)
Inputs: pharmaSetId (required).
get_pharmacologic_class_mappings_for_setidC
Get pharmacologic class mappings for a specific SET ID
Inputs: setId (required).
get_rxnorm_mappings_by_pharmacologic_classC
Find RxNorm mappings for drugs that belong to a specific pharmacologic class SET ID
Inputs: pharmaSetId (required).
get_rxnorm_mappings_for_setidC
Get RxNorm mappings for a specific SET ID
Inputs: setId (required).
search_application_numbersB
Search for FDA application numbers (NDA, ANDA, etc.) using various parameters with pagination support
Inputs: application_number, marketing_category_code, setid, page, +1 more.
search_by_rxnorm_mappingC
Search for RxNorm mappings by drug name
Inputs: drugName (required).
search_drug_classesB
Search for pharmacologic drug classes using various parameters with pagination support
Inputs: drug_class_code, drug_class_coding_system, class_code_type, class_name, +3 more.
search_drug_namesB
Search for drug names using various parameters with pagination support
Inputs: drug_name, name_type, manufacturer, page, +1 more.
search_drugs_by_pharmacologic_classB
Search for drugs using DailyMed drug class codes (from the drug classes API). Supports pagination for large result sets.
Inputs: drugClassCode (required), codingSystem, page, pageSize.
search_rxcuisC
Search for RxCUI codes using various parameters with pagination support
Inputs: rxstring, rxcui, rxtty, page, +1 more.
search_splsA
Search for Structured Product Labels (SPLs) using either simple drug name search or advanced DailyMed API parameters. When using simple query, searches for drugs first then finds related SPLs. When using advanced parameters, queries DailyMed SPLs API directly. Supports pagination for large result sets.
Inputs: query, application_number, boxed_warning, dea_schedule_code, +16 more.
search_uniisC
Search for UNII codes using various parameters with pagination support
Inputs: active_moiety, drug_class_code, drug_class_coding_system, rxcui, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 28 tools
Most tools have distinct purposes targeting specific resources like drugs, classes, or codes, with clear boundaries. However, some overlap exists between 'get_all_' and 'search_' tools (e.g., get_all_drug_names vs. search_drug_names), which could cause minor confusion in selection, though descriptions help clarify the pagination differences.
Tool names follow a highly consistent verb_noun pattern throughout, using 'get_' for retrieval and 'search_' for queries, with snake_case uniformly applied. This predictability makes it easy for agents to understand and navigate the toolset without ambiguity.
With 28 tools, the count is borderline high for a medical database server, potentially feeling heavy and overwhelming. While the domain is complex, the number might exceed typical well-scoped ranges (3-15 tools), suggesting some consolidation could improve usability without losing functionality.
The toolset provides comprehensive coverage for the DailyMed domain, including CRUD-like operations for drugs, classes, and codes (e.g., get details, search, mappings), with no obvious gaps. It supports core workflows like retrieval, search, and mapping across all key resources, ensuring agents can handle most tasks without dead ends.
Maintenance
Related MCP Connectors
US medication lookup: drug search, forms and strengths, NDC/RxCUI, recalls, shortages.
Search DailyMed drug labels, SPLs, NDCs and packaging.
Search and export FDA drug labels by brand name, generic ingredient, or UNII code.
Look up drug names, RxCUIs, ingredients and interactions in RxNorm.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides comprehensive pharmaceutical intelligence by integrating real-time openFDA data with locally-cached Orange Book and Purple Book databases. It enables users to analyze drug safety, patents, generic equivalents, biosimilars, and regulatory information through natural language queries.4MIT
- AlicenseAqualityDmaintenanceEnables LLMs to search FDA drug labels and adverse event data via the OpenFDA API, supporting natural language queries for drug safety information.2MIT
- AlicenseBqualityDmaintenanceEnables querying FDA drug label information including adverse reactions, warnings, and indications through natural language.517 npmGPL 3.0
- AlicenseAqualityDmaintenanceEnables querying FDA drug label information including adverse reactions, warnings, and indications via natural language.510 npm1GPL 3.0