FHIR MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@FHIR MCP Serverget conditions for patient 123"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
š„ FHIR MCP Server
A FastMCP server that exposes healthcare data from the Public HAPI FHIR R4 Server using the Model Context Protocol (MCP).
This project demonstrates how AI applications can interact with standardized Electronic Health Record (EHR) data through FHIR resources.
Features
Search patients by name
Retrieve patient demographics
Retrieve medical conditions
Retrieve observations
Retrieve medication requests
Async communication using HTTPX
Compatible with MCP Inspector
Built using FastMCP
Related MCP server: atlas_mcp
Technologies
Python 3.11+
FastMCP
MCP
HTTPX
FHIR R4
Public HAPI FHIR Server
Project Structure
fhir-mcp-server/
ā
āāā server.py
āāā requirements.txt
āāā README.md
āāā LICENSE
āāā .gitignore
ā
āāā screenshots/
ā āāā home.png
ā āāā search_patient.png
ā āāā get_patient.png
ā āāā get_conditions.png
ā āāā get_observations.png
ā āāā get_medications.png
ā āāā architecture.png
ā
āāā docs/
āāā architecture.mdInstallation
Clone the repository:
git clone https://github.com/baala-saravanan/fhir-mcp-server.git
cd fhir-mcp-serverCreate a virtual environment:
python -m venv .venvActivate the environment:
Windows:
.venv\Scripts\activateInstall dependencies:
pip install -r requirements.txtRunning the Project
Launch the MCP development server:
mcp dev server.pyThe MCP Inspector will open automatically in your browser.
Available MCP Tools
Tool | Description |
search_patient | Search patients by name |
get_patient | Retrieve patient demographics |
get_conditions | Retrieve patient conditions |
get_observations | Retrieve laboratory results and observations |
get_medications | Retrieve medication history |
Data Source
Public HAPI FHIR R4 Test Server
https://hapi.fhir.org/baseR4This server provides synthetic healthcare data for development and testing.
Architecture
The application follows the Model Context Protocol (MCP) architecture.
See:
docs/architecture.mdscreenshots/architecture.png
Screenshots
The project includes screenshots demonstrating the available MCP tools.
Home
Search Patient
Get Patient
Get Conditions
Get Observations
Get Medications
Architecture Diagram
Future Improvements
Patient Timeline
Clinical Summary
Laboratory Trend Analysis
Medication Intelligence
Clinical Decision Support
AI-powered Patient Summaries
Streamlit Dashboard
FastAPI Backend
LLM Integration
License
This project is licensed under the MIT License.
See the LICENSE file for details.
Author
Bala Saravanan Muthukumar
Data Scientist
Biomedical Engineer
AI & Healthcare Enthusiast
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Hosted MCP server exposing US hospital procedure cost data to AI assistants
Hosted MCP server for the Healthie EHR & telehealth API: patients, appointments, charting, tasks.
A paid remote MCP for AI SDK data query MCP, built to return verdicts, receipts, usage logs, and aud
MCP Hub: AI service discovery, per-user OAuth, and multi-service workflow orchestration
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA comprehensive MCP server that bridges AI applications with FHIR healthcare data systems, enabling patient data access, clinical data retrieval, and data quality assessment.4-
- AlicenseNot gradedqualityDmaintenanceAn MCP server that brings AI-powered search and conversation to your FHIR clinical documents.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI clients to securely access, query, and mutate normalized user-controlled health data (e.g., from Apple Health or Supabase) through a bounded set of MCP tools, with optional OAuth and sandboxed deployment.MIT

LangCare MCP FHIR Serverofficial
AlicenseNot gradedqualityDmaintenanceEnterprise-grade MCP Server for FHIR-based EMRs. Enables AI agents to read, search, create, and update any FHIR R4 resource across major EHR systems like EPIC, Cerner, and OpenEMR.14754MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/baala-saravanan/fhir-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server