wegene-assistant MCP server

wegene-assistant MCP server

site icon
2025.02.06 3
Python基因数据分析WeGene 集成其它
mcp-wegene-assistant 是一个用于 WeGene 助手的 MCP 服务器,利用大型语言模型(LLM)分析用户的 WeGene 基因检测报告。它通过 WeGene Open API 授权用户访问其账户下的报告,并提供了一系列工具来获取和处理报告数据。
View on GitHub

Overview

基本能力

产品定位

mcp-wegene-assistant 是一个专门用于处理和分析 WeGene 基因检测报告的 MCP 服务器,旨在通过 LLM 技术帮助用户理解和利用其基因数据。

核心功能

  1. 资源管理:用户授权后,其账户下的所有报告将作为资源暴露,支持通过自定义 wegene:// URI 方案访问单个报告。
  2. 工具集
  3. wegene-oauth:启动 WeGene Open API 的 oAuth 流程,用户需在 120 秒内完成授权。
  4. wegene-get-profiles:获取用户 WeGene 账户下的个人资料列表。
  5. wegene-get-report-info:返回报告的元信息,包括名称、描述、端点等。
  6. wegene-get-report:获取指定报告的详细结果(JSON 格式)。

适用场景

  • 用户希望通过 LLM 分析其基因检测报告。
  • 开发者需要集成 WeGene 基因数据到其应用中。
  • 研究人员需要批量处理和分析基因数据。

使用教程

使用依赖

  1. 需要 WeGene Open API 的 key 和 secret。
  2. 复制 .env.example.env 并填写 key 和 secret。

安装教程

通过 Smithery 安装

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

本地安装

  1. 克隆项目。
  2. 在项目根目录下运行 uv sync --dev --all-extras

调试方式

  1. 配置 Claude Desktop 的配置文件(MacOS 或 Windows 路径见上文)。
  2. 添加以下内容到配置文件中:
{
  "mcpServers": {
    "wegene-assistant": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/wegene-assistant",
        "run",
        "wegene-assistant"
      ]
    }
  }
}

许可证

None