fhir-docs-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
fhir-docs-mcp
An MCP server that gives LLMs accurate access to FHIR R5 (5.0.0) resource definitions — so they stop guessing schemas and start looking them up.
Built on the official HL7 StructureDefinition JSON bundle. Ships all 162 R5 resources, no network calls needed.
Why
LLMs frequently hallucinate FHIR field names, cardinalities, and data types. This server lets Claude (or any MCP client) look up the real structure of any FHIR resource on demand — mandatory fields, types, value set bindings, and all.
Related MCP server: Medical MCP Server
Tools
Tool | What it does |
| Top-level elements of a resource (e.g. Patient, Observation) |
| Drill into nested BackboneElements (e.g. Patient.contact) |
| Keyword search across all 162 resources |
Example output
get_resource_definition("Patient")
============================================================
Patient
============================================================
Information about an individual or animal receiving health care services
----------------------------------------
Elements
----------------------------------------
identifier (0..*) : Identifier
An identifier for this patient
active (0..1) : boolean
Whether this patient's record is in active use
name (0..*) : HumanName
A name associated with the patient
gender (0..1) : code
male | female | other | unknown
binding: required (http://hl7.org/fhir/ValueSet/administrative-gender|5.0.0)
deceased[x] (0..1) : boolean | dateTime
Indicates if the individual is deceased or not
contact (0..*) : BackboneElement
A contact party (e.g. guardian, partner, friend) for the patient
→ use get_backbone_element to expand
...get_backbone_element("Patient", "Patient.contact")
============================================================
Patient — Patient.contact
============================================================
A contact party (e.g. guardian, partner, friend) for the patient
----------------------------------------
Child elements
----------------------------------------
relationship (0..*) : CodeableConcept
The kind of relationship
binding: extensible (http://hl7.org/fhir/ValueSet/patient-contactrelationship)
name (0..1) : HumanName
A name associated with the contact person
organization (0..1) : Reference(Organization)
Organization that is associated with the contact
...Setup
Requires Python 3.11+ and uv.
git clone https://github.com/maximecharriere/fhir-docs-mcp.git
cd fhir-docs-mcp
uv syncAdd to Claude Code
claude mcp add fhir-r5 -- uv run --directory /path/to/fhir-docs-mcp fhir-mcpAdd to Claude Desktop
Add this to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"fhir-r5": {
"command": "uv",
"args": ["run", "--directory", "/path/to/fhir-docs-mcp", "fhir-mcp"]
}
}
}Development
Run the MCP Inspector to test tools interactively:
uv run fastmcp dev inspector src/fhir_mcp/server.py:mcpProject structure
fhir-docs-mcp/
├── definitions/
│ └── definitions.json/
│ └── profiles-resources.json # Official HL7 FHIR R5 bundle
├── src/
│ └── fhir_mcp/
│ ├── __init__.py
│ ├── parser.py # FHIR JSON parsing (no MCP dependency)
│ └── server.py # MCP server, tools, formatting
└── pyproject.tomlLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Privacy-preserving synthetic health data generation. FHIR R4/R5 compliant.
Medical RAG: semantic search for clinical guidelines, drug interactions, diagnoses & EHR data.
Medical RAG: semantic search for clinical guidelines, drug interactions, diagnoses & EHR data.
Securely access and manage FHIR healthcare data stored in Medplum.
Related MCP Servers
- AlicenseAqualityBmaintenanceTyped, validated FHIR tools for healthcare AI agents — build, read, validate, and code FHIR resources from a patient bundle, with terminology lookup and machine-readable validation reports built for fix-and-retry.81,147 PyPI231Apache 2.0
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to query authoritative medical sources such as FDA, WHO, PubMed, RxNorm, and ClinicalTrials.gov for drug information, safety data, health statistics, clinical guidelines, pediatric resources, and evidence-graded literature. Runs locally with no API keys or data leaving the machine.74 npmISC
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to query authoritative medical sources such as FDA, WHO, PubMed, RxNorm, and ClinicalTrials.gov from a local, key-free server. Provides drug searches, health statistics, graded medical literature, clinical guidelines, pediatric resources, and built-in health monitoring without sending data to the cloud.74 npmISC
- FlicenseNot gradedqualityAmaintenanceEnables LLM-based agents to connect to a FHIR-compliant healthcare backend and query or manipulate clinical data with natural-language prompts. Provides full CRUD operations on FHIR resources, AI-powered document ingestion and semantic search, RAG-ready retrieval, and LOINC terminology lookup.-