Install openfda-mcp-server for Claude Desktop
Claude Desktop reads mcpServers from claude_desktop_config.json. Restart the app after saving.
- Open ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows, or ~/.config/Claude/claude_desktop_config.json on Linux.
- Paste the JSON config below.
- Replace placeholder secrets, then restart the client if it does not reload on its own.
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"cyanheads-openfda-mcp-server": {
"command": "npx",
"args": [
"-y",
"@cyanheads/openfda-mcp-server@0.8.1"
],
"env": {
"OPENFDA_API_KEY": "",
"CANVAS_PROVIDER_TYPE": "none",
"OPENFDA_DATAFRAME_DROP_ENABLED": "false",
"OPENFDA_MIRROR_ENABLED": "false",
"OPENFDA_MIRROR_PATH": "./data/openfda-mirror",
"OPENFDA_MIRROR_REFRESH_CRON": "",
"OPENFDA_MIRROR_FALLBACK_LIVE": "true",
"OPENFDA_MIRROR_REFRESH_TIMEOUT_MS": "21600000",
"OPENFDA_MIRROR_BASE_URL": "https://api.fda.gov",
"MCP_LOG_LEVEL": "info"
}
}
}
}