io.github.cyanheads/openfda-mcp-server MCP Server
io.github.cyanheads/openfda-mcp-server
What is the io.github.cyanheads/openfda-mcp-server MCP server?
Query FDA data on drugs, food, devices, and recalls via openFDA. STDIO or Streamable HTTP.
How to install io.github.cyanheads/openfda-mcp-server
Copy-paste configuration for popular MCP clients.
OPENFDA_API_KEYFree API key from open.fda.gov — increases daily limit from 1K to 120K requests.
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').
MCP_TRANSPORT_TYPErequiredMust be set to 'http' for streamable 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'.
Related MCP servers
Access FEC campaign finance data. Query data about candidates, money trails, and election filings.
Barcode lookup, nutrition search, and product comparison for 3M+ crowd-sourced food products.
Search books and authors, fetch editions, browse subjects, and resolve cover images.
Search bills, legislators, committees, and events across all 50 US states, DC, and 5 US territories.
Geocode, reverse geocode, and run Overpass spatial queries on OpenStreetMap data.
Researcher profiles, works, affiliations, funding, and peer reviews from the ORCID registry.
