M
MCP Fhir Server
by @j4jayant
Example MCP SSE Server with FHIR Integration
Created 6/2/2025
Updated 3 days ago
README
Repository documentation and setup instructions
Example MCP SSE Server intgrated with FHIR Server
A Model Context Protocol (MCP) server implementation that integrates with FHIR server to implement FHIR specific tool definitions. This is quick and dirty implementation and sole objective is to demonstrate MCP + FHIR integration. This implementation doesn't cover FHIR server OAuth and depends on supplied Auth token.
I have tested this integration for Patient and Appointment resources without any issues.
This MCP server implements two tools
- Create FHIR Resource
Takes Two input parameters
- ResourceType
- ResourceBody
- Read FHIR Resource
Takes Two input parameters
- ResourceType
- ResourceID
Dependencies
- @modelcontextprotocol/sdk - SDK for Model Context Protocol
- Express - Web framework for Node.js
Quick Setup
Installation guide for this server
Install Package (if required)
npx @modelcontextprotocol/server-mcp-fhir-server
Cursor configuration (mcp.json)
{
"mcpServers": {
"j4jayant-mcp-fhir-server": {
"command": "npx",
"args": [
"j4jayant-mcp-fhir-server"
]
}
}
}