FHIR MCP Server
Model Context Protocol (MCP) Server for Fast Healthcare Interoperability Resources (FHIR)
[](mailto:hello@themomentum.ai?subject=FHIR%20MCP%20Server%20Inquiry)
[](https://themomentum.ai)
[](LICENSE)
## π Table of Contents
- [π About](#-about-the-project)
- [π‘ Demo](#-demo)
- [π Getting Started](#-getting-started)
- [π Usage](#-usage)
- [π§ Configuration](#-configuration)
- [π³ Docker Setup](#-docker-setup)
- [π οΈ MCP Tools](#οΈ-mcp-tools)
- [πΊοΈ Roadmap](#οΈ-roadmap)
- [π₯ Contributors](#-contributors)
- [π License](#-license)
## π About The Project
**FHIR MCP Server** implements a complete Model Context Protocol (MCP) server, designed to facilitate seamless interaction between LLM-based agents and a FHIR-compliant backend. It provides a standardized interface that enables full CRUD operations on FHIR resources through a comprehensive suite of tools - accessible from MCP-compatible clients such as Claude Desktop, allowing users to query and manipulate clinical data using natural-language prompts.
### β¨ Key Features
- **π FastMCP Framework**: Built on FastMCP for high-performance MCP server capabilities
- **π₯ FHIR Resource Management**: Full CRUD operations for all major FHIR resources
- **π Intelligent Document Processing**: AI-powered document ingestion and chunking for multiple formats including TXT, CSV, JSON, and PDF
- **π Semantic Search**: Advanced document search using vector embeddings (via Pinecone)
- **π§ RAG-Ready**: Retrieval-Augmented Generation pipeline with context-aware document queries
- **π Secure Authentication**: OAuth2 token management for FHIR API integration
- **π LOINC Integration**: Standardized medical terminology lookup and validation
- **π³ Container Ready**: Docker support for easy deployment and scaling
- **π§ Configurable**: Extensive ```.env```-based configuration options
### ποΈ Architecture
The server is built with a modular architecture:
- **MCP Tools**: Dedicated tools for selected FHIR resource types, with others handled by a generic tool
- **Fhir Server Client**: Handles FHIR API communication and authentication (OAuth2 and more planned)
- **RAG Services**: Embedding-based document processing and semantic retrieval
- **Vector Store**: Pinecone integration for similarity-based search
- **LOINC Client**: Integration with LOINC API for terminology resolution and validation