mcpField
S
Suncture Healthcare

Suncture Healthcare

本地服务
github.com/wilforlan健康医疗080 周前更新

关于 Suncture Healthcare

Suncture Healthcare 是面向 AI 助手的 MCP 服务,通过五种医疗工具提供健康信息和初步指导。

主要功能

  1. 01个性化筛查建议
  2. 02药物信息及相互作用
  3. 03疾病与病症信息
  4. 04BMI 计算及建议
  5. 05症状分析与就医指引

适用场景

  1. 01按年龄和妊娠状态查看预防筛查建议
  2. 02查询药物用法、剂量、副作用及相互作用
  3. 03了解病症的症状和预防方法
  4. 04评估 BMI 或获取初步症状指导

MCP 相关

向 MCP 客户端提供五种医疗工具,涵盖健康建议、药物和疾病信息、BMI 计算及症状检查。

配置

本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。

mcp.json · 通用配置
{
"mcpServers": {
"suncture": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"build"
]
}
}
}
启动命令docker run -i --rm build

本地服务需要在你的电脑上安装运行环境(如 Node.js 18+)。各客户端的配置文件位置不同,请参考客户端文档。

安装包
ocibuild

工具

还没有获取到工具列表

本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。

详细介绍

Suncture Healthcare MCP Server

一个 Model Context Protocol(MCP)服务,为 AI 助手提供医疗保健相关工具,使其能够向用户提供实用的医疗保健信息。

npm version License: MIT

功能

此 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 的 AI 模型搭配使用

此 MCP 服务可与支持 Model Context Protocol 的 AI 模型搭配使用。此服务提供医疗保健相关工具,模型可调用这些工具向用户提供信息。

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,以便轻松与兼容的 AI 模型集成。

免责声明

此 MCP 服务提供的医疗保健信息仅用于教育目的,不能替代专业的医疗建议、诊断或治疗。对于你可能遇到的任何健康状况问题,请务必咨询医生或其他合格的医疗服务提供者。

许可证

MIT 许可证

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。