loading…
Search for a command to run...
loading…
A comprehensive MCP server that bridges AI applications with FHIR healthcare data systems, enabling patient data access, clinical data retrieval, and data quali
A comprehensive MCP server that bridges AI applications with FHIR healthcare data systems, enabling patient data access, clinical data retrieval, and data quality assessment.
A comprehensive Model Context Protocol (MCP) server that provides FHIR (Fast Healthcare Interoperability Resources) functionality with advanced data quality assessment and error handling capabilities.
This MCP server bridges the gap between AI applications and FHIR healthcare data systems, providing robust tools for accessing patient information, clinical data, and assessing data quality across different FHIR servers. Perfect for healthcare AI development, clinical research, and testing FHIR implementations.
Clone the repository
git clone https://github.com/jcafazzo/fhir-mcp.git
cd fhir-mcp
Install dependencies
pip install -r requirements.txt
Configure Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"fhir-server": {
"command": "python3",
"args": ["/path/to/fhir-mcp/fhir_mcp_server.py"],
"env": {
"FHIR_BASE_URL": "https://r4.smarthealthit.org"
}
}
}
}
Restart Claude Desktop
| Variable | Description | Default |
|---|---|---|
FHIR_BASE_URL |
FHIR server endpoint | https://hapi.fhir.org/baseR4 |
FHIR_AUTH_TOKEN |
Bearer token for authentication | None |
| Server | URL | Quality | Use Case |
|---|---|---|---|
| SMART Health IT | https://r4.smarthealthit.org |
⭐⭐⭐⭐⭐ | Production testing |
| Firely Server | https://server.fire.ly |
⭐⭐⭐⭐ | Development |
| HAPI Test | https://hapi.fhir.org/baseR4 |
⭐⭐ | Basic testing |
get_patient - Retrieve specific patient by IDsearch_patients - Search patients by name/familysearch_all_patients - Get all patients (paginated)search_observations - Find lab results, vital signs, measurementssearch_conditions - Access diagnoses and medical conditionssearch_medication_requests - Retrieve prescriptions and medicationssearch_diagnostic_reports - Get lab reports and diagnostic studiessearch_care_plans - Access treatment and care plansassess_data_quality - Comprehensive server quality assessmentfind_patients_with_conditions - Identify patients with clinical dataget_capability_statement - Query server capabilities"Search for patients named 'Smith' and show their demographics"
"Find all patients with diabetes conditions, then show their:
- Current medications
- Recent glucose observations
- Active care plans
- Latest diagnostic reports"
"Assess the data quality of this FHIR server and identify any issues"
"Find patients with conditions containing 'diabetes' and analyze their
medication patterns over time"
# Test different FHIR servers
python3 fhir_mcp_server.py
Use the assess_data_quality tool to evaluate:
Works excellently with:
We welcome contributions! Please see our Contributing Guidelines for details.
# Clone and setup development environment
git clone https://github.com/jcafazzo/fhir-mcp.git
cd fhir-mcp
pip install -r requirements.txt
python3 fhir_mcp_server.py # Test locally
This project is licensed under the MIT License - see the LICENSE file for details.
Built with ❤️ for the healthcare AI community
Выполни в терминале:
claude mcp add fhir-mcp-server -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.