使用说明
23andMe原始数据MCP服务器
用于通过RSID查询23andMe原始基因型文件的最小概念证明模型上下文协议(MCP)服务器。
需求
- Node.js v18+
- 23andMe原始数据文件(TSV格式,带标题注释)
安装
git clone https://github.com/yourusername/23andme-mcp-poc.git
cd 23andme-mcp
npm install
用法
npm start sample-data.txt
或
node src/index.js sample-data.txt
这将解析 sample-data.txt 并通过stdin/stdout等待MCP请求。
MCP客户端设置
的示例 mcp.json:
{
"mcpServers": {
"23andMe Genotype Lookup": {
"command": "node",
"args": ["~/src/index.js", "~/sample-data.txt"]
}
}
}
工具定义
get_genotype_by_rsid
- 输入:
{ "rsid": "rs3131972" } - 输出:
AG
缺少数据返回: --
许可证
麻省理工学院
