Skip to main content
Glama

Agent Care: CernerやEpicなどのEMR向けMCPサーバー

Claude Desktop および Goose Desktop を使用して Cerner や Epic などの EMR 上の FHIR データおよび医療リソースと対話するための医療ツールとプロンプトを提供する Model Context Protocol (MCP) サーバー。

鍛冶屋のバッジ

デモ

デモ

Related MCP server: Azure AHDS FHIR MCP Server

特徴

  • SMART on FHIR APIを使用したEMR統合

  • OAuth2を使用してEMRで認証する

  • アントロピック・クロード・デスクトップ統合

  • 医学研究の統合(PubMed、臨床試験、FDA)

  • レスポンスのキャッシュ

  • エラー処理

  • Null安全なデータフォーマット

  • 包括的な臨床分析

スクリーンショット

ツール

FHIRツール

  • find_patient - 名前、生年月日、その他の識別子で患者を検索します

  • get_patient_observations - 患者の観察/バイタルサインを取得する

  • get_patient_conditions - 患者の現在の状態を取得する

  • get_patient_medications - 患者の現在の薬を取得する

  • get_patient_encounters - 患者の臨床診療情報を取得する

  • get_patient_allergies - 患者のアレルギーや不耐性を取得する

  • get_patient_procedures - 患者の処置を取得する

  • get_patient_careteam - 患者のケアチームのメンバーを取得する

  • get_patient_careplans - 患者のアクティブなケアプランを取得する

  • get_vital_signs - 患者のバイタルサインを取得する

  • get_lab_results - 患者の検査結果を取得する

  • get_medications_history - 患者の投薬履歴を取得する

  • clinical_query - カスタム FHIR クエリを実行します

医療研究ツール

  • search-pubmed - 病状に関連するPubMed記事を検索

  • search-trials - 関連する臨床試験を検索する

  • drug-interactions - 薬物相互作用をチェックする

使用法

各ツールには特定のパラメータが必要です。

必須パラメータ

  • ほとんどのツールではpatientIdが必要です

  • 一部のツールには追加のパラメータがあります。

    • lab_trend_analysis : labTypeが必要です

    • search-pubmed : queryとオプションのmaxResultsが必要です

    • search-trials : conditionが必要で、 locationオプション

    • drug-interactions : drugs配列が必要です

開発構成

ローカル テストの場合、ルート ディレクトリに.envファイルを作成するか、claude デスクトップの起動構成でこれらの環境変数を使用します。

セルナー

OAUTH_CLIENT_ID="XXXXX", OAUTH_CLIENT_SECRET="XXXXXXX", OAUTH_TOKEN_HOST="https://authorization.cerner.com", OAUTH_AUTHORIZE_PATH="/tenants/ec2458f2-1e24-41c8-b71b-0e701af7583d/protocols/oauth2/profiles/smart-v1/personas/provider/authorize", OAUTH_AUTHORIZATION_METHOD='header', OAUTH_TOKEN_PATH="/tenants/ec2458f2-1e24-41c8-b71b-0e701af7583d/hosts/api.cernermillennium.com/protocols/oauth2/profiles/smart-v1/token", OAUTH_AUDIENCE="https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d", OAUTH_CALLBACK_URL="http://localhost:3456/oauth/callback", OAUTH_SCOPES="user/Patient.read user/Condition.read user/Observation.read user/MedicationRequest.read user/AllergyIntolerance.read user/Procedure.read user/CarePlan.read user/CareTeam.read user/Encounter.read user/Immunization.read", OAUTH_CALLBACK_PORT="3456" FHIR_BASE_URL:any = "https://fhir-ehr.cerner.com/r4/ec2458f2-1e24-41c8-b71b-0e701af7583d" PUBMED_API_KEY=your_pubmed_api_key CLINICAL_TRIALS_API_KEY=your_trials_api_key FDA_API_KEY=your_fda_api_key

すごい

OAUTH_CLIENT_ID="XXXXXXX", OAUTH_CLIENT_SECRET="", OAUTH_TOKEN_HOST="https://fhir.epic.com", OAUTH_AUTHORIZE_PATH="/interconnect-fhir-oauth/oauth2/authorize", OAUTH_AUTHORIZATION_METHOD='body', OAUTH_TOKEN_PATH="/interconnect-fhir-oauth/oauth2/token", OAUTH_AUDIENCE="https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4", OAUTH_CALLBACK_URL="http://localhost:3456/oauth/callback", OAUTH_SCOPES="user/Patient.read user/Observation.read user/MedicationRequest.read user/Condition.read user/AllergyIntolerance.read user/Procedure.read user/CarePlan.read user/CareTeam.read user/Encounter.read user/Immunization.read", OAUTH_CALLBACK_PORT=3456 FHIR_BASE_URL:any = "https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4" //EPIC PUBMED_API_KEY=your_pubmed_api_key CLINICAL_TRIALS_API_KEY=your_trials_api_key FDA_API_KEY=your_fda_api_key

MCP サーバーをローカルで起動する

git clone {agentcare-mcp-github path} cd agentcare-mcp npm install npm run build

クロードデスクトップを使用する

for claude desktop: macOS: ~/Library/Application Support/Claude/claude_desktop_config.json (use the env variables as shown above) { "mcpServers": { "filesystem": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-filesystem", "/Users/your-username/Desktop" ] }, "agent-care": { "command": "node", "args": [ "/Users/your-username/{agentcare-download-path}/agent-care-mcp/build/index.js" ], "env": { "OAUTH_CLIENT_ID": XXXXXX, "OAUTH_CLIENT_SECRET":XXXXXXX, "OAUTH_TOKEN_HOST":, "OAUTH_TOKEN_PATH":, "OAUTH_AUTHORIZE_PATH", "OAUTH_AUTHORIZATION_METHOD": , "OAUTH_AUDIENCE":, "OAUTH_CALLBACK_URL":, "OAUTH_SCOPES":, "OAUTH_CALLBACK_PORT":, "FHIR_BASE_URL":, "PUBMED_API_KEY":, "CLINICAL_TRIALS_API_KEY":, "FDA_API_KEY": } } } }

MCP Inspectoprを使用する

(MCP サーバーはインスペクターを使用しています。.env ファイルを正しい値で更新してください。)

npm install -g @modelcontextprotocol/inspector mcp-inspector build/index.js http://localhost:5173

ユーザーログインのテスト

(サンドボックス/開発でよく使用されます)

  • 検索: ポータル | ポータル

  • エピック: FHIRTWO | EpicFhir11!

トラブルシューティング:

Claudeデスクトップが実行中の場合、認証にポート3456を使用します。以下のコマンドを使用して、そのプロセスを終了してください。

kill -9 $(lsof -t -i:3456)

グースを使う

Gooseは、Block(Stripe)が開発したオープンソースのAIエージェントフレームワークで、MCPサーバーで動作します。Goose Desktopは、MCPサーバーで動作するClaude Desktopに似ています。ただし、GooseはAnthropicモデル以外のモデルを使用するように設定することもできます。詳細はこちら: https://block.xyz/inside/block-open-source-introduces-codename-goose

Goose Desktop が Agent Care とどのように連携するかについては、以下を参照してください。(Goose 拡張機能は、コマンド: /Users/your-username/{agentcare-download-path}/agent-care-mcp/build/index.js で構成されます)

-
security - not tested
A
license - permissive license
-
quality - not tested

Latest Blog Posts

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/Kartha-AI/agentcare-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server