
erikhoward/azure-fhir-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
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=falseto 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.
- 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. - After the app is created, capture the generated
Application (client) IDandDirectory (tenant) IDfor later use. - Under Expose an API, select Set for the Application ID URI and accept the suggested value
api://{appId}. Add a scope nameduser_impersonationwith admin consent display/description also set touser_impersonation. - 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 serverclientSecretsetting. - Under Authentication, add the following Web redirect URIs to support the FastMCP OAuth proxy:
http://localhost:9002/auth/callbackEnsure Default client type remains No so the app stays confidential.
インストール
uvx azure-fhir-mcp-server設定
{
"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"
}
}
}
}