


Public Hosted Server: https://openfda.caseyjhand.com/mcp
Overview
FDA data on drugs, food, cosmetics, devices, tobacco, veterinary products, and recalls from the openFDA public API. Search adverse events, recalls, drug approvals (Drugs@FDA, the Orange Book, Complete Response Letters), drug shortages, device clearances and classifications, and tobacco problem reports; look up NDC codes and drug labels; aggregate field counts across any endpoint.
Tools
| Tool |
Description |
openfda_drug_profile |
One drug name → consolidated FDA profile: identity, label, adverse events, recalls, approval, shortage |
openfda_search_adverse_events |
Search adverse event reports across drugs, food, devices, and cosmetics |
openfda_search_animal_events |
Search adverse event reports for veterinary drugs and devices |
openfda_search_drug_shortages |
Search FDA drug shortage records by status, availability, therapeutic category, manufacturer |
openfda_search_tobacco_reports |
Search problem reports for tobacco products, e-cigarettes, and vaping devices |
openfda_search_recalls |
Search enforcement reports and recall actions across drugs, food, and devices |
openfda_count_values |
Aggregate and tally unique values for any field across any openFDA endpoint |
openfda_describe_fields |
Return searchable field paths for an openFDA endpoint, grouped by category |
openfda_get_drug_label |
Look up FDA drug labeling (package inserts / SPL documents) |
openfda_search_drug_approvals |
Search Drugs@FDA NDA/ANDA applications, Orange Book products with patents and exclusivities, and Complete Response Letters |
openfda_search_device_clearances |
Search FDA device premarket records: 510(k) clearances, PMA approvals, and the product classification registry |
openfda_lookup_ndc |
Look up drugs in the NDC (National Drug Code) Directory or the NSDE package file |
openfda_dataframe_describe |
List tables and column schemas staged on a DataCanvas |
openfda_dataframe_query |
Run read-only SQL over a result set staged on a DataCanvas |
openfda_dataframe_drop |
Delete one table staged on a DataCanvas (opt-in, off by default) |
Capability reference
openfda_drug_profile tool
- One
drug name, brand or generic, with each run of whitespace and characters openFDA refuses (;, ®) read as one space; a name with no ASCII letter or digit fails as blank_drug_name. The name is resolved once to an identity (generic name, NDC, manufacturer, application number, original-packager flag, RxCUI, SPL set ID) from an original packager's label when one matches, else any matching label or the NDC directory, and from the approval application's own label when it has one; meta.resolvedVia (label, ndc, none) names the source, and a single-ingredient product is preferred over combinations
approval is the drug's own Drugs@FDA application, ranked over the name's NDA, BLA, and brand matches, with its sponsor, marketing status, original approval date, review priority, and submission class (the earliest ORIG submission with status AP; null when there is none, never a supplement's date); recalls and shortage key on meta.fanOutKey — the typed name when it is an ingredient of the resolved generic, else that generic
- Each section names its product:
shortage gives the product, company, and presentation of the record shown, with the match total and per-status counts, and differing identity.application_number / approval.applicationNumber mean two products
- Recalls also search records openFDA never harmonized (
product_description); recalls_total gives the match count beside the newest 5 recalls, each with its recall_number, status, classification, reason, recalling firm, and date; a recall's lots come from openfda_search_recalls with category: drug and recall_number:"<recall_number>"
- Sections
label, adverse_events, recalls, approval, and shortage are best-effort and come back null (or an empty recalls) on a miss; degraded[] names each section whose sub-query failed upstream, so a listed section is unknown rather than absent; a sub-query cut by the 50 s profile deadline is listed with reason timeout
- Auth, configuration, and cancellation failures fail the whole call instead of degrading a section
openfda_search_adverse_events tool
category (drug, food, device, cosmetic) selects the endpoint and its record schema; limit defaults to 5 (cap 25) for drug, 25 (cap 1000) for food and cosmetic, 10 (cap 175) for device
- Sortable date fields differ by category:
receivedate (drug), date_created (food), date_received (device), initial_received_date (cosmetic, the date FDA first received the report); another category's field fails as not_sortable; with neither search nor sort, results come newest first on that field
- A drug page read without
fields leaves patient.drug.openfda out of each report, the bulk of the page, and lists it in omitted_fields with its bytes; include returns it, or a path beneath it, and so does a search clause on patient.drug.openfda.*
- A matched search that AND-s clauses under one array (
patient.drug, patient.reaction, a device's device, patient, or mdr_text, a food or cosmetic report's products) carries a notice: openFDA tests each clause against the whole report, so different entries can meet them. It names the array, the fields, and the staged SQL that requires one entry
- Text output lists each reaction with its outcome (
Death — fatal (5)), shows onset age with its unit (3 month (802)), and decodes the coded drug and report fields from FDA's field reference beside the raw value (via oral (048), elderly (6), drug withdrawn (1)); structured output keeps the codes
openfda_search_animal_events tool
- Optional
search over veterinary reports, e.g. animal.species, drug.active_ingredients.name, reaction.veddra_term_name, serious_ae; limit defaults to 25, cap 450; a bare browse (no search, no sort) is newest first by original_receive_date
- Brand and manufacturer names are masked as
MSK on every record, so search by active ingredient; drug.manufacturer.registration_number narrows to one approval
- Records carry animal species, breed, age, and weight, the drug and route, VeDDRA reaction terms, and outcome
- AND-ed clauses under one array (
drug, drug.active_ingredients, reaction, outcome) can be met by different entries of a report; a matched search that does this carries a notice naming the array, the fields, and the staged SQL that requires one entry
openfda_search_drug_shortages tool
- Optional
search over status (Current / To Be Discontinued / Resolved), therapeutic_category, generic_name, or company_name; limit defaults to 25, cap 1000; a bare browse (no search, no sort) is newest first by update_date
- The four date fields (
initial_posting_date, update_date, discontinued_date, change_date) are searched as YYYY-MM-DD; a date written YYYYMMDD, M/D/YYYY, or YYYY-M-D is rewritten to that form, in a term or either bound of a range
- Each record's
openfda block carries brand_name, product_ndc, and rxcui for chaining into openfda_get_drug_label or openfda_lookup_ndc
openfda_search_tobacco_reports tool
- Optional
search over tobacco_products, reported_health_problems, reported_product_problems, or nonuser_affected; limit defaults to 25, cap 1000; a bare browse (no search, no sort) is newest first by date_submitted
- Reports carry the problem arrays plus
number_tobacco_products, number_health_problems, and number_product_problems counts
openfda_search_recalls tool
category (drug, food, device) plus endpoint: enforcement (default, every category) or recall (devices only; other categories fail as recall_endpoint_non_device); limit defaults to 25 (cap 1000) for drug and food enforcement, 10 (cap 125) for device enforcement, 10 (cap 50) for device recall; a bare browse (no search, no sort) is newest first by report_date (event_date_initiated for device recall)
- Enforcement records carry
recall_number, classification (Class I/II/III), and status; device recall records carry product_res_number and recall_status instead, with no hazard classification
- Device records are the heaviest, so a page read without
fields leaves the lot lists out and names them in omitted_fields with their bytes: code_info and more_code_info on device enforcement; code_info, openfda.k_number, openfda.fei_number, and openfda.registration_number on device recall. include returns a path (or one beneath it), and so does a search clause naming it; drug and food records come back whole
openfda_count_values tool
endpoint (any of the 24 openFDA endpoints), a count field expression, and an optional search; returns the top limit terms (default 100, cap 1000; a larger limit returns 1000 with a notice), ranked by count; a date field returns one term per distinct YYYYMMDD date, ranked the same way
truncated flags more distinct terms past limit, except at the 1000-term maximum, where a notice says completeness can't be known (a date count is exact at any limit, since openFDA sends every date); an expression openFDA can't aggregate fails as not_aggregatable (take the countAs form from openfda_describe_fields)
- On
drug/shortages, dates written YYYYMMDD, M/D/YYYY, or YYYY-M-D in search are rewritten to YYYY-MM-DD, as on the shortage search tool
- A count whose
search AND-s clauses under one array of objects on drug/event, device/event, food/event, cosmetic/event, animalandveterinary/event, drug/drugsfda, drug/orangebook, or drug/ndc carries a notice that the clauses can be met by different entries; it names the search tool and the category or dataset value (where the tool takes one) that stages the endpoint, with the WHERE condition for one entry
- Always runs against the live API, even with the bulk mirror enabled
openfda_describe_fields tool
endpoint: the same 24 endpoints openfda_count_values accepts
- Field paths grouped by category, each with
type, a description, and countAs (the verified count expression, or null when the field can't be aggregated), plus queryTips on quoting, AND/OR, .exact, and date ranges
openfda_get_drug_label tool
- Required
search on label fields (openfda.brand_name, openfda.generic_name, openfda.manufacturer_name, set_id); limit defaults to 5, cap 1000 (a larger value returns 1000 records with a notice naming the next skip); an empty search names spl_product_data_elements for labels openFDA never linked to a product
- A brand search also matches repackagers' copies of a label: add
AND openfda.is_original_packager:true to keep the original packager's, or take identity.spl_set_id from openfda_drug_profile
- A page over 24,000 bytes returns
kind: "outline" (section names and sizes, largest first) instead of label text, with page_labels listing each record on the page (set_id, effective_time, names, is_original_packager, bytes); re-call with sections: [...] to get those sections plus identity metadata (openfda, set_id, id, effective_time, version), returned whole even when over budget. A single label over 24,000 bytes outlines even when re-called alone by set_id
*_table sections render as Markdown tables in the text output; structured results keep the raw SPL markup
openfda_search_drug_approvals tool