Suncture Healthcare MCP 服务器
模型上下文协议 (MCP) 服务器为 AI 助手提供医疗保健相关工具,使其能够向用户提供实用的医疗保健信息。
特征
该 MCP 服务器包括以下医疗保健工具:
健康建议工具( - 根据年龄、性别和怀孕状况获取个性化的健康筛查和预防护理建议。
药物信息工具( - 查找有关药物的综合信息,包括用途、剂量、副作用和相互作用。
疾病信息工具 ( - 查找有关疾病和医疗状况的信息,包括症状、治疗方法和预防策略。
BMI 计算器工具 ( - 计算身体质量指数 (BMI) 并根据结果获得量身定制的健康建议。
症状检查工具( ——分析报告的症状并获得初步建议、潜在状况以及何时就医的指导。
Related MCP server: pure.md MCP server
安装
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 服务器可与支持模型上下文协议 (MCP) 的 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-mcpMCP.so 主机
该服务器设计为可在MCP.so上托管,从而可以轻松与支持的 AI 模型集成。
免责声明
本 MCP 服务器提供的医疗保健信息仅供参考,不能替代专业的医疗建议、诊断或治疗。如有任何医疗疑问,请务必咨询您的医生或其他合格的医疗服务提供者。
执照
MIT 许可证
This server cannot be installed
Resources
Looking for Admin?
Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.