clinicaltrialsgov-mcp-server
by cyanheads·★ 71·综合分 48
MCP 服务器提供 7 个工具,用于搜索、检索和匹配 ClinicalTrials.gov API 中的临床试验。
概述
一个全面的 MCP 服务器,用于访问 ClinicalTrials.gov v2 API 功能。它提供七个不同工具,用于搜索临床试验、检索详细研究信息、获取研究结果、将患者与符合条件的试验匹配,以及探索字段值和定义。使用 TypeScript 构建,基于 @cyanheads/mcp-ts-core 框架,提供 stdio 和 Streamable HTTP 传输选项。该服务器包含适当的错误处理、速率限制、重试机制,并支持 HTTP 传输的认证。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要在 AI 工作流程中搜索临床试验、将患者与研究匹配或分析试验数据时,选择此服务器,特别是当您希望无需托管自己的实例即可立即访问时。
什么时候不要选它
如果您需要修改或创建临床试验数据(此服务器仅提供只读功能),或者需要处理具有特定合规要求的高度敏感的医疗保健数据,请不要选择它。
此 server 暴露的工具
从 README 抽取出 7 个工具clinicaltrials_search_studiesSearch studies with full-text queries, filters, pagination, sorting, and field selection.
clinicaltrials_get_study_recordFetch a single study by NCT ID. Returns the full record: protocol, eligibility, outcomes, arms, interventions, contacts, and locations.
clinicaltrials_get_study_countGet total study count for a query without fetching data. Fast statistics and breakdowns.
clinicaltrials_get_field_valuesDiscover valid values for API fields (status, phase, study type, etc.) with per-value counts.
clinicaltrials_get_field_definitionsBrowse the study data model field tree — piece names, types, nesting. Supports subtree navigation and keyword search.
clinicaltrials_get_study_resultsExtract outcomes, adverse events, participant flow, and baseline from completed studies. Optional summary mode reduces ~200KB payloads to ~5KB.
clinicaltrials_find_eligibleMatch patient demographics and conditions to eligible recruiting trials.
可对比工具
安装
安装
公共托管实例
公共实例可在 https://clinicaltrials.caseyjhand.com/mcp 获得,无需安装。通过 Streamable HTTP 将任何 MCP 客户端指向它:
{
"mcpServers": {
"clinicaltrialsgov-mcp-server": {
"type": "streamable-http",
"url": "https://clinicaltrials.caseyjhand.com/mcp"
}
}
}自托管 / 本地
添加到您的 MCP 客户端配置(例如 claude_desktop_config.json):
{
"mcpServers": {
"clinicaltrialsgov-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["clinicaltrialsgov-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio"
}
}
}
}先决条件
- [Bun v1.3.0](https://bun.sh/) 或更高版本(或 Node.js >= 24.0.0)
FAQ
- 使用此服务器是否需要 API 密钥?
- 不需要,ClinicalTrials.gov API 是公开的,不需要身份验证或 API 密钥。
- 我可以在 Claude Desktop 中使用此服务器吗?
- 是的,您可以通过 stdio 传输配置它,或使用公共 HTTP 端点。
clinicaltrialsgov-mcp-server 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。