Home / Market / openfda-mcp-server

openfda-mcp-server

Query FDA data on drugs, food, devices, and recalls via openFDA. STDIO or Streamable HTTP.

mcp★ 0676 dlmcp-registryMIT configuration; upstream service license appliesInstall in CosmosUpstream Source

Documentation & Preview

{ "mcpServers": { "mcp-openfda-mcp-server-870e39c5596328dfe73c": { "command": "npx", "args": [ "-y", "--package", "@cyanheads/openfda-mcp-server@0.11.1", "openfda-mcp-server" ], "env": { "OPENFDA_API_KEY": "${ENV_OPENFDA_API_KEY}", "OPENFDA_CLAMP_LIMITS": "${ENV_OPENFDA_CLAMP_LIMITS}", "CANVAS_PROVIDER_TYPE": "${ENV_CANVAS_PROVIDER_TYPE}", "OPENFDA_DATAFRAME_DROP_ENABLED": "${ENV_OPENFDA_DATAFRAME_DROP_ENABLED}", "OPENFDA_MIRROR_ENABLED": "${ENV_OPENFDA_MIRROR_ENABLED}", "OPENFDA_MIRROR_PATH": "${ENV_OPENFDA_MIRROR_PATH}", "OPENFDA_MIRROR_REFRESH_CRON": "${ENV_OPENFDA_MIRROR_REFRESH_CRON}", "OPENFDA_MIRROR_FALLBACK_LIVE": "${ENV_OPENFDA_MIRROR_FALLBACK_LIVE}", "OPENFDA_MIRROR_REFRESH_TIMEOUT_MS": "${ENV_OPENFDA_MIRROR_REFRESH_TIMEOUT_MS}", "OPENFDA_MIRROR_BASE_URL": "${ENV_OPENFDA_MIRROR_BASE_URL}", "MCP_LOG_LEVEL": "${ENV_MCP_LOG_LEVEL}" } } }, "setup": { "fields": [ { "id": "ENV_OPENFDA_API_KEY", "label": "OPENFDA_API_KEY", "description": "Free API key from open.fda.gov — increases daily limit from 1K to 120K requests.", "required": false, "secret": false, "default": "" }, { "id": "ENV_OPENFDA_CLAMP_LIMITS", "label": "OPENFDA_CLAMP_LIMITS", "description": "Clamp 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.", "required": false, "secret": false, "default": "true" }, { "id": "ENV_CANVAS_PROVIDER_TYPE", "label": "CANVAS_PROVIDER_TYPE", "description": "DataCanvas 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.", "required": false, "secret": false, "default": "duckdb" }, { "id": "ENV_OPENFDA_DATAFRAME_DROP_ENABLED", "label": "OPENFDA_DATAFRAME_DROP_ENABLED", "description": "Enable openfda_dataframe_drop, which deletes a table staged on a DataCanvas. Off by default; applies only when DataCanvas is enabled (CANVAS_PROVIDER_TYPE=duckdb).", "required": false, "secret": false, "default": "false" }, { "id": "ENV_OPENFDA_MIRROR_ENABLED", "label": "OPENFDA_MIRROR_ENABLED", "description": "Serve 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.", "required": false, "secret": false, "default": "false" }, { "id": "ENV_OPENFDA_MIRROR_PATH", "label": "OPENFDA_MIRROR_PATH", "description": "Directory holding one SQLite file per mirrored dataset.", "required": false, "secret": false, "default": "./data/openfda-mirror" }, { "id": "ENV_OPENFDA_MIRROR_REFRESH_CRON", "label": "OPENFDA_MIRROR_REFRESH_CRON", "description": "Cron 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.", "required": false, "secret": false, "default": "" }, { "id": "ENV_OPENFDA_MIRROR_FALLBACK_LIVE", "label": "OPENFDA_MIRROR_FALLBACK_LIVE", "description": "Fall back to the live API when the mirror is cold, missing the record, or failing. Disable to fail loudly instead.", "required": false, "secret": false, "default": "true" }, { "id": "ENV_OPENFDA_MIRROR_REFRESH_TIMEOUT_MS", "label": "OPENFDA_MIRROR_REFRESH_TIMEOUT_MS", "description": "Wall-clock budget for one scheduled refresh before it is aborted. Raise it for drug/label, the only multi-partition dataset.", "required": false, "secret": false, "default": "21600000" }, { "id": "ENV_OPENFDA_MIRROR_BASE_URL", "label": "OPENFDA_MIRROR_BASE_URL", "description": "Host serving the openFDA bulk download manifest. Override only to harvest from a private mirror of the dumps.", "required": false, "secret": false, "default": "https://api.fda.gov" }, { "id": "ENV_MCP_LOG_LEVEL", "label": "MCP_LOG_LEVEL", "description": "Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').", "required": false, "secret": false, "default": "info" } ], "requirements": [ "安装 Node.js / npm" ] }, "provenance": { "registryServer": "io.github.cyanheads/openfda-mcp-server", "registryVersion": "0.11.1", "registryUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.cyanheads%2Fopenfda-mcp-server/versions/0.11.1", "repository": null, "sourceCommit": null, "namespaceRepositoryOwnerMatched": false, "officialRegistryNamespaceVerified": true, "package": { "registry": "npm", "identifier": "@cyanheads/openfda-mcp-server", "version": "0.11.1", "integrity": "sha512-214D76+D63t3NBi2Pz9BiTtBTQ9iDf50apTDLqPiPDLb04Bpm0NP2npstmR7TpeVutbRIYmTvWCUY2SIxXlhsA==", "registryNameMatched": "io.github.cyanheads/openfda-mcp-server", "checkedAt": "2026-11-26T09:19:41.863Z" }, "scope": "Install configuration verified; dependency implementation and remote behavior have not been audited" } }