
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] - service-to-service 인증에 사용됩니다 - USE FAST MCP OAUTH PROXY=false를 남겨 - HTTP TRANSPORT=false를 유지하여 stdio 수송을 사용합니다 - Azure AD 클라이언트 자격 흐름을 사용하십시오. OAuth on-behalf-of 흐름은 MCP 서버를 나타내는 기밀 Azure AD 응용 프로그램을 요구합니다. 1. Azure 포털에서 . FHIR-MCP-Server와 같은 descriptive 이름을 주시하고 단일 테넌트로 설정하고 이제 리디렉션 URI를 제거하십시오. 2. 앱이 생성된 후, 생성된 Application(client) ID 및 Directory(tenant) ID를 나중에 사용합니다. 3. 명세.
개요(AI 번역)
Azure Health Data Services FHIR (Fast Healthcare Interoperability Resources)에 대한 모델 콘텍스 프로토콜 (MCP) 서버 구현. 이 서비스는 Azure FHIR 서버와 상호 작용하는 표준화된 인터페이스를 제공하며 MCP 도구를 통해 의료 데이터 운영을 가능하게 합니다.
설정 361️
설치 ☸
Python 3.13 이상 및 uv를 요구합니다.
uv를 먼저 설치하십시오.
윤곽 ܧ️
mcp.json에 FastMCP 지도를 참조하십시오: https://gofastmcp.com/integrations/mcp-json-configuration
클라이언트 Credentials 교류 (과태):
- service-to-service 인증 사용
- [T3]
USE_FAST_MCP_OAUTH_PROXY=false]를 남겨 주세요. HTTP_TRANSPORT=false] 스트로디 수송을 사용- Azure AD 클라이언트 자격 흐름 사용
# # # # OAuth On-Behalf-Of 흐름:
Azure 앱 등록
OAuth on-behalf-of 흐름은 MCP 서버를 나타내는 기밀 Azure AD 응용 프로그램을 요구합니다.
- Azure 포털에서 Microsoft Entra ID 의 앱 등록 의 새로운 등록.
FHIR-MCP-Server], set Supported account type to Single tenant, redirect URI unset for now. - 명세.
이 페이지는 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"
}
}
}
}