Mcp Wegene Assistant

Mcp Wegene Assistant

🚀 我们基因助手 MCP 服务器

我们基因助手 MCP 服务器利用大语言模型(LLM)对用户的 WeGene 基因检测报告进行分析,为用户提供更深入的基因数据洞察。

smithery badge

🚀 快速开始

📦 安装指南

通过 Smithery 安装

要通过 Smithery 自动安装 WeGene 助手用于 Claude 桌面版本,可使用以下命令:

npx -y @smithery/cli install @xraywu/mcp-wegene-assistant --client claude

本地安装

准备 MCP 服务器
  1. 克隆此项目。
  2. 在项目的根文件夹下运行 uv sync --dev --all-extras
配置 Claude 桌面版本
  • MacOS:配置文件路径为 ~/Library/Application\ 支持/Claude/claude_desktop_config.json
  • Windows:配置文件路径为 %APPDATA%/Claude/claude_desktop_config.json

在配置文件中添加以下内容:

{
"mcpServers": {
"wegene-assistant": {
"command": "uv",
"args": [
"--directory",
"/path/to/wegene-assistant",
"run",
"wegene-assistant"
]
}
}
}

✨ 主要特性

🔍 资源

一旦用户完成授权,其账户下的所有报告都将被暴露为资源:

  • 使用自定义的 wegene:// URI 方案访问每个个体报告。
  • 每个报告资源包含名称、描述和 application/json 格式的内容类型。

🛠️ 工具

该服务器实现了以下工具:

  • wegene-oauth:在浏览器中启动 WeGene 开放 API OAuth 流程。用户需在 120 秒内完成授权,以便 LLM 进一步访问报告。
  • wegene-get-profiles:读取用户 WeGene 账户下的个人资料列表,返回个人资料的名称和 ID,供 LLM 使用。
  • wegene-get-report-info:返回报告元信息,使 LLM 知道可用的报告,返回报告名称、描述、端点等信息列表。
  • wegene-get-report:读取某个个人资料下的单个报告结果,返回 WeGene 开放 API 平台指定的报告 JSON 结果。
    • 参数
      • report_endpoint:要从哪个端点获取的报告。
      • report_id:要获取的报告 ID。
      • profile_id:要从哪个个人资料获取报告。

🔧 配置

  • 您需要 WeGene 开放 API 的密钥/秘密来使用此项目。
  • 复制 .env.example 并将其命名为 .env,然后在文件中更新密钥和秘密。
  • 0 关注
  • 0 收藏,8 浏览
  • system 提出于 2025-09-21 01:24

相似服务问题