w

wegene基因助手

利用大型语言模型分析用户的WeGene基因检测报告,通过自定义URI方案访问报告数据,并通过OAuth认证和API使用实现个人资料和报告管理。

health-and-wellnesssecurity-and-iamdatabases

318 查看 · 2026-07-07 更新

简介

利用大型语言模型分析用户的WeGene基因检测报告,通过自定义URI方案访问报告数据,并通过OAuth认证和API使用实现个人资料和报告管理。

简介

利用大型语言模型分析用户的WeGene基因检测报告,通过自定义URI方案访问报告数据,并通过OAuth认证和API使用实现个人资料和报告管理。

wegene-assistant MCP 服务器

smithery 徽章

使用大语言模型 (LLM) 分析用户 WeGene 基因检测报告的 WeGene 助手 MCP 服务器。

组件

资源

一旦用户被授权,其账户下的所有报告将作为资源公开:

  • 访问每个单独报告的自定义 wegene:// URI 方案
  • 报告资源具有名称、描述和 application/json MIME 类型

工具

服务器实现了以下工具:

  • 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: 要从中检索报告的资料 ID

配置

  • 使用此项目需要 WeGene 开放 API 密钥/密钥。
  • .env.example 复制为 .env 并更新文件中的密钥和秘密。

快速开始

安装

通过 Smithery 安装

要通过 Smithery 自动安装适用于 Claude 桌面版的 WeGene Assistant:

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

本地安装

准备 MCP 服务器
  1. 克隆此项目
  2. 在项目的根目录下运行 uv sync --dev --all-extras
Claude 桌面配置
  • 在 MacOS 上: ~/Library/Application\ Support/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" ] } } }

服务配置

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

来源