Skip to main content
Glama

drug-shortage-list-mcp

The FDA drug shortage list for AI assistants. Ask whether a drug is in shortage right now, by generic name, brand name or NDC, and get the live FDA status, availability and reason.

This is a Model Context Protocol (MCP) server. It reads the FDA Drug Shortages database through the openFDA API at call time. It needs no API key.

Tools

Tool

What it returns

search_drug_shortages

FDA shortage listings for a generic name, brand name or active ingredient, grouped by product, with counts by status and availability, shortage reasons, companies, package presentations and dates. A brand name match is widened to every listing of the same generic product.

get_drug_shortage_by_ndc

FDA shortage status for one package NDC or product NDC, with related packages of the same product.

list_recent_drug_shortages

The FDA drug shortage list, most recently updated first, by status and therapeutic category.

count_drug_shortages

How many shortage listings there are now, by status, therapeutic category, shortage reason or distinct product.

Every result has structured JSON, a one-paragraph summary, as_of, source (the exact openFDA request), the FDA database page and more (a page on mcpstamp.com).

Related MCP server: Unofficial FDA MCP Server

What it knows that your model does not

  • Which drugs FDA lists as in shortage today. Shortages start and end every week, and openFDA refreshes the list daily.

  • Package level detail. Each listing is one NDC from one company, with its own availability and update date.

  • Whether a shortage was resolved or the product is being discontinued, with the date and the FDA note.

Install

Hosted (Claude.ai custom connector, ChatGPT developer mode)

Paste this URL. No token, no sign-up. It works now.

https://drug-shortage-list-mcp.lipmichal.workers.dev/mcp

Claude Code

claude mcp add --transport http drug-shortages https://drug-shortage-list-mcp.lipmichal.workers.dev/mcp

Claude Desktop

Claude Desktop adds remote servers under Settings, Connectors, Add custom connector. Paste the URL above.

Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "drug-shortages": { "url": "https://drug-shortage-list-mcp.lipmichal.workers.dev/mcp" }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "drug-shortages": { "type": "http", "url": "https://drug-shortage-list-mcp.lipmichal.workers.dev/mcp" }
  }
}

Local stdio (after npm release)

The npm package is not published yet. After it is, run it locally with Node 20 or newer:

claude mcp add drug-shortages -- npx -y drug-shortage-list-mcp

Example prompts

  • "Is Adderall still in shortage?"

  • "Which oncology drugs are on the FDA shortage list right now?"

  • "Is NDC 0641-6059-01 in shortage?"

  • "How many drugs are in shortage in the US today?"

  • "Was the clonazepam shortage resolved?"

Data sources

Full list with fetch dates in DATA_SOURCES.md.

Limitations

  • FDA lists shortages it has confirmed. A drug can be hard to find at one pharmacy without being on the FDA list, and the answer says so.

  • openFDA states that its data are not validated for clinical use. Check with a pharmacist before changing any medication.

  • Without a key, openFDA allows 240 requests per minute and 1,000 per day per IP address. The tool returns a clear error when the limit is reached.

  • A search returns at most 100 listings per call. Totals still come from the full database.

More

More MCP servers that answer questions your assistant cannot answer alone are on mcpstamp.com.

Part of the Zovo MCP collection: https://mcp.zovo.one

Built by theluckystrike.

Development

npm install
npm test                              # builds, then runs the fixture tests and an offline stdio test
node scripts/stdio-transcript.mjs     # live stdio round trip, writes .live/stdio-transcript.jsonl

License

MIT

More from zovo

Available Tools

4 tools
count_drug_shortagesCount drug shortagesA
Read-onlyIdempotent
Inspect

How many FDA drug shortage listings there are now, grouped by status, therapeutic_category, shortage_reason or drug (distinct products). Defaults to Current listings by therapeutic category.

Inputs: by, status.

get_drug_shortage_by_ndcGet drug shortage by NDCA
Read-onlyIdempotent
Inspect

FDA shortage status for one National Drug Code, either a package NDC (0641-6059-01) or a product NDC (0641-6059), in the dashed form printed on the label. Returns the exact listing and related packages of the same product.

Inputs: ndc (required).

list_recent_drug_shortagesList recent drug shortagesA
Read-onlyIdempotent
Inspect

The FDA drug shortage list, most recently updated listings first. Defaults to status Current. Filter by therapeutic category, for example Anesthesia, Oncology, Pediatric, Psychiatry, Cardiovascular, Infectious Disease.

Inputs: limit, status, therapeutic_category.

search_drug_shortagesSearch drug shortagesA
Read-onlyIdempotent
Inspect

Is a drug in shortage now? Searches the FDA Drug Shortages database (via openFDA, updated daily) by generic name, brand name or active ingredient, for example "amoxicillin", "Adderall", "semaglutide", "lidocaine". Returns listings grouped by product with counts by status (Current, To Be Discontinued, Resolved) and availability (Available, Limited, Unavailable), shortage reasons, companies, presentations and dates. Your training data cannot know today's shortage list.

Inputs: drug (required), status, max_presentations.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 4 tools

    Disambiguation4/5

    Each tool has a distinct access mode: name-based search, single-NDC lookup, recency/category listing, and aggregate counting. The only mild overlap is between search_drug_shortages and list_recent_drug_shortages, since both return listings and a search with no query resembles a list, but the descriptions make the query-vs-browse distinction clear enough.

    Naming Consistency5/5

    All four tools follow a consistent snake_case verb_noun pattern (search_/get_/list_/count_ + drug_shortage(s)), with a single shared domain noun. The one compound name, get_drug_shortage_by_ndc, still fits the convention by adding a qualifier rather than breaking the pattern.

    Tool Count5/5

    Four tools is a tight, well-scoped surface for a single-dataset lookup server: lookup by name, by identifier, browse, and aggregate. Each tool covers a genuinely different question an agent might ask, with no redundancy that would warrant pruning.

    Completeness4/5

    The read-only domain is well covered: name search, exact NDC resolution (package and product), filtered listing, and counts by status/category/reason/drug. Minor gaps remain—no explicit pagination/limit parameters, no date-range or historical filtering, and no bulk export—but these are workarounds rather than dead ends for the stated purpose.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Provides access to the official FDA DailyMed database for comprehensive drug information, including drug labels, NDC codes, RxNorm mappings, pharmacologic classifications, and FDA application numbers through natural language queries.
      28
      3
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides 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.
      4
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to query FDA drug labels, FAERS adverse event reports, recalls, and ClinicalTrials.gov trials, and to compute pharmacovigilance signal metrics such as PRR/ROR with confidence intervals and flags. It also provides a drug safety brief prompt that combines these sources with source links and limitations.
      2
      6
      MIT