AACT临床试验MCP服务器
概述
模型上下文协议 (MCP) 服务器实现,使用 FastMCP 框架提供对 AACT(ClinicalTrials.gov 汇总分析)数据库的访问。该服务器允许 AI 助手直接从 ClinicalTrials.gov 数据库查询临床试验数据。
Related MCP server: BioMCP
特征
工具
list_tables获取 AACT 数据库中所有可用表的概览
有助于在分析之前了解数据库结构
describe_table检查特定 AACT 表的详细结构
显示列名和数据类型
例如:
{"table_name": "studies"}
read_query在 AACT 临床试验数据库上执行 SELECT 查询
通过验证安全地处理 SQL 查询
例如:
{"query": "SELECT nct_id, brief_title FROM ctgov.studies LIMIT 5"}
append_insight记录分析过程中发现的关键发现和见解
帮助构建分析性叙述
示例:
{"finding": "Phase 3 oncology trials have increased by 15% over the last 5 years"}
资源
schema://database将数据库架构作为 JSON 资源返回
memo://insights返回会话期间收集的见解的格式化备忘录
配置
必需的环境变量
DB_USER:您的 AACT 数据库用户名DB_PASSWORD:您的 AACT 数据库密码
与语义内核一起使用
from semantic_kernel import Kernel
from semantic_kernel.connectors.mcp import MCPStdioPlugin
# Create an AACT Clinical Trials MCP plugin
aact_mcp = MCPStdioPlugin(
name="aact",
description="Clinical Trials Database Plugin",
command="uvx",
args=["mcp-server-aact"],
env={
"DB_USER": "your_aact_username",
"DB_PASSWORD": "your_aact_password"
}
)
# Add to Semantic Kernel
kernel = Kernel()
kernel.add_plugin(aact_mcp)示例提示
以下是一些与该插件一起使用的示例提示:
“乳腺癌临床试验中最常见的干预类型有哪些?”
“2023年完成了多少项3期临床试验?”
“向我展示不同国家糖尿病试验的入组统计数据”
“过去 5 年内有多少比例的肿瘤学试验报告了结果?”
实现细节
该服务器使用以下方式构建:
FastMCP 用于模型上下文协议实现
用于 PostgreSQL 数据库连接的 Python psycopg2
AACT 数据库作为 ClinicalTrials.gov 信息的数据源
执照
MIT 许可证
贡献
欢迎投稿!请:
在 GitHub 上打开一个问题
开始讨论
致谢
该项目的灵感来自以下代码,并最初基于以下代码:
感谢这些出色的项目为我们指明了方向!🙌
This server cannot be installed
Resources
Looking for Admin?
Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.
Appeared in Searches
- A server for finding information on writing or researching a thesis
- Research on Patient-Disease-Gene-Drug Relationships and Pharmacogenomics Using Digital Imaging Data
- A database of diseases with associated genetic variants and sequencing information
- Resources or information related to academic topics
- A server for finding academic research and resources