关于 openFDA MCP by usefulapi
openFDA MCP by usefulapi 是用于搜索 openFDA 公共数据集的托管 MCP 服务。健康研究人员及其他用户可查询药品、器械和食品记录,包括不良事件、召回及监管数据。
主要功能
- 01搜索药品事件、标签和召回
- 02查询药品代码和短缺情况
- 03搜索器械事件和许可记录
- 04搜索食品事件和召回
- 05查询或汇总 openFDA 数据集
适用场景
- 01研究不良事件报告
- 02核查召回和药品短缺
- 03查询器械许可和分类
- 04统计或查询 openFDA 记录
MCP 相关
向 MCP 客户端提供 openFDA 数据集的只读搜索、计数和通用查询工具。服务托管运行并使用提供的端点;无需 openFDA 凭据。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://openfda.usefulapi.io/mcpclaude mcp add --transport http io-usefulapi-openfda https://openfda.usefulapi.io/mcp{"mcpServers":{"io-usefulapi-openfda":{"type":"http","url":"https://openfda.usefulapi.io/mcp"}}}在 Cursor 中打开{"servers":{"io-usefulapi-openfda":{"type":"http","url":"https://openfda.usefulapi.io/mcp"}}}在 VS Code 中打开{"mcpServers":{"io-usefulapi-openfda":{"type":"http","url":"https://openfda.usefulapi.io/mcp"}}}{"mcpServers":{"io-usefulapi-openfda":{"serverUrl":"https://openfda.usefulapi.io/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
14| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| skip | integer | 否 | 要跳过的记录数,用于分页(0–25000;skip+limit 最多可访问约 26000 条记录)。 |
| sort | string | 否 | 排序顺序,格式为 `field:asc` 或 `field:desc`,例如 'receivedate:desc'。 |
| limit | integer | 否 | 返回记录的最大数量(1–1000)。省略时,API 默认返回 1 条。 |
| search | string | 否 | 对数据集字段执行 Lucene 风格查询:'field:term',使用 '+AND+' 表示 AND,使用空格表示 OR;在字段名后添加 '.exact' 并用引号括起可进行精确短语查询;范围格式为 '[low+TO+high]'(日期示例:'[20040101+TO+20081231]')。示例:patient.drug.medicinalproduct:"aspirin" |
详细介绍
usefulapi 提供的 openFDA MCP
搜索 openFDA 药品、器械、食品和不良事件数据集。托管服务,无需本地安装。
在线端点: https://openfda.usefulapi.io/mcp · 主页: https://usefulapi.io
连接
- Claude(claude.ai、桌面版):打开 Customize → Connectors,点击 + Add → Add custom connector,然后粘贴
https://openfda.usefulapi.io/mcp。 - **Claude Code:**运行
claude mcp add --transport http openfda https://openfda.usefulapi.io/mcp,然后运行/mcp登录。 - VS Code:添加到 VS Code。
- **Cursor 和其他客户端:**将 URL 添加为远程 MCP 服务:
{
"mcpServers": {
"openfda": {
"url": "https://openfda.usefulapi.io/mcp"
}
}
}
只添加 URL。请勿在客户端配置中添加 Authorization 标头或 API 密钥:服务会通过 OAuth 为你登录,登录页面会要求你提供电子邮件地址和 6 位验证码。
分步设置指南、凭据查找位置和常见问题解答:https://usefulapi.io/openfda/
此服务无需凭据——openFDA 是公开数据源。首次连接时,你需要使用电子邮件登录:我们会从 [email protected] 发送 6 位验证码。该地址仅用于发送验证码;我们会将其单向哈希后用作你的账户 ID,因此你的免费调用次数和套餐都归你所有。
工具
| 工具 | 类型 | 功能 |
|---|---|---|
openfda_search_drug_events | read | 搜索药品不良事件报告(FAERS) |
openfda_search_drug_labels | read | 搜索药品产品标签(SPL) |
openfda_search_drug_ndc | read | 搜索国家药品代码目录 |
openfda_search_drug_recalls | read | 搜索药品召回执法报告 |
openfda_search_drugsfda | read | 搜索 Drugs@FDA 获批产品 |
openfda_search_drug_shortages | read | 搜索药品短缺信息 |
openfda_search_device_events | read | 搜索器械不良事件报告(MAUDE) |
openfda_search_device_510k | read | 搜索 510(k) 上市前许可 |
openfda_search_device_recalls | read | 搜索器械召回信息 |
openfda_search_device_classification | read | 搜索器械分类 |
openfda_search_food_events | read | 搜索食品/膳食补充剂/化妆品不良事件(CAERS) |
openfda_search_food_recalls | read | 搜索食品召回执法报告 |
openfda_count | read | 对 openFDA 数据集计数/汇总 |
openfda_query | read | 查询任意 openFDA 端点(通用) |
openfda_usage_status | meta | 使用情况状态(免费套餐用量计数) |
openfda_request_feature | meta | 请求添加缺失功能 |
openfda_upgrade | meta | 升级到 Pro(无限制*) |
openfda_cancel_subscription | meta | 取消 Pro 订阅 |
read 工具为只读;write 工具会修改数据(客户端应在执行前确认);meta 工具用于报告使用情况、管理订阅或发送功能请求。
定价
| 套餐 | 价格 | 限额 |
|---|---|---|
| 免费 | $0 | 每月 50 次工具调用 |
| Pro | $9/mo 或 $90/yr(免费送 2 个月) | 无限制* |
*Pro 在此服务上的合理使用限额为每月 10,000 次工具调用。如需更多,请发送邮件至 [email protected]。
Pro 仅适用于此服务。使用 openfda_upgrade 订阅(它会返回 Stripe Checkout 链接)。可随时使用 openfda_cancel_subscription 取消:Pro 将持续到已付费周期结束,当前周期不予退款;在此之前运行 openfda_upgrade 可撤销取消操作。也可以发送邮件至 [email protected]。
许可证
MIT
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。