Openfda Mcp Server
by github.com/cyanheads · v0.11.0 · updated Nov 23, 2026
Query FDA data on drugs, food, devices, and recalls via openFDA. STDIO or Streamable HTTP.
Connect to the hosted server
Add this URL as a custom connector in your AI client.
Server URL
https://openfda.caseyjhand.com/mcpClaude Code
claude mcp add --transport http openfda-mcp-server https://openfda.caseyjhand.com/mcpRun it locally
Install the package and point your AI client at it.
npm
npx -y @cyanheads/[email protected]Environment variables
OPENFDA_API_KEYFree API key from open.fda.gov — increases daily limit from 1K to 120K requests.
OPENFDA_CLAMP_LIMITSClamp a limit above its endpoint's cap to that cap, with a notice naming the requested value and the cap. On by default; set to 'false' to reject such a limit instead and advertise the cap as the schema maximum.
CANVAS_PROVIDER_TYPEDataCanvas staging, on by default: stage=true or a canvas_id on an openfda_search_* tool or openfda_lookup_ndc stages the matched records as a SQL table for the openfda_dataframe_* tools. The DuckDB binding ships with the server. Set to 'none' to disable.
OPENFDA_DATAFRAME_DROP_ENABLEDEnable openfda_dataframe_drop, which deletes a table staged on a DataCanvas. Off by default; applies only when DataCanvas is enabled (CANVAS_PROVIDER_TYPE=duckdb).
OPENFDA_MIRROR_ENABLEDServe exact-key lookups for drug/label, drug/ndc, drug/enforcement, and drug/drugsfda from a local bulk mirror instead of the API. Off by default; the initial harvest runs out-of-band via the mirror:init script.
OPENFDA_MIRROR_PATHDirectory holding one SQLite file per mirrored dataset.
OPENFDA_MIRROR_REFRESH_CRONCron expression for the in-process mirror refresh. HTTP transport only; stdio operators run mirror:refresh from the host. Requires the optional node-cron peer dependency.
OPENFDA_MIRROR_FALLBACK_LIVEFall back to the live API when the mirror is cold, missing the record, or failing. Disable to fail loudly instead.
OPENFDA_MIRROR_REFRESH_TIMEOUT_MSWall-clock budget for one scheduled refresh before it is aborted. Raise it for drug/label, the only multi-partition dataset.
OPENFDA_MIRROR_BASE_URLHost serving the openFDA bulk download manifest. Override only to harvest from a private mirror of the dumps.
MCP_LOG_LEVELSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
npm
npx -y @cyanheads/[email protected]Environment variables
OPENFDA_API_KEYFree API key from open.fda.gov — increases daily limit from 1K to 120K requests.
MCP_TRANSPORT_TYPESelects the HTTP transport.
MCP_HTTP_HOSTThe hostname for the HTTP server.
MCP_HTTP_PORTThe port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATHThe endpoint path for the MCP server.
MCP_AUTH_MODEAuthentication mode to use: 'none', 'jwt', or 'oauth'.
OPENFDA_CLAMP_LIMITSClamp a limit above its endpoint's cap to that cap, with a notice naming the requested value and the cap. On by default; set to 'false' to reject such a limit instead and advertise the cap as the schema maximum.
CANVAS_PROVIDER_TYPEDataCanvas staging, on by default: stage=true or a canvas_id on an openfda_search_* tool or openfda_lookup_ndc stages the matched records as a SQL table for the openfda_dataframe_* tools. The DuckDB binding ships with the server. Set to 'none' to disable.
OPENFDA_DATAFRAME_DROP_ENABLEDEnable openfda_dataframe_drop, which deletes a table staged on a DataCanvas. Off by default; applies only when DataCanvas is enabled (CANVAS_PROVIDER_TYPE=duckdb).
OPENFDA_MIRROR_ENABLEDServe exact-key lookups for drug/label, drug/ndc, drug/enforcement, and drug/drugsfda from a local bulk mirror instead of the API. Off by default; the initial harvest runs out-of-band via the mirror:init script.
OPENFDA_MIRROR_PATHDirectory holding one SQLite file per mirrored dataset.
OPENFDA_MIRROR_REFRESH_CRONCron expression for the in-process mirror refresh. HTTP transport only; stdio operators run mirror:refresh from the host. Requires the optional node-cron peer dependency.
OPENFDA_MIRROR_FALLBACK_LIVEFall back to the live API when the mirror is cold, missing the record, or failing. Disable to fail loudly instead.
OPENFDA_MIRROR_REFRESH_TIMEOUT_MSWall-clock budget for one scheduled refresh before it is aborted. Raise it for drug/label, the only multi-partition dataset.
OPENFDA_MIRROR_BASE_URLHost serving the openFDA bulk download manifest. Override only to harvest from a private mirror of the dumps.
MCP_LOG_LEVELSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
More from github.com/cyanheads
Gdelt Mcp Server
github.com/cyanheads
Search and analyze global news coverage and US TV transcripts via the GDELT Project APIs.
Openfoodfacts Mcp Server
github.com/cyanheads
Barcode lookup, nutrition search, and product comparison for 3M+ crowd-sourced food products.
Pubchem Mcp Server
github.com/cyanheads
Search PubChem compounds, properties, safety data, bioactivity, and cross-references.
Pubmed Mcp Server
github.com/cyanheads
Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms.
Canada Parliament Mcp Server
github.com/cyanheads
Track Canadian federal bills, MPs, House votes, and Hansard speeches.
Nasa Power Mcp Server
github.com/cyanheads
Query NASA POWER solar, wind, building, and agroclimatology data.
More MCP servers
Codify Mcp
github.com/cybairfly
Easily create reusable automation tools from casual browser actions using Apify Agent
Database Admin
github.com/cybeleri
Database admin MCP: schema inspection, query optimization for PostgreSQL and MySQL
Finance
github.com/cybeleri
Financial data MCP server: stock quotes, crypto prices, portfolio tracking, market analysis
SoleScout
github.com/cyberLdy
Live sneaker & streetwear prices and in-stock sizes across 600+ US stores, by style code.
code-graph
github.com/cyberchronos00
Local dependency graph: callers, entry points and file:line evidence for what a change affects.
OpsecForge
github.com/cyberdroid2077
Local MCP tools that keep secrets out of agent context: redact files, scan commits, verify webhooks.