サンクチュアヘルスケアMCPサーバー
AI アシスタントにヘルスケア関連のツールを提供し、ユーザーに実用的なヘルスケア情報を提供できるようにする Model Context Protocol (MCP) サーバー。

特徴
この 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
使用法
コマンドラインの使用
グローバルにインストールされている場合は、コマンド ラインから直接サーバーを実行できます。
環境変数を使用してサーバーを構成できます。
# 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モデルで使用できます。このサーバーは、モデルから呼び出してユーザーに情報を提供できるヘルスケア関連ツールを公開します。
クロード3.5ソネットの使用例
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ライセンス