← Index

io.github.cyanheads/openfda-mcp-server

io.github.cyanheads/openfda-mcp-server·v0.1.10·Other
Quality Score
80
/100

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

§01  Install
Remote endpoint

Streamable HTTP / SSE endpoint. Add to any MCP client that supports remote servers.

https://openfda.caseyjhand.com/mcp
Claude Desktop (claude_desktop_config.json)
{
  "mcpServers": {
    "openfda-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/openfda-mcp-server"
      ],
      "env": {
        "OPENFDA_API_KEY": "<openfda_api_key>",
        "MCP_LOG_LEVEL": "info",
        "MCP_TRANSPORT_TYPE": "http",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_PORT": "3010",
        "MCP_HTTP_ENDPOINT_PATH": "/mcp",
        "MCP_AUTH_MODE": "none"
      }
    }
  }
}
Cursor (.cursor/mcp.json)
{
  "mcpServers": {
    "openfda-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/openfda-mcp-server"
      ],
      "env": {
        "OPENFDA_API_KEY": "<openfda_api_key>",
        "MCP_LOG_LEVEL": "info",
        "MCP_TRANSPORT_TYPE": "http",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_PORT": "3010",
        "MCP_HTTP_ENDPOINT_PATH": "/mcp",
        "MCP_AUTH_MODE": "none"
      }
    }
  }
}
Cline (cline_mcp_settings.json)
npx -y @cyanheads/openfda-mcp-server
§02  Environment variables
OPENFDA_API_KEY

Free API key from open.fda.gov — increases daily limit from 1K to 120K requests.

MCP_LOG_LEVEL

Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

OPENFDA_API_KEY

Free API key from open.fda.gov — increases daily limit from 1K to 120K requests.

MCP_TRANSPORT_TYPE
required

Must be set to 'http' for streamable HTTP transport.

MCP_HTTP_HOST

The hostname for the HTTP server.

MCP_HTTP_PORT

The port to run the HTTP server on.

MCP_HTTP_ENDPOINT_PATH

The endpoint path for the MCP server.

MCP_AUTH_MODE

Authentication mode to use: 'none', 'jwt', or 'oauth'.

MCP_LOG_LEVEL

Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

§03  MCP Quality Score  ·  methodology
freshness
25
completeness
10
installability
25
documentation
15
stability
5
§04  Alternatives in Other