非官方开放基因MCP服务器
一个模型上下文协议(MCP)服务器,提供对开放基因API的访问,这是一个遗传和想象相关数据的综合数据库。
由开发 增强自然
概述
Open Genes MCP服务器通过标准化的MCP工具公开Open Genes API功能,允许您从启用MCP的环境中更直接地查询遗传数据、衰老机制、疾病等。
特性
基因搜索与检索
- 搜索基因 -搜索具有多个过滤参数的基因
- get_gene_by_id -通过ID获取特定基因
- get_gene_by_symbol -通过符号获取基因(例如“TP53”)
- get_gene_by_ncbi_id -通过NCBI ID获取基因
- get_gene_建议 -获取基因名称建议
- get_gene_symbols -获取所有可用的基因符号
- get_latest_genes -获取最近添加的基因
- get_genes_by_functional_cluster -通过功能簇ID获取基因
- 获取_选择_标准 -通过选择标准ID获取基因
- get_genes_by-go_tem -通过GO(基因本体论)术语获取基因
- get_genes_by_expression_change -通过表达变化获取基因
- get_gene_taxon -获取基因分类信息
- get_genes_increase_life -获得延长寿命的基因
分类工具
- 生物模型 -获取模式生物列表
- 乙二醇 -获取门类列表
蛋白质工具
- get_protein_classes -获取蛋白质类别信息
疾病工具
- get_diseases -获取疾病列表
- get_disseae_categories -获取疾病类别列表
研究工具
- get_calorie_实验 -搜索卡路里限制实验
- 获取机制 -获取衰老机制
安装
服务器已在MCP设置中自动配置。不需要额外的设置。
使用示例
搜索基因
Use the search_genes tool with filters:
- byGeneSymbol: "TP53"
- byDiseases: "cancer"
- byAgingMechanism: "cellular senescence"获取基因信息
Use get_gene_by_symbol with:
- symbol: "SIRT1"
- lang: "en"获取衰老机制
Use get_aging_mechanisms with:
- lang: "en"语言支持
所有工具都支持英语(en)和俄语(ru)语言通过 lang 参数。
分页
许多工具通过以下方式支持分页:
page-页码(默认值:1)pageSize-每页项目数(默认值:20)
api参考
服务器连接到开放基因APIhttps://open-genes.com/api
有关开放基因项目的更多信息,请访问:https://open-genes.com
发展
建筑
npm run build项目结构
open-genes-server/
├── src/
│ ├── index.ts # Main server implementation
│ ├── tools/ # Tool implementations
│ │ ├── genes.ts # Gene-related tools
│ │ ├── taxonomy.ts # Taxonomy tools
│ │ ├── proteins.ts # Protein tools
│ │ ├── diseases.ts # Disease tools
│ │ └── research.ts # Research tools
│ ├── types/ # TypeScript type definitions
│ │ └── api.ts # API response types
│ └── utils/ # Utility functions
│ └── api-client.ts # Axios instance configuration
├── package.json
├── tsconfig.json
└── README.md错误处理
该服务器包括全面的错误处理功能,用于:
- 网络故障
- 无效参数
- API错误
- 缺少必填字段
所有错误都会返回描述性消息,以帮助诊断问题。
