Azure AHDS FHIR MCP Server
Azure AHDS FHIR MCP サーバー 🚀
Azure Health Data Services FHIR(Fast Healthcare Interoperability Resources)向けのモデルコンテキストプロトコル(MCP)サーバー実装。このサービスは、Azure FHIRサーバーと対話するための標準化されたインターフェースを提供し、MCPツールを介した医療データ操作を可能にします。
セットアップ 🛠️
インストール📦
Python 3.13 以上が必要です。
pipを使用してパッケージをインストールします。
pip install azure-fhir-mcp-serverMCP 構成 ⚙️
クロードデスクトップ構成
1 - Claude デスクトップ構成を編集する:
claude_desktop_config.jsonを開き、次の構成を追加します。
MacOs の場合、ファイルは~/Library/Application Support/Claude Desktop/claude_desktop_config.jsonにあります。
Windows の場合、ファイルは%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"
}
}
}
}使用可能な環境構成変数の表を以下に示します。
変数 | 説明 | デフォルト |
| ログレベル |
|
| Azure FHIR サーバー URL | 必須 |
| OAuth2 クライアントID | 必須 |
| OAuth2クライアントシークレット | 必須 |
| Azure AD テナント ID | 必須 |
2 - Claude Desktop を再起動します。
利用可能なツール 🔧
FHIR リソース操作
search_fhir- 検索パラメータの辞書に基づいて FHIR リソースを検索します
リソースアクセス
サーバーは、MCP リソース プロトコルを通じてすべての標準 FHIR リソースへのアクセスを提供します。
fhir://Patient/- すべての患者リソースにアクセスしますfhir://Patient/{id}- 特定の患者リソースにアクセスするfhir://Observation/- すべてのObservationリソースにアクセスしますfhir://Observation/{id}- 特定のObservationリソースにアクセスするfhir://Medication/- すべての医薬品リソースにアクセスfhir://Medication/{id}- 特定の医薬品リソースにアクセスするその他にも多数...
Related MCP server: Smart EHR MCP Server
開発💻
ローカル開発のセットアップ
1 - リポジトリをクローンします。
git clone https://github.com/erikhoward/azure-fhir-mcp-server.git
cd azure-fhir-mcp-server2 - 仮想環境を作成してアクティブ化する:
Linux/macOS:
python -m venv .venv
source .venv/bin/activateウィンドウズ:
python -m venv .venv
.venv\Scripts\activate3 - 依存関係をインストールします。
pip install -e ".[dev]"4 - 環境変数をコピーして設定します。
cp .env.example .env設定に合わせて .env を編集します。
fhirUrl=https://your-fhir-server.azurehealthcareapis.com/fhir
clientId=your-client-id
clientSecret=your-client-secret
tenantId=your-tenant-id5 - クロードデスクトップ構成
claude_desktop_config.jsonを開き、次の構成を追加します。
MacOs の場合、ファイルは~/Library/Application Support/Claude Desktop/claude_desktop_config.jsonにあります。
Windows の場合、ファイルは%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 - Claude Desktop を再起動します。
貢献🤝
貢献を歓迎します!お気軽にプルリクエストを送信してください。
リポジトリをフォークする
機能ブランチを作成します(
git checkout -b feature/AmazingFeature)変更をコミットします (
git commit -m '✨ Add some AmazingFeature')ブランチにプッシュする (
git push origin feature/AmazingFeature)プルリクエストを開く
ライセンス ⚖️
MIT ライセンス - LICENSE.mdファイルを参照してください。
これは公式の Microsoft または Azure 製品ではありません。
Available Tools
1 toolsearch_fhirA
Search FHIR resources using comprehensive Azure FHIR search capabilities.
Supports resource-specific and common search parameters, modifiers, prefixes, chained searches, and result management. Returns paginated results in FHIR searchset bundles.
Key Features: • Resource-specific and common search parameters (_id, _lastUpdated, _tag, etc.) • Search modifiers (:missing, :exact, :contains, :text, :not, etc.) • Prefixes for ordered parameters (gt, lt, ge, le, etc.) • Chained searches (e.g., Encounter?subject:Patient.name=Jane) • Reverse chained searches using _has parameter • Include and revinclude searches (_include, _revinclude) • Result parameters (_count, _sort, _elements, _summary, _total) • Composite search parameters for complex queries • Pagination support with configurable page sizes (max 1000)
Args: resource_type: FHIR resource type to search (e.g., 'Patient', 'Observation', 'Condition') search_params: Dictionary of FHIR search parameters. Common examples: • {"name": "Smith", "_count": 50} - Search patients by name, limit 50 results • {"birthdate": "gt1990-01-01", "_sort": "birthdate"} - Patients born after 1990, sorted • {"identifier": "12345", "_include": "Patient:general-practitioner"} - Include GP • {"code": "77386006", "_include": "Observation:subject"} - Pregnancy observations with patients • {"_lastUpdated": "gt2024-01-01"} - Resources updated after date ctx: MCP Context for logging and progress reporting
Returns: List of matching FHIR resources extracted from searchset Bundle
Inputs: resource_type (required), search_params. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool 'search_fhir' has a clearly defined purpose focused on FHIR search operations.
The naming follows a consistent snake_case pattern with a clear verb_noun structure ('search_fhir'). With only one tool, there is no inconsistency to evaluate.
A single tool for an FHIR server is insufficient for comprehensive coverage of FHIR operations. FHIR domains typically require CRUD operations (create, read, update, delete) and other interactions beyond just search, making this server feel thin and incomplete for its purpose.
The tool surface is severely incomplete for an FHIR server. While the search functionality is detailed, there are significant gaps in basic FHIR operations like creating, reading, updating, or deleting resources, which are essential for full FHIR lifecycle management.
Maintenance
Related MCP Connectors
Hosted MCP server for the Healthie EHR & telehealth API: patients, appointments, charting, tasks.
The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
The Stytch MCP server is a reference implementation that demonstrates remote MCP server authentication and authorization using Stytch Connected Apps. It provides OAuth 2.1-compliant authorization (including PKCE), Dynamic Client Registration, and validates Stytch-issued access tokens to enable AI agents to securely interact with external services through permissioned access, supporting scopes like openid, email, profile, and manage:project_data.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides healthcare tools for interacting with FHIR data and medical resources on EMRs like Cerner and Epic2MIT
- AlicenseNot gradedqualityFmaintenanceA Model Context Protocol server that connects AI tools to Electronic Health Records using SMART on FHIR, allowing secure searching, querying, and analysis of patient data from compatible EHRs.88MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables querying FHIR healthcare data using natural language, allowing doctors to retrieve patient information, medications, observations, and other healthcare records.1-
- AlicenseNot gradedqualityDmaintenanceA server that implements the Model Context Protocol (MCP) with StreamableHTTP transport, enabling standardized interaction with model services through a RESTful API interface.2MIT