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
- @modelcontextprotocol/sdk - SDK for Model Context Protocol
- Express - Web framework for Node.js