FastMCP Patient Information Server
FastMCP 患者情報サーバー
get_patientツールを通じて患者情報の取得機能を提供するFastMCPサーバーです。
機能
get_patientツール: 以下を含む包括的な患者情報を取得します:
個人情報(氏名、生年月日、連絡先情報)
保険プラン(医療、歯科、眼科)
従業員情報
Related MCP server: Epic Patient API MCP Server
前提条件
UbuntuサーバーにDockerおよびDocker Composeがインストールされていること
Watson Orchestrateからサーバーへのネットワークアクセスが可能であること
インストールとデプロイ
1. Ubuntuサーバーへのファイル転送
fastmcp-serverディレクトリ全体をUbuntuサーバーにコピーします:
scp -r fastmcp-server/ user@your-ubuntu-server:/path/to/deployment/2. Docker Composeによるビルドと実行
UbuntuサーバーにSSH接続し、ディレクトリに移動します:
ssh user@your-ubuntu-server
cd /path/to/deployment/fastmcp-serverコンテナをビルドして起動します:
docker-compose up -d --build3. サーバーの稼働確認
コンテナの状態を確認します:
docker-compose psログを表示します:
docker-compose logs -f4. ローカルでのサーバーテスト
curl http://localhost:8002/healthWatson Orchestrateへの接続
ステップ 1: サーバーURLの取得
MCPサーバーには以下からアクセス可能です:
http://your-ubuntu-server-ip:8002またはドメインをお持ちの場合:
https://your-domain.com:8002重要: 本番環境では、適切なSSL証明書を使用してHTTPSを使用してください。
ステップ 2: Watson Orchestrateのツールページへのアクセス
Watson Orchestrateインスタンスにログインします
スキルまたはツールセクションに移動します
ツールの追加またはツールの接続をクリックします
ステップ 3: MCP接続の設定
接続タイプ: 「MCP Server」または「Custom API」を選択します
サーバーURL: サーバーのエンドポイントを入力します
http://your-ubuntu-server-ip:8002認証(必要な場合):
タイプ: なし(基本設定の場合)
本番環境では、OAuth2またはAPIキー認証を実装してください
接続名:
Patient Information MCP Server説明:
Provides patient information retrieval capabilities
ステップ 4: ツールの検出
ツールの検出または接続のテストをクリックします
Watson OrchestrateがMCPサーバーに対して利用可能なツールを照会します
get_patientツールが表示されるはずです
ステップ 5: get_patientツールの設定
ツールは自動的に以下のように設定されます:
ツール名:
get_patient説明: 連絡先IDで患者情報を取得します
パラメータ:
contact_id(オプションの文字列): 一意の連絡先識別子
ステップ 6: ツールのテスト
Watson Orchestrateで
get_patientツールを選択しますサンプルの連絡先ID
7c50f84d-62af-f011-bbd3-000d3a9b6dcbでテストしますまたは、パラメータなしでテストしてデフォルトの患者データを取得します
レスポンスが期待される形式と一致することを確認します
ステップ 7: ツールを使用したスキルの作成
Watson Orchestrateのスキルビルダーに移動します
get_patientツールを使用する新しいスキルを作成しますスキルのフローとパラメータを設定します
スキルをテストして公開します
Watson Orchestrate接続YAMLの例
Watson OrchestrateがYAML設定をサポートしている場合は、接続ファイルを作成します:
apiVersion: v1
kind: Connection
metadata:
name: patient-mcp-server
spec:
type: mcp
endpoint: http://your-ubuntu-server-ip:8002
authentication:
type: none
tools:
- name: get_patient
enabled: true本番環境におけるセキュリティ上の考慮事項
1. HTTPSの有効化
SSLを使用したリバースプロキシ(nginx)を使用します:
# Install nginx
sudo apt-get update
sudo apt-get install nginx certbot python3-certbot-nginx
# Configure SSL
sudo certbot --nginx -d your-domain.com2. 認証の追加
server.pyを更新してAPIキー認証を含めます:
from fastapi import Header, HTTPException
@mcp.tool()
def get_patient(contact_id: str = None, api_key: str = Header(None)) -> Dict[str, Any]:
if api_key != "your-secret-api-key":
raise HTTPException(status_code=401, detail="Invalid API key")
# ... rest of the function3. ネットワークセキュリティ
ファイアウォールルールを使用してアクセスを制限します
VPNまたはプライベートネットワーク接続を検討してください
レート制限を実装します
4. 本番環境用のdocker-compose.ymlの更新
version: '3.8'
services:
fastmcp-server:
build: .
container_name: patient-mcp-server
ports:
- "127.0.0.1:8002:8002" # Only bind to localhost
environment:
- PYTHONUNBUFFERED=1
- API_KEY=${API_KEY} # Use environment variable
restart: unless-stopped
networks:
- mcp-network
networks:
mcp-network:
driver: bridgeトラブルシューティング
サーバーが起動しない
# Check logs
docker-compose logs
# Rebuild container
docker-compose down
docker-compose up -d --buildWatson Orchestrateからの接続拒否
ファイアウォールがポート8002を許可していることを確認します
サーバーが127.0.0.1ではなく0.0.0.0でリッスンしていることを確認します
別のマシンからcurlでテストします
Watson Orchestrateにツールが表示されない
MCPサーバーがツール検出リクエストに応答していることを確認します
Watson Orchestrateのログで接続エラーを確認します
サーバーURLが正しく、アクセス可能であることを確認します
管理コマンド
# Start the server
docker-compose up -d
# Stop the server
docker-compose down
# View logs
docker-compose logs -f
# Restart the server
docker-compose restart
# Update the server
git pull # or copy new files
docker-compose up -d --buildサーバーの拡張
ツールを追加するには、server.pyを編集します:
@mcp.tool()
def get_patient_appointments(patient_id: str) -> Dict[str, Any]:
"""Get patient appointments"""
# Implementation here
pass
@mcp.tool()
def get_patient_claims(patient_id: str) -> Dict[str, Any]:
"""Get patient insurance claims"""
# Implementation here
passその後、再ビルドして再起動します:
docker-compose up -d --buildサポート
問題や質問がある場合:
ログを確認します:
docker-compose logsFastMCPのドキュメントを確認します: https://github.com/jlowin/fastmcp
Watson OrchestrateのMCP統合ドキュメントを確認します
ライセンス
[ここにライセンスを記載]
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Read and write patients, facilities, medical documents, and consolidated FHIR records in Metriport.
HealthGuard - 12-tool health/medical AI safety MCP: PII redaction, HIPAA, GDPR Art.9.
AI-powered medical document management for cancer patients. Google Drive, Gmail, Calendar via MCP.
Healthcare provider & compliance intel: NPPES lookup, OIG/SAM exclusion screening, FDA enforcement.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to securely access Epic Healthcare Systems patient data through FHIR R4 API integration. Provides tools for searching patients, retrieving clinical summaries, vital signs, medications, and generating healthcare reports with HIPAA-compliant OAuth 2.0 authentication.
- FlicenseNot gradedqualityDmaintenanceEnables access to mock Epic patient data through 15 MCP tools with two-tier access (list summaries, then fetch details) and LLM-powered natural language search across allergies, medications, conditions, clinical notes, labs, vitals, and procedures.
- AlicenseNot gradedqualityDmaintenanceIntegrates with EMRs like Cerner and Epic via FHIR to retrieve patient data, and provides medical research tools (PubMed, clinical trials, FDA) for clinical analysis.1MIT
- FlicenseAqualityDmaintenanceEnables querying a synthetic patient dataset with tools to look up patients by ID, age, disease, name, and get statistics, connecting Claude Desktop to local data.6
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sudhakaren/healthnav'
If you have feedback or need assistance with the MCP directory API, please join our Discord server