Health Canada Drug Product Database 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., "@Health Canada Drug Product Database MCP Server Search for drugs with the brand name Tylenol"
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.
Health Canada Drug Product Database MCP Server
An MCP (Model Context Protocol) server that exposes the Health Canada Drug Product Database (DPD) APIs as tools. Query information on ~47,000 drugs approved for use in Canada including human pharmaceuticals, biologics, veterinary drugs, radiopharmaceuticals, and disinfectants.
Features
15 tools exposing all DPD API endpoints
4 resources providing reference documentation
4 prompts for guided workflows
Async HTTP requests with httpx
Support for English and French responses
JSON and XML response formats
Comprehensive drug product queries
Related MCP server: mcp-drugbank
Available Tools
Tool | Description |
| Get active ingredients for a drug by drug code |
| Search ingredients by name across all products |
| Get company/manufacturer information |
| Get drug product by drug code |
| Search by Drug Identification Number (DIN) |
| Search by brand name (e.g., "Tylenol") |
| Get dosage forms (tablet, capsule, etc.) |
| Get package sizes and UPC codes |
| Get manufacturing standard |
| Get administration routes (oral, IV, etc.) |
| Get drug schedules (prescription, OTC, etc.) |
| Get product status (marketed, cancelled, etc.) |
| Get ATC therapeutic classification |
| Get approved species for veterinary drugs |
| Get comprehensive info in one call |
Available Resources
Resources provide reference data that agents can read for context:
Resource URI | Description |
| API overview, key identifiers, and typical workflows |
| Drug status code meanings (Approved, Marketed, Cancelled, etc.) |
| Drug schedule classifications (Prescription, OTC, Narcotic, etc.) |
| Routes of administration reference (Oral, IV, Topical, etc.) |
Available Prompts
Prompts provide guided workflows for common tasks:
Prompt | Arguments | Description |
|
| Comprehensive lookup of a drug by name |
|
| Side-by-side comparison of two drugs |
|
| Find generic alternatives with same active ingredient |
|
| Verify a DIN and get product status/details |
Installation
Prerequisites
Python 3.11 or higher
pip or uv package manager
Quick Start
Clone the repository
git clone https://github.com/yourusername/PharmacyMCP.git cd PharmacyMCPCreate a virtual environment
Using venv (built-in):
python -m venv .venvOr using uv (faster):
uv venv .venvActivate the virtual environment
Windows (PowerShell):
.\.venv\Scripts\Activate.ps1Windows (Command Prompt):
.venv\Scripts\activate.batmacOS/Linux:
source .venv/bin/activateInstall dependencies
Using pip:
pip install -r requirements.txtOr using uv:
uv pip install -r requirements.txtVerify installation
python src/dpd_server.pyThe server will start and listen at
http://localhost:8000/mcp. PressCtrl+Cto stop.
Usage
Running the server
python src/dpd_server.pyThe server starts on http://localhost:8000/mcp using the MCP Streamable HTTP transport.
Running with FastMCP CLI
fastmcp run src/dpd_server.pyConnecting from Claude Desktop
Start the server first (python src/dpd_server.py), then add to your Claude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"pharmacy-dpd": {
"url": "http://localhost:8000/mcp"
}
}
}Installing in VS Code with GitHub Copilot
Start the server first, then add to your VS Code settings.json:
{
"github.copilot.chat.mcpServers": {
"pharmacy-dpd": {
"url": "http://localhost:8000/mcp"
}
}
}Connecting from Postman
Create a new MCP request in Postman and set the URL to:
http://localhost:8000/mcpExample Queries
Once connected, you can ask questions like:
"Search for drugs with the brand name Tylenol"
"What are the active ingredients in drug code 48905?"
"Find drugs containing acetaminophen"
"What is the status of DIN 00326925?"
"Get all information about drug code 2049"
"Compare Tylenol and Advil"
"Find generic alternatives to Lipitor"
How Agents Use Resources and Prompts
Resources
Agents automatically have access to reference data without making API calls. For example, when interpreting a status code like "4", the agent can read dpd://reference/status-codes to understand it means "Cancelled Post-Market".
Prompts
Prompts guide multi-step workflows. When you ask to look up a drug, the drug_lookup prompt provides a structured approach:
Search by brand name
Get the drug_code from results
Fetch comprehensive details
Present information in a clear format
API Reference
This server wraps the Health Canada DPD API:
Base URL:
https://health-products.canada.ca/api/drug/Documentation: DPD API Guide
Drug Status Codes
Code | Status |
1 | Approved |
2 | Marketed |
3 | Cancelled Pre Market |
4 | Cancelled Post Market |
6 | Dormant |
9 | Cancelled (Unreturned Annual) |
10 | Cancelled (Safety Issue) |
11 | Authorized By Interim Order |
12 | Authorization By Interim Order Revoked |
13 | Restricted Access |
14 | Authorization By Interim Order Expired |
15 | Cancelled (Transitioned to Biocides) |
License
MIT
Available Tools
15 toolsget_active_ingredientsA
Get active ingredient(s) for a drug product.
Active ingredients are components that have medicinal properties and supply pharmacological activity. Returns ingredient name, strength, and dosage information.
Inputs: drug_code (required), lang, type, ingredient_name. Returns: result
get_all_drug_infoA
Get comprehensive information about a drug product in a single call.
Fetches all available data for a drug product including: basic product info, active ingredients, company, dosage form, packaging, pharmaceutical standard, route of administration, schedule, status, and therapeutic class.
Inputs: drug_code (required), lang. Returns: object
get_companyA
Get company information by company code.
Companies include DIN owners and manufacturers of drug products.
Inputs: company_code (required), lang, type. Returns: result
get_dosage_formA
Get dosage form(s) for a drug product.
Dosage form is the form of presentation (e.g., tablet, capsule, liquid, powder). A product can have multiple dosage forms when it's a kit.
Inputs: drug_code (required), lang, type, active_only. Returns: result
get_drug_productA
Get drug product information by drug code.
Inputs: drug_code (required), lang, type. Returns: result
get_packagingB
Get packaging information for a drug product.
Inputs: drug_code (required), type. Returns: result
get_pharmaceutical_standardA
Get pharmaceutical standard for a drug product.
The pharmaceutical standard is the standard to which a drug product is manufactured and represented.
Inputs: drug_code (required), type. Returns: result
get_product_statusA
Get the status of a drug product.
Status types include:
Approved: Active DIN authorized for sale but not yet marketed
Marketed: Active DIN currently being sold in Canada
Dormant: Active DIN previously marketed but sale suspended 12+ months
Cancelled Post-Market: DIN cancelled after being marketed
Cancelled Pre-Market: DIN cancelled before being marketed
Cancelled (Safety Issue): DIN cancelled due to safety concerns
Inputs: drug_code (required), lang, type. Returns: result
get_route_of_administrationA
Get route(s) of administration for a drug product.
Indicates how the product is introduced to the body (e.g., oral, topical, intramuscular, intravenous, rectal). A product can have multiple routes.
Inputs: drug_code (required), lang, type, active_only. Returns: result
get_scheduleA
Get drug schedule(s) for a drug product.
Schedules indicate the regulatory classification according to the Food and Drug Regulations and Controlled Drugs and Substances Act. Examples include:
Prescription
OTC (over the counter)
Schedule G (controlled drugs)
Narcotic
Schedule D (biological products)
Inputs: drug_code (required), lang, type, active_only. Returns: result
get_therapeutic_classA
Get the therapeutic class(es) for a drug product.
Therapeutic classification is assigned according to the drug's main therapeutic use, using the Anatomical Therapeutic Chemical (ATC) classification system.
Inputs: drug_code (required), lang, type. Returns: result
get_veterinary_speciesA
Get the veterinary species for a veterinary drug product.
Only applicable to veterinary drugs. Returns the animal species the drug is approved for (e.g., dogs, cats, horses, cattle, poultry).
Inputs: drug_code (required), lang, type. Returns: result
search_active_ingredientsA
Search for active ingredients by name across all drug products.
Inputs: ingredient_name (required), lang, type. Returns: result
search_drug_by_brand_nameA
Search for drug products by brand name.
Inputs: brand_name (required), lang, type, status. Returns: result
search_drug_by_dinA
Search for a drug product by Drug Identification Number (DIN).
The DIN is an 8-digit number assigned by Health Canada to a drug product prior to being marketed in Canada.
Inputs: din (required), lang, type. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Each tool targets a distinct resource or attribute (e.g., active ingredients, company, dosage form, packaging). Getter and search functions are clearly separated, with no overlapping purposes. The only potential overlap between `get_drug_product` and `get_all_drug_info` is resolved by explicit descriptions of basic vs. comprehensive info.
All tool names follow a consistent snake_case verb_noun pattern: `get_<attribute>` or `search_<entity>`. The getters are uniformly prefixed with `get_`, and the search tools with `search_`. No mixed conventions or vague verbs.
At 15 tools, the set sits at the upper boundary of an appropriately scoped server. Each getter addresses a specific drug product attribute, and `get_all_drug_info` provides a useful aggregate. There is no redundancy or unnecessary expansion.
The server covers all major drug product attributes, including active ingredients, company, dosage form, packaging, pharmaceutical standard, route, schedule, status, therapeutic class, and veterinary species. Searches by DIN and brand name cover primary lookup methods. However, there is no reverse lookup to find drugs by active ingredient or company, which is a notable gap for a drug database.
Maintenance
Related MCP Connectors
Look up any Canadian drug product by brand name or DIN. Free drug_search tool.
Health Canada Drug Product Database (fleet #522).
Unofficial DrugBank MCP — wraps the DrugBank Clinical API (api.drugbank.com)
Look up drug names, RxCUIs, ingredients and interactions in RxNorm.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables users to query standardized drug concepts from the National Library of Medicine's RxNorm, including name-based search, drug property retrieval, and related concept exploration via the RxNav REST API.83 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables checking drug-drug interactions, resolving drug names or products, and retrieving structured drug monographs (indication, mechanism of action, dosing, adverse effects) via the DrugBank Clinical API.113 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables querying the Health Canada Drug Product Database for approved drugs, including brand names, DINs, active ingredients, strengths, dosage forms, routes, and market status.87 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables querying the Swissmedic authorised human medicines register, including search, product details, recent changes, and dataset metadata.64 npmMIT