gnomAD MCP Server 是一个模型上下文协议(MCP)服务器,可提供对 gnomAD(基因组聚合数据库)GraphQL API 的访问。该服务器使 AI 助手能够从 gnomAD 查询基因变异数据、基因约束和群体遗传学信息。
git clone https://github.com/yourusername/gnomad-mcp-server.git
cd gnomad-mcp-server
npm install
npm run build
将以下内容添加到你的 Claude Desktop 配置文件中:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"gnomad": {
"command": "node",
"args": ["/path/to/gnomad-mcp-server/dist/index.js"]
}
}
}
npx @modelcontextprotocol/cli gnomad-mcp-server
search在 gnomAD 中搜索基因、变异或区域。
参数:
query(必需):搜索查询(基因符号、基因 ID、变异 ID、rsID)reference_genome:参考基因组(GRCh37 或 GRCh38,默认:GRCh38)dataset:数据集 ID(gnomad_r4、gnomad_r3、gnomad_r2_1 等,默认:gnomad_r4)示例:
{
"query": "TP53",
"reference_genome": "GRCh38"
}
get_gene获取包括约束分数在内的基因详细信息。
参数:
gene_id:Ensembl 基因 ID(例如,ENSG00000141510)gene_symbol:基因符号(例如,TP53)reference_genome:参考基因组(默认:GRCh38)示例:
{
"gene_symbol": "BRCA1",
"reference_genome": "GRCh38"
}
get_variant获取特定变异的详细信息。
参数:
variant_id(必需):格式为 chr-pos-ref-alt 的变异 ID