Azure AHDS FHIR MCP Server

by erikhoward

Integrations

  • Allows loading configuration from .env files for development environments, supporting variables like fhirUrl, clientId, clientSecret, and tenantId.

  • Enables contributions through GitHub's pull request workflow, with specific guidance on forking and submitting changes.

  • Supports development setup with Linux-specific virtual environment creation commands.

Azure AHDS FHIR MCP-Server 🚀

Eine MCP-Serverimplementierung (Model Context Protocol) für Azure Health Data Services FHIR (Fast Healthcare Interoperability Resources). Dieser Dienst bietet eine standardisierte Schnittstelle für die Interaktion mit Azure FHIR-Servern und ermöglicht die Verarbeitung von Gesundheitsdaten über MCP-Tools.

Einrichtung 🛠️

Installation 📦

Erfordert Python 3.13 oder höher.

Installieren Sie das Paket mit pip :

pip install azure-fhir-mcp-server

MCP-Konfiguration ⚙️

Claude Desktop-Konfiguration

1 - Claude-Desktopkonfiguration bearbeiten:

Öffnen Sie claude_desktop_config.json und fügen Sie die folgende Konfiguration hinzu.

Unter MacOs befindet sich die Datei hier: ~/Library/Application Support/Claude Desktop/claude_desktop_config.json .

Unter Windows befindet sich die Datei hier: %APPDATA%\Claude Desktop\claude_desktop_config.json .

{ "mcpServers": { "fhir": { "command": "azure-fhir-mcp-server", "env": { "LOG_LEVEL": "INFO", "fhirUrl": "https://your-fhir-server.azurehealthcareapis.com/fhir", "clientId": "your-client-id", "clientSecret": "your-client-secret", "tenantId": "your-tenant-id" } } } }

Nachfolgend sehen Sie eine Tabelle mit den verfügbaren Umgebungskonfigurationsvariablen:

VariableBeschreibungStandard
LOG_LEVELProtokollierungsebeneINFO
fhirUrlAzure FHIR-Server-URLErforderlich
clientIdOAuth2-Client-IDErforderlich
clientSecretOAuth2-ClientgeheimnisErforderlich
tenantIdAzure AD-Mandanten-IDErforderlich

2 - Starten Sie Claude Desktop neu.

Verfügbare Tools 🔧

FHIR-Ressourcenbetrieb
  • search_fhir – Suche nach FHIR-Ressourcen basierend auf einem Wörterbuch mit Suchparametern
Ressourcenzugriff

Der Server bietet über das MCP-Ressourcenprotokoll Zugriff auf alle Standard-FHIR-Ressourcen:

  • fhir://Patient/ – Zugriff auf alle Patientenressourcen
  • fhir://Patient/{id} – Zugriff auf eine bestimmte Patientenressource
  • fhir://Observation/ - Zugriff auf alle Observation-Ressourcen
  • fhir://Observation/{id} – Zugriff auf eine bestimmte Beobachtungsressource
  • fhir://Medication/ - Zugriff auf alle Medikamentenressourcen
  • fhir://Medication/{id} – Zugriff auf eine bestimmte Medikamentenressource
  • Und viele mehr...

Entwicklung 💻

Lokales Entwicklungs-Setup

1 - Klonen Sie das Repository:

git clone https://github.com/erikhoward/azure-fhir-mcp-server.git cd azure-fhir-mcp-server

2 - Virtuelle Umgebung erstellen und aktivieren:

Linux/macOS:

python -m venv .venv source .venv/bin/activate

Windows:

python -m venv .venv .venv\Scripts\activate

3 – Abhängigkeiten installieren:

pip install -e ".[dev]"

4 – Umgebungsvariablen kopieren und konfigurieren:

cp .env.example .env

Bearbeiten Sie .env mit Ihren Einstellungen:

fhirUrl=https://your-fhir-server.azurehealthcareapis.com/fhir clientId=your-client-id clientSecret=your-client-secret tenantId=your-tenant-id

5 - Claude Desktop-Konfiguration

Öffnen Sie claude_desktop_config.json und fügen Sie die folgende Konfiguration hinzu.

Unter MacOs befindet sich die Datei hier: ~/Library/Application Support/Claude Desktop/claude_desktop_config.json .

Unter Windows befindet sich die Datei hier: %APPDATA%\Claude Desktop\claude_desktop_config.json .

{ "mcpServers": { "fhir": { "command": "python", "args": [ "-m", "fhir_mcp_server.server" ], "cwd": "/path/to/azure-fhir-mcp-server/repo", "env": { "LOG_LEVEL": "DEBUG", "fhirUrl": "https://your-fhir-server.azurehealthcareapis.com/fhir", "clientId": "your-client-id", "clientSecret": "your-client-secret", "tenantId": "your-tenant-id" } } } }

6 – Starten Sie Claude Desktop neu.

Beiträge 🤝

Beiträge sind willkommen! Senden Sie gerne einen Pull Request.

  1. Forken Sie das Repository
  2. Erstellen Sie Ihren Feature-Zweig ( git checkout -b feature/AmazingFeature )
  3. Übernehmen Sie Ihre Änderungen ( git commit -m '✨ Add some AmazingFeature' )
  4. Pushen zum Zweig ( git push origin feature/AmazingFeature )
  5. Öffnen einer Pull-Anfrage

Lizenz ⚖️

Lizenziert unter MIT – siehe Datei LICENSE.md .

Dies ist kein offizielles Microsoft- oder Azure-Produkt.

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

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Ein Model Context Protocol-Server, der eine standardisierte Interaktion mit Azure Health Data Services FHIR-Servern ermöglicht und so Operationen mit Gesundheitsdaten über MCP-Tools zulässt.

  1. Einrichtung 🛠️
    1. Installation 📦
    2. MCP-Konfiguration ⚙️
    3. Verfügbare Tools 🔧
  2. Entwicklung 💻
    1. Lokales Entwicklungs-Setup
  3. Beiträge 🤝
    1. Lizenz ⚖️

      Related MCP Servers

      • -
        security
        A
        license
        -
        quality
        A minimal server/client application implementation utilizing the Model Context Protocol (MCP) and Azure OpenAI.
        Last updated -
        15
        Python
        MIT License
      • -
        security
        A
        license
        -
        quality
        A Model Context Protocol server that provides health data from the Senechal API to LLM applications, enabling AI assistants to access, analyze, and respond to personal health information.
        Last updated -
        Python
        GPL 3.0
        • Linux
        • Apple
      • -
        security
        A
        license
        -
        quality
        A TypeScript-based MCP server that connects to FHIR servers, allowing access to healthcare data via fhir:// URIs and providing search capabilities for FHIR resources.
        Last updated -
        20
        JavaScript
        MIT License
        • Apple
      • -
        security
        -
        license
        -
        quality
        A Model Context Protocol (MCP) server that interacts with system APIs, allowing users to check connections, search employees, register breakfast, and update chemical information by shifts.
        Last updated -
        2

      View all related MCP servers

      ID: k68g4j2akh