
Wraps the openFDA API to give Claude access to FDA drug, device, and food enforcement data without requiring authentication. Part of the Pipeworx gateway ecosystem, which offers a streamable HTTP transport and an ask_pipeworx tool that interprets natural language questions and routes them to the appropriate API endpoints automatically. Useful when you need to query adverse event reports, recall information, or drug labeling data directly from conversations. The source doesn't list specific tools, but openFDA's public API covers drug adverse events, recalls, NDC directories, and device classification datasets. Free tier, no API keys needed, and you can use it standalone or as part of Pipeworx's 673+ data source collection.
The U.S. Food and Drug Administration's open data platform. This pack covers the drug side: adverse-event reports and safety-signal tools (FAERS search, event counts, disproportionality/ROR-PRR, reaction profiles, trends), drug and novel-drug approvals (Drugs@FDA, by-company application history), drug labels, drug and food recalls, drug shortages and shortage changes, complete response letters, warning letters, and a cross-source postmarket risk-profile compound. The official source for what's been reported to or by the FDA. Free, no auth required (rate-limited).
Part of Pipeworx — an MCP gateway connecting AI agents to 1819+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
Drug-safety questions resolve here. Adverse event volumes, label changes, approval timelines, recall posture — all structured. For the full drug picture, pair with RxNorm (canonical IDs) and ClinicalTrials.gov (trials).
Common flows:
fda_drug_events({query: "ozempic"}) → individual safety reports + counts.fda_event_counts({query: "ozempic", count_field: "patient.reaction.reactionmeddrapt.exact"}) → MedDRA-coded counts.fda_drug_approvals({query: "ozempic"}).fda_drug_recalls({query: "ozempic"}).fda_drug_labels({query: "ozempic"}).fda_applications_by_cik({cik_or_ticker: "LLY"}). Resolves the company via SEC and aggregates across every sponsor_name spelling it filed under — see the pitfall below before reaching for fda_drug_approvals with a guessed sponsor name.Used by the pharma_drug_profile and pharma_safety_report compounds.
Public, no key required. Anonymous limit is ~240 requests/min and 1,000/day, counted per IP — so every caller sharing an egress address shares one 1,000/day budget, not one each.
api.fda.gov runs on api-umbrella, the same stack as api.data.gov, so an api.data.gov key authenticates it and lifts the daily limit to 120,000. Pipeworx injects a platform key (PLATFORM_DATAGOV_KEY); bring your own with _apiKey and your calls draw on your quota instead. Register free at https://open.fda.gov/apis/authentication/.
A key that is rejected or revoked does not fail the call — the pack retries once anonymously, since openFDA is fully usable without one.
| Dataset | Endpoint family | Coverage |
|---|---|---|
| Drug adverse events (FAERS) | fda_drug_events | 1968-present, ~20M+ reports |
| Drug approvals | fda_drug_approvals | 1939-present (NDA/BLA/ANDA) |
| Drug labels | fda_drug_labels | Current SPL labels |
| Drug recalls | fda_drug_recalls | Class I/II/III enforcement actions |
| Device adverse events | (separate tools) | MAUDE database |
| Food recalls | (separate tools) | FSIS + FDA recalls |
| Warning letters | fda_warning_letters | 3,680 published letters from 2021-01 on, fda.gov (not api.fda.gov), plus FDA's compliance-actions archive back to 2010 for firms with nothing in that window |
total field is reports, not adverse-event-suffering-individuals.ISCHAEMIC OPTIC NEUROPATHY is filed as OPTIC ISCHAEMIC NEUROPATHY. Reaction-filtered tools retry two- and three-word phrases in alternate word orders and disclose the resolved term in reaction_resolved.NEUROPATHY returns only reports filed under that exact term (~1,700) rather than every term containing the word (~117,000). This is deliberate: a disproportionality table needs one case definition, not an ad-hoc grouping. To find the terms FDA actually stores, count on patient.reaction.reactionmeddrapt.exact.reaction_resolution: "not_a_meddra_preferred_term" with a hint. Treat that as "the filter missed," never as "no reports exist."fda_warning_letters sits on fda.gov's solr index, which covers each letter's full body as well as the company column — so a raw full-text query answers "letters that mention X", not "letters issued to X". Those are very different claims about a named firm, and the difference was live: search: "Merck" returned exactly one letter, addressed to Elanco Animal Health, which merely names Merck in its text. search now filters on the addressed company, every row carries matched_field (company vs letter_text), and match: "fulltext" is the opt-in for body search. A recipient search with no hits returns found: false with the full-text count, so "no letters" is never confused with "we did not look".candidates_scanned: 0 and a confident "no warning letter matches "Hospira" at all" (fleet #2123). When a recipient search finds nothing in that window, the tool now consults FDA's Data Dashboard compliance-actions archive, which records the same enforcement events back to at least 2010. Those rows carry firm, place, product type and the issue date but no subject line and no letter URL — FDA does not republish the text of letters this old — so every row and the response itself carry source, and archive rows are never blended into the published ones. On the success path the response still says archive_note, because a firm with one 2024 letter and ten from 2015 legitimately counts 1 here. On the miss path it says archive_checked, so "we looked in both and found nothing" is distinguishable from "the archive was unreachable".scan_complete: false and a scope_note, and total_matching is a lower bound — narrow the term for an exact count.sponsor_name has no company-ID and is EXACT-match, not full-text. fda_drug_approvals queries like search=sponsor_name:"ELI LILLY AND COMPANY" match only that literal string — Eli Lilly's real applications are split across "LILLY" (116), "ELI LILLY AND CO" (22), "ELI LILLY CO" (4), and "LILLY RES LABS" (1), and the SEC-registered name matches none of them. Use fda_applications_by_cik (CIK/ticker in, every sponsor_name form aggregated out) instead of guessing spellings.Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
{
"mcpServers": {
"openfda": {
"url": "https://gateway.pipeworx.io/openfda/mcp"
}
}
}
tools/list at https://gateway.pipeworx.io/openfda/mcp returns the tools in the table
above plus the shared Pipeworx meta-tools — ask_pipeworx,
discover_tools, search_within, remember/recall and the rest of the
gateway-wide set. So the tool count you see is larger than this table: a
single-pack endpoint currently lists roughly 30 shared tools alongside the
pack's own. The connection's initialize response states its exact scope, and
is the authoritative answer for a given day.
This is deliberate, not multiplexing by accident. The meta-tools are what let a
scoped connection answer a question this pack does not cover — via
ask_pipeworx, which routes across the whole catalog — without you adding a
second MCP server. There is currently no way to mount a pack endpoint without
them; if the extra schemas cost you more context than the routing is worth,
connect to the full gateway once rather than to several pack endpoints.
Or connect to the full Pipeworx gateway to get every pack's tools listed directly, instead of just this one's:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
Both URLs reach the same gateway and the same 1819+ data sources. The
only difference is which pack's tools are listed directly; ask_pipeworx
reaches all of them from either one.
curl -X POST https://gateway.pipeworx.io/v1/tools/fda_drug_events \
-H 'Content-Type: application/json' \
-d '{"query":"patient.drug.medicinalproduct:\"OZEMPIC\""}'
No account needed for the first calls. Inspect any tool: GET https://gateway.pipeworx.io/v1/tools/fda_drug_events. Find one: POST https://gateway.pipeworx.io/v1/tools/search_packs with {"query":"..."}.
This package also runs as a local stdio MCP server — no Pipeworx account, no gateway round-trip:
{
"mcpServers": {
"openfda": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-openfda"]
}
}
}
Or run it directly to confirm it starts:
npx -y @pipeworx/mcp-openfda
It speaks MCP over stdin/stdout and answers initialize/tools/list/tools/call
for only this pack's tools — none of the shared meta-tools the gateway
connection above adds. Same source, same tools, no ask_pipeworx routing.
Instead of calling tools directly, you can ask questions in plain English — this works on the pack endpoint above as well as on the full gateway:
ask_pipeworx({ question: "your question about Openfda data" })
The gateway picks the right tool and fills the arguments automatically.
MIT