S

Suncture医疗AI工具包

@wilforlan/suncture-mcp
2 Stars 272 次浏览 wilforlan 更新于 2026-08-23

Suncture Healthcare MCP 提供了一套可与人工智能模型集成的专业医疗保健工具,能够增强其提供准确、可靠的医疗保健信息和指导的能力。

该服务暂未提供标准配置,请参考 README 手动接入

服务介绍

Suncture Healthcare MCP 服务器

一个提供与医疗健康相关的工具的模型上下文协议(MCP)服务器,使AI助手能够向用户提供实用的健康信息。

npm version

功能

此MCP服务器包括以下健康工具:

  1. 健康建议工具 (get-health-recommendations) - 根据年龄、性别和怀孕状况获取个性化的健康筛查和预防保健建议。
  2. 药物信息查询工具 (lookup-medication) - 查询药物的全面信息,包括使用方法、剂量、副作用以及相互作用。
  3. 疾病信息查找工具 (find-disease-info) - 查找关于疾病和医疗状况的信息,包括症状、治疗方法及预防策略。
  4. BMI计算器工具 (calculate-bmi) - 计算体质指数(BMI),并根据结果获得定制的健康建议。
  5. 症状检查器工具 (symptom-checker) - 分析报告的症状,并获得初步建议、可能的情况以及何时寻求医疗护理的指导。

安装

NPM 包安装

你可以全局安装该包:

npm install -g suncture-healthcare-mcp

或者作为项目依赖项安装:

npm install suncture-healthcare-mcp

前提条件

  • Node.js (v18 或更高版本)
  • npm (v7 或更高版本)

本地开发

# Clone the repository
git clone https://github.com/your-username/suncture-healthcare-mcp.git
cd suncture-healthcare-mcp

# Install dependencies
npm install

# Build the project
npm run build

# Start the server
npm start

使用

命令行使用

如果已全局安装,你可以直接从命令行运行服务器:

suncture-healthcare-mcp

你可以通过环境变量配置服务器:

# Run in REST mode
MCP_MODE=rest MCP_PORT=8080 suncture-healthcare-mcp

编程方式使用

你也可以在你的Node.js应用程序中以编程方式使用该包:

import { server, runServer } from 'suncture-healthcare-mcp';

// Run with default settings (stdio mode)
runServer();

// Or with custom settings
runServer({
  mode: 'rest',    // 'stdio' or 'rest'
  port: 8080,      // Only used in REST mode
  endpoint: '/api' // Only used in REST mode
});

// You can also access the server instance directly
console.log(server.name); // 'suncture-healthcare'

在支持MCP的人工智能模型中的使用

此MCP服务器可以与支持模型上下文协议的人工智能模型一起使用。服务器提供了可由模型调用的健康相关工具,以向用户提供信息。

与Claude 3.5 Sonnet示例使用

import { Anthropic } from "@anthropic-ai/sdk";
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";

// Connect to the healthcare MCP server
const healthcareMcp = new Client({ name: "healthcare-client", version: "1.0.0" });
const transport = new StdioClientTransport({
  command: "suncture-healthcare-mcp", // Use the installed package
  args: [],
});
healthcareMcp.connect(transport);

// Get available tools
const { tools } = await healthcareMcp.listTools();

// Initialize Anthropic client
const anthropic = new Anthropic({
  apiKey: process.env.ANTHROPIC_API_KEY,
});

// Example: Use the symptom checker tool
const response = await anthropic.messages.create({
  model: "claude-3-5-sonnet-20240620",
  max_tokens: 1000,
  messages: [
    {
      role: "user",
      content: "I've been having a headache and fever for the past two days. What could it be?"
    }
  ],
  tools,
});

// Process tool calls from the model
for (const content of response.content) {
  if (content.type === "tool_use") {
    const result = await healthcareMcp.callTool({
      name: content.name,
      arguments: content.input,
    });
    console.log(result.content);
  }
}

Docker 使用

你也可以使用Docker运行服务器:

# Build the Docker image
docker build -t suncture-healthcare-mcp .

# Run the container
docker run -i --rm suncture-healthcare-mcp

MCP.so 托管

本服务器设计为可以在MCP.so上托管,便于与支持的人工智能模型轻松集成。

免责声明

此MCP服务器提供的健康信息仅供教育用途,不能替代专业医疗建议、诊断或治疗。对于任何有关医疗状况的问题,请始终咨询您的医生或其他合格的健康服务提供者。

许可证

MIT许可证