EA

erikhoward/azure-fhir-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

18 stars 9 forks 品質 65 トレンド 22MIT

Azure AHDS FHIR MCP サーバー

概要

Azure Health Data Services FHIR(Fast Healthcare Interoperability Resources)のモデルコンテキストプロトコル(MCP)サーバーの実装。 このサービスは、Azure FHIRサーバーとやりとりするための標準化されたインターフェイスを提供し、MCPツールを介して医療データ操作を可能にします。 mcp.json の FastMCP ガイダンスを参照してください。[https://gofastmcp.com/integrations/mcp-json-configuration] - サービス・ツー・サービスの認証のために使用される - use FAST MCP OAUTH PROXY=false - stdio トランスポートを使用するHTTP TRANSPORT=falseをキープ - Azure ADクライアント認証フローを使用する OAuth の on-behalf-of フローでは、MCP サーバーを表す機密 Azure AD アプリケーションが必要です。 1. Azureポータルで、. FHIR-MCP-Server などの記述名を 1 つのテナントに設定し、リダイレクト URI の unset を今残します。 2。 アプリを作成した後、生成されたアプリケーション(クライアント)IDとディレクトリ(テナント)IDを後で使用できるようにキャプチャします。 3.

概要(AI 翻訳)

Azure Health Data Services FHIR(Fast Healthcare Interoperability Resources)のモデルコンテキストプロトコル(MCP)サーバーの実装。 このサービスは、Azure FHIRサーバーとやりとりするための標準化されたインターフェイスを提供し、MCPツールを介して医療データ操作を可能にします。

セットアップ

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # インストール # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # インストール # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

Python 3.13以上、[uv が必要です。

uvを最初にインストールします。

設定 ♀️

[mcp.jsonのFastMCPガイダンスを参照してください。

クライアント認証フロー (デフォルト):

  • サービスtoサービス認証のために使用される
  • [USE_FAST_MCP_OAUTH_PROXY=falseを残す
  • stdioの輸送を使用するために[[[[T4]を保って下さい
  • Azure ADクライアント認証フローを使用する

####OAuth On-Behalf-Of フロー:

Azure App 登録を作成する

OAuth の on-behalf-of フローでは、MCP サーバーを表す機密 Azure AD アプリケーションが必要です。

1。 Azureポータルで、Microsoft Entra ID Plusアプリ登録 新規登録に移動します。 [FHIR-MCP-Server]のような記述名で、Supported account typeをSingle tenantに設定し、リダイレクトURI unsetを今残します。 2.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Azure AHDS FHIR MCP Server 🚀

A Model Context Protocol (MCP) server implementation for Azure Health Data Services FHIR (Fast Healthcare Interoperability Resources). This service provides a standardized interface for interacting with Azure FHIR servers, enabling healthcare data operations through MCP tools.

Setup 🛠️

Installation 📦

Requires Python 3.13 or higher and uv.

Install uv first.

Configuration ⚙️

See the FastMCP guidance on mcp.json here: https://gofastmcp.com/integrations/mcp-json-configuration

Client Credentials Flow (default):

  • Used for service-to-service authentication
  • Leave USE_FAST_MCP_OAUTH_PROXY=false
  • Keep HTTP_TRANSPORT=false to use stdio transport
  • Uses Azure AD client credentials flow
{
    "mcpServers": {
        "fhir": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "azure-fhir-mcp-server"
            ],
            "env": {
                "fhirUrl": "https://your-fhir-server.azurehealthcareapis.com/fhir",
                "clientId": "your-client-id",
                "clientSecret": "your-client-secret",
                "tenantId": "your-tenant-id"
            }
        }
    }
}

OAuth On-Behalf-Of Flow:

Create the Azure App Registration

The OAuth on-behalf-of flow requires a confidential Azure AD application that represents the MCP server.

  1. In the Azure portal, go to Microsoft Entra ID ➜ App registrations ➜ New registration. Give it a descriptive name such as FHIR-MCP-Server, set Supported account types to Single tenant, and leave the redirect URI unset for now.
  2. After the app is created, capture the generated Application (client) ID and Directory (tenant) ID for later use.
  3. Under Expose an API, select Set for the Application ID URI and accept the suggested value api://{appId}. Add a scope named user_impersonation with admin consent display/description also set to user_impersonation.
  4. Under Certificates & secrets, create a New client secret (for example FHIR-MCP-Secret-New). Copy the secret value immediately; it is required for the MCP server clientSecret setting.
  5. Under Authentication, add the following Web redirect URIs to support the FastMCP OAuth proxy:
    • http://localhost:9002/auth/callback Ensure Default client type remains No so the app stays confidential.
GitHub で README 全文を見る

インストール

uvx azure-fhir-mcp-server
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "fhir": { "type": "stdio", "command": "uvx", "args": [ "azure-fhir-mcp-server" ], "env": { "fhirUrl": "https://your-fhir-server.azurehealthcareapis.com/fhir", "clientId": "your-client-id", "clientSecret": "your-client-secret", "tenantId": "your-tenant-id" } } } }