openFDA Regulatory Metadata MCP Server
Resolve FDA application numbers and product names to regulatory metadata (CDER, CBER, CDRH).
openFDA Regulatory Metadata scores 56 (Fair), licensed MIT and written in Python. It installs as a local process. It declares 7 tools. Filed under Uncategorized. GitHub shows 0 stars. Package registries report about 20 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
56 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
90/100 for listing completeness. Lost points: short summary, no docs link.
How quality is graded
Where the 56 comes from
22 + 10 + 0 + 10 + 4 + 10 = 56. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 10 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "black-swan-causal-labs-openfda-mcp": { "command": "uvx", "args": [ "openfda-mcp" ] } }}
Environment variables
This server does not declare environment variables.
Tools7Tool docs quality grade D
All capabilitiesProduct code → device class + medical specialty
K / DEN / P / H number → device record
Drugs@FDA record for an NDA/BLA/ANDA number
Brand or generic name → application number(s)
Experimental. Sweep labels for RWE signals
Search SPL label text, optionally scoped to a section
Full chain: number → class, specialty, category
About
openFDA MCP
An MCP server exposing FDA regulatory metadata (drugs, biologics, and medical devices) through the openFDA API.
Built by Black Swan Causal Labs as the identifier-resolution layer for a real-world-evidence (RWE) case roster: given an FDA application number or a product name, resolve it to authoritative regulatory metadata.
Why this exists
There are other openFDA MCP servers, and several are broader. This one is narrow on purpose: it is the instrument that resolved the application numbers in a specific published RWE dataset, and it exists so that dataset can name the tool that produced it.
That matters more than it might sound. Whether BLA 125123/2058 resolves to a
particular product, or DEN160026 to a particular device class, is a decision
made by a piece of software — and a different wrapper can yield a different
roster. "We used openFDA" is not a sufficient methods statement; "openfda-mcp
v0.1.0" is. If you use this in research, pin the version.
Its practical edge over a general openFDA client is the device half: resolving a CDRH submission number to a risk class takes a three-hop chain (number → product code → classification) with two non-obvious traps, both handled here.
Tools
Drugs and biologics (/drug/* — CDER, CBER)
| Tool | Purpose |
|---|---|
search_drug_label | Search SPL label text, optionally scoped to a section |
lookup_drugsfda_application | Drugs@FDA record for an NDA/BLA/ANDA number |
resolve_drug_to_application | Brand or generic name → application number(s) |
screen_for_rwe_signals | Experimental. Sweep labels for RWE signals |
Devices (/device/* — CDRH)
| Tool | Purpose |
|---|---|
lookup_device_submission | K / DEN / P / H number → device record |
classify_device_product_code | Product code → device class + medical specialty |
validate_device_application | Full chain: number → class, specialty, category |
Install
pip install openfda-mcp
Add to your MCP client config:
{
"mcpServers": {
"openfda": {
"command": "openfda-mcp",
"env": { "OPENFDA_API_KEY": "${OPENFDA_API_KEY:-}" }
}
}
}
The API key is optional. Without one, openFDA allows 40 requests/min and 1,000/day, which is enough for interactive use. A free key raises it to 240/min and 120,000/day — worth having for bulk sweeps.
Two findings worth knowing
Both were established empirically and are not obvious from FDA's docs.
De Novo grants live in the 510(k) endpoint. DEN###### numbers are stored
in the k_number field of /device/510k. There is no De Novo endpoint, and
looking for one leads to the wrong conclusion that De Novo numbers can't be
resolved. They can.
HDE numbers are not in openFDA at all. Neither the 510(k) nor the PMA
endpoint carries H######, so no product code — and therefore no classification
— is retrievable. This server still reports device_class: "III" for them, by
regulatory inference: HDE is by definition the pathway for devices that would
otherwise require a PMA. medical_specialty stays null, because that one really
is unavailable, and device_class_source says which is which.
Transient failures are never silent
A genuine absence and a failed request are different things, and this package keeps them different:
- not found (HTTP 404, or 200 with no results) → returns
None; safe to cache - transient failure (timeout, connection error, 429, 5xx) → retried with
backoff, then raises
OpenFDATransientError; never cache this - rejected request (other 4xx) → raises
OpenFDARequestError
This is a direct response to a real defect: an earlier version swallowed every
exception and returned None, so a single read timeout on one application
number was cached as a real miss and silently blanked two fields on that record
for weeks. Cached failures are indistinguishable from real absences, which makes
them the worst kind of silent data loss.
On screen_for_rwe_signals
It is unvalidated. There is no ground-truth oracle for a discovery sweep, and below the strongest hits the results are dominated by applications whose labels use "registry" in an unrelated sense. Treat its output as candidates for human review — not as a finding, and not as a count to report. Establishing recall against a held-out set of known cases is open work.
Development
pip install -e ".[dev]"
pytest # unit tests, offline
pytest -m live # live checks against api.fda.gov
Live tests assert against known-good fixtures (K203571 → class II Ophthalmic,
DEN160026 → class II Immunology, BLA761180 → LEO Pharma) so a change on
FDA's side surfaces as a test failure rather than as quietly wrong data.
License
MIT
Frequently asked questions
What is openFDA Regulatory Metadata MCP Server?
Resolve FDA application numbers and product names to regulatory metadata (CDER, CBER, CDRH).
How do I install openFDA Regulatory Metadata MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. openFDA Regulatory Metadata MCP Server runs locally from the PyPI package openfda-mcp with the command uvx openfda-mcp.
Is openFDA Regulatory Metadata MCP Server free and open source?
Yes. openFDA Regulatory Metadata MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does openFDA Regulatory Metadata MCP Server support remote (HTTP) connections?
No remote endpoint is listed for openFDA Regulatory Metadata MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does openFDA Regulatory Metadata MCP Server provide?
openFDA Regulatory Metadata MCP Server provides 7 tools, including classify_device_product_code, lookup_device_submission, lookup_drugsfda_application, and resolve_drug_to_application. See the full tool list for descriptions and parameters.
How is openFDA Regulatory Metadata MCP Server's trust score calculated?
openFDA Regulatory Metadata MCP Server scores 56 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.