openfda-mcp-server
Server Details
Query FDA data on drugs, food, devices, and recalls via openFDA. STDIO or Streamable HTTP.
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- Repository
- cyanheads/openfda-mcp-server
- GitHub Stars
- 5
- Server Listing
- @cyanheads/openfda-mcp-server
- ChatGPT
- –
- Claude
- –
TDQS
Scored across 14 tools
Most tools target a distinct openFDA dataset or analytic operation (search_*, count_values, dataframe_query), and the descriptions clearly scope each one. The main soft spots are the pair openfda_describe_fields (endpoint field paths) vs openfda_dataframe_describe (staged table schema), and openfda_drug_profile vs the individual search/label tools it explicitly replaces — both are disambiguated in prose but require reading the descriptions carefully.
All 14 tools share the openfda_ prefix and most follow a verb_noun pattern (search_*, get_drug_label, lookup_ndc, count_values, describe_fields). Deviations are minor: openfda_dataframe_describe and openfda_dataframe_query put the object before the verb (inconsistent with describe_fields), and openfda_drug_profile is a bare noun phrase.
Fourteen tools is well within the healthy 3-15 range and each earns its place: one tool per major FDA dataset plus a small shared analytics layer (count, describe, query). No redundant wrappers or vanity tools, and the composite drug_profile is justified as an explicit convenience over chaining.
Coverage is broad — drug labels, NDC, human/animal/tobacco adverse events, device clearances, drug approvals, shortages, recalls — plus aggregation, field discovery, and SQL over staged results, so most workflows have a path. Minor gaps: no generic get-by-identifier/single-record fetch (e.g., a specific recall_number or set_id), and food/device adverse-event specifics are implicitly folded into openfda_search_adverse_events rather than given dedicated surfaces.
Available Tools
14 toolsopenfda_count_valuesOpenfda Count ValuesARead-onlyInspect
Aggregate and tally unique values for any field across any openFDA endpoint. Returns ranked term-count pairs sorted by count descending; a date field tallies one term per distinct YYYYMMDD date, ranked the same way. Pair with openfda_search_adverse_events, openfda_search_drug_approvals, openfda_search_device_clearances, openfda_search_recalls, openfda_get_drug_label, or openfda_lookup_ndc when sample records help interpret the aggregates.
Inputs: count (required), endpoint (required), limit, search. Returns: cap, meta, error, shown, +5 more
openfda_dataframe_describeOpenfda Dataframe DescribeARead-onlyIdempotentInspect
List the tables and column schemas on a DataCanvas staged by an openFDA search tool. Call before openfda_dataframe_query to discover the exact table name, column names, and DuckDB types needed for valid SQL. row_count is the full staged result set, not the inline preview count. Columns typed JSON hold nested openFDA objects/arrays — query them with DuckDB json functions.
Inputs: canvas_id (required). Returns: error, tables, canvas_id
openfda_dataframe_queryOpenfda Dataframe QueryARead-onlyIdempotentInspect
Run a read-only SQL SELECT against a DataCanvas table staged by an openFDA search tool (call one with stage=true; its response carries canvas_id + canvas_table). Enables GROUP BY, COUNT/SUM/AVG, time-series, and joins across the staged result set without re-paging the API. Call openfda_dataframe_describe first to get the exact table and column names. Results are capped at the canvas row limit — when truncated is true, page the rest with ORDER BY plus LIMIT/OFFSET. Scalar fields are stored as text (CAST for numeric math); nested objects/arrays are JSON columns — read them with DuckDB json functions, e.g. json_extract_string(openfda, '$.brand_name[0]'). Only SELECT is allowed — DDL, DML, COPY, and file-reading functions are blocked.
Inputs: query (required), canvas_id (required). Returns: rows, error, canvas_id, row_count, +1 more
openfda_describe_fieldsOpenfda Describe FieldsARead-onlyInspect
Return the searchable field paths for an openFDA endpoint, grouped by category with type and description. Use before constructing a search query to find the correct dotted field path — field names differ per endpoint and are not discoverable from the tool schema alone.
Inputs: endpoint (required). Returns: error, groups, endpoint, queryTips
openfda_drug_profileOpenfda Drug ProfileARead-onlyInspect
Resolve one drug name to its FDA identity, then fan out in parallel across the bounded per-drug openFDA endpoints and merge into one profile: identity, label highlights, adverse-event summary, recall history, Drugs@FDA approval, and shortage status. Identity and label come from an original packager's label when one matches (identity.is_original_packager says when they do not), approval is the drug's own application ranked over its Drugs@FDA matches, and each section names the product it describes. Replaces chaining openfda_get_drug_label, openfda_search_adverse_events, openfda_search_recalls, openfda_search_drug_approvals, and openfda_search_drug_shortages — and reconciles the identifier drift between endpoints that makes that chaining error-prone. Each section is best-effort: a miss returns null rather than failing the call, and a sub-query the 50 s profile deadline cuts is listed in degraded. For deep dives into any one area, use the dedicated tool.
Inputs: drug (required). Returns: meta, error, label, notice, +8 more
openfda_get_drug_labelOpenfda Get Drug LabelARead-onlyInspect
Look up FDA drug labeling (package inserts / SPL documents). Check indications, warnings, dosage, contraindications, active ingredients, or any structured label section. A label runs to tens of thousands of tokens, so a page that exceeds the inline budget returns the list of available sections instead; re-call with sections to pull the ones you need.
Inputs: search (required), skip, sort, limit, +2 more. Returns: cap, kind, meta, error, +9 more
openfda_lookup_ndcOpenfda Lookup NdcARead-onlyInspect
Look up drugs in the NDC (National Drug Code) Directory. Identify drug products by NDC code, find active ingredients, packaging details, or manufacturer info. Set dataset to nsde to resolve an 11-digit NDC or a package whose marketing ended. Pair with openfda_get_drug_label using the returned brand_name or set_id to read the package insert. With stage=true, call openfda_dataframe_describe for the staged columns, then openfda_dataframe_query for SQL.
Inputs: search (required), skip, sort, limit, +5 more. Returns: meta, error, notice, results, +11 more
openfda_search_adverse_eventsOpenfda Search Adverse EventsARead-onlyInspect
Search adverse event reports across drugs, food, devices, and cosmetics. Use to investigate safety signals, find reports for a specific product, or explore reactions by demographics. With stage=true, call openfda_dataframe_describe for the staged columns, then openfda_dataframe_query for SQL.
Inputs: category (required), skip, sort, limit, +6 more. Returns: meta, error, notice, results, +12 more
openfda_search_animal_eventsOpenfda Search Animal EventsARead-onlyInspect
Search adverse event reports for veterinary drugs and devices submitted to the FDA Center for Veterinary Medicine. Records include animal species, breed, age, weight, drug name and route, adverse reactions (using VeDDRA terminology), and outcome. Use to investigate safety signals for veterinary products, find reports by animal species or drug, or explore reaction patterns. Brand and manufacturer names are masked as "MSK" on every record (the FDA null flavor for withheld data), so find a product by active ingredient on drug.active_ingredients.name, unsuffixed. An ingredient search spans every product containing it and cannot attribute reports to one brand; drug.manufacturer.registration_number (the full value, e.g. "USA-USFDACVM-N141426") narrows it to one approval. With stage=true, call openfda_dataframe_describe for the staged columns, then openfda_dataframe_query for SQL.
Inputs: skip, sort, limit, stage, +4 more. Returns: meta, error, notice, results, +11 more
openfda_search_device_clearancesOpenfda Search Device ClearancesARead-onlyInspect
Search FDA device premarket records: 510(k) clearances, PMA approvals, and the product classification registry (class and required submission type per product code). With stage=true, call openfda_dataframe_describe for the staged columns, then openfda_dataframe_query for SQL.
Inputs: pathway (required), skip, sort, limit, +5 more. Returns: meta, error, notice, results, +11 more
openfda_search_drug_approvalsOpenfda Search Drug ApprovalsARead-onlyInspect
Search FDA drug application records: Drugs@FDA approvals (NDAs, ANDAs, BLAs) with sponsor and full submission history by default, or with dataset the Orange Book's patents and exclusivities, or FDA's Complete Response Letters with their full text. Pair with openfda_get_drug_label to read the approved label, or openfda_count_values to aggregate by sponsor_name, product_type, or route. With stage=true, call openfda_dataframe_describe for the staged columns, then openfda_dataframe_query for SQL.
Inputs: skip, sort, limit, stage, +5 more. Returns: meta, error, notice, results, +11 more
openfda_search_drug_shortagesOpenfda Search Drug ShortagesARead-onlyInspect
Search FDA drug shortage records. Returns per-product shortage status, availability, therapeutic category, dosage form, manufacturer, and dates. Use to check whether a drug is currently in shortage, find all oncology drugs with supply issues, or retrieve the openfda block (brand_name, product_ndc, rxcui) to chain into openfda_get_drug_label or openfda_lookup_ndc. With stage=true, call openfda_dataframe_describe for the staged columns, then openfda_dataframe_query for SQL.
Inputs: skip, sort, limit, stage, +4 more. Returns: meta, error, notice, results, +11 more
openfda_search_recallsOpenfda Search RecallsARead-onlyInspect
Search enforcement reports and recall actions across drugs, food, and devices. With stage=true, call openfda_dataframe_describe for the staged columns, then openfda_dataframe_query for SQL.
Inputs: category (required), skip, sort, limit, +7 more. Returns: meta, error, notice, results, +12 more
openfda_search_tobacco_reportsOpenfda Search Tobacco ReportsARead-onlyInspect
Search problem reports submitted to the FDA for tobacco products, including e-cigarettes, vaping products, cigarettes, and smokeless tobacco. Reports capture product type, reported health problems (e.g. seizure, chest pain), product problems (e.g. exploding battery), whether a non-user was affected, and submission date. Use to investigate safety signals, find reports by product type, or analyze health effects. With stage=true, call openfda_dataframe_describe for the staged columns, then openfda_dataframe_query for SQL.
Inputs: skip, sort, limit, stage, +4 more. Returns: meta, error, notice, results, +11 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Search openFDA drug, device, food and adverse-event datasets.
Search FDA safety data: drug adverse events, recalls, and device events.
Read-only openFDA: 510(k) clearances, device establishments, device recalls, drug shortages.
FDA medical-device regulatory intelligence from keyless openFDA datasets.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceSearch and retrieve US consumer product recalls from the CPSC (Consumer Product Safety Commission) via MCP, with STDIO or Streamable HTTP.87 npm1Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables querying FDA drug approvals, device clearances (510(k)), recalls, and adverse events via the openFDA API, providing tools for clinical and pharmaceutical research.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables querying openFDA for drug label text, Drugs@FDA application records, and device submission and product-code classification data, including end-to-end validation of device application details. It also supports an experimental sweep of drug labels for real-world-evidence vocabulary.76 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables searching the ClinicalTrials.gov registry, retrieving full study records and posted results, discovering valid field names and values, and matching patient demographics to candidate recruiting trials. Runs over STDIO or Streamable HTTP with no authentication required.4,289 npmApache 2.0
Glama MCP Gateway
Add one secure layer between your agents and this server.