这是一个用于访问 Reactome 通路和系统生物学数据的模型上下文协议(MCP)服务器。它能帮助用户高效地获取和分析生物通路相关信息。
由 增强自然(Augmented Nature) 开发,该机构致力于推动人工智能在科学发现领域的应用。
所有 8 个工具均可使用实时的 Reactome API 数据:
# 安装并构建
npm install
npm run build
# 运行服务器
node build/index.js
{
"mcpServers": {
"reactome-server": {
"command": "node",
"args": ["/path/to/reactome-server/build/index.js"]
}
}
}
node /path/to/reactome-server/build/index.js
# 1. 搜索 DNA 修复通路
{"name": "search_pathways", "arguments": {"query": "DNA repair", "size": 10}}
# 2. 获取详细的通路信息
{"name": "get_pathway_details", "arguments": {"id": "R-HSA-5696394"}}
# 3. 查找包含 BRCA1 的所有通路
{"name": "find_pathways_by_gene", "arguments": {"gene": "BRCA1"}}
# 4. 获取通路参与者
{"name": "get_pathway_participants", "arguments": {"id": "R-HSA-5696394"}}
# 1. 搜索与癌症相关的通路
{"name": "find_pathways_by_disease", "arguments": {"disease": "cancer", "size": 15}}
# 2. 获取致癌信号通路的层级结构
{"name": "get_pathway_hierarchy", "arguments": {"id": "R-HSA-5637815"}}
# 3. 分析生化反应
{"name": "get_pathway_reactions", "arguments": {"id": "R-HSA-5637815"}}
# 1. 查找药物靶点的通路
{"name": "find_pathways_by_gene", "arguments": {"gene": "EGFR"}}
# 2. 获取通路中的蛋白质相互作用
{"name": "get_protein_interactions", "arguments": {"pathwayId": "R-HSA-177929"}}
# 3. 分析通路参与者
{"name": "get_pathway_participants", "arguments": {"id": "R-HSA-177929"}}
本服务器提供了多个工具,以下是各工具的使用示例:
search_pathways按名称、描述或关键词搜索生物通路
{
"name": "search_pathways",
"arguments": {
"query": "cell cycle", // 通路名称、过程或关键词
"type": "pathway", // 可选:pathway, reaction, protein, complex, disease
"size": 20 // 可选:1 - 100 个结果(默认:20)
}
}
示例结果:
get_pathway_details获取特定通路的全面信息
{
"name": "get_pathway_details",
"arguments": {
"id": "R-HSA-1640170" // Reactome 通路稳定标识符
}
}
find_pathways_by_gene查找包含特定基因或蛋白质的所有通路
{
"name": "find_pathways_by_gene",
"arguments": {
"gene": "BRCA1", // 基因符号或 UniProt ID
"species": "Homo sapiens" // 可选:物种(默认:Homo sapiens)
}
}
find_pathways_by_disease查找与疾病相关的通路和机制
{
"name": "find_pathways_by_disease",
"arguments": {
"disease": "cancer", // 疾病名称或 DOID 标识符
"size": 25 // 可选:1 - 100 个通路(默认:25)
}
}
get_pathway_hierarchy获取层级结构和父/子关系
{
"name": "get_pathway_hierarchy",
"arguments": {
"id": "R-HSA-1640170" // Reactome 通路稳定标识符
}
}
get_pathway_participants获取通路中的所有分子(蛋白质、基因、化合物)
{
"name": "get_pathway_participants",
"arguments": {
"id": "R-HSA-1640170" // Reactome 通路稳定标识符
}
}
get_pathway_reactions获取通路内的所有生化反应
{
"name": "get_pathway_reactions",
"arguments": {
"id": "R-HSA-1640170" // Reactome 通路稳定标识符
}
}
get_protein_interactions获取通路内的蛋白质 - 蛋白质相互作用
{
"name": "get_protein_interactions",
"arguments": {
"pathwayId": "R-HSA-1640170", // Reactome 通路稳定标识符
"interactionType": "all" // 可选:protein-protein, regulatory, catalysis, all
}
}
可通过标准化的 URI 访问 Reactome 数据:
reactome://pathway/{id} - 完整的通路信息reactome://reaction/{id} - 详细的反应信息reactome://protein/{id} - 蛋白质详情和关联信息reactome://disease/{id} - 与疾病相关的通路reactome://search/{query} - 搜索结果Reactome 提供以下方面的整理数据:
关键生物领域:
https://reactome.org/ContentService本项目采用 TypeScript 实现,利用 Reactome Content Service API 进行数据检索,通过 MCP 协议实现 JSON - RPC 通信。同时,具备完善的错误处理机制和验证功能,确保在生产环境中稳定运行。代码中设置了 30 秒的超时时间,并进行了适当的日志记录,方便后续的维护和问题排查。
文档中未提及许可证相关信息。
如果您在研究或出版物中使用了本项目,请按以下方式引用:
@misc{reactomemcp2025,
author = {Moudather Chelbi},
title = {Reactome MCP Server},
year = {2025},
howpublished = {https://github.com/Augmented-Nature/Reactome-MCP-Server},
note = {Accessed: 2025-06-29}
}