@flexpa/mcp-fhir
[!WARNING] This is an experimental demo not intended for production use.
This is a TypeScript-based MCP server that connects to a FHIR server. It provides core MCP functionality for interacting with FHIR resources by:
- Accessing FHIR resources via URIs
- Providing search capabilities for FHIR resources
Features
Resources
[!TIP] “Resources” here refers to the MCP definition not the FHIR one. MCP Resources are a core primitive in the Model Context Protocol (MCP) that allow servers to expose data and content that can be read by clients and used as context for LLM interactions.
- List and access FHIR resources via
fhir://
URIs - Resources are returned in FHIR JSON format
- Supports all FHIR Resource types available in the FHIR server’s CapabilityStatement
Tools
search_fhir
- Search FHIR resources- Takes
resourceType
andsearchParams
as parameters - Returns FHIR search results
- Takes
read_fhir
- Read an individual FHIR resource- Takes
uri
as a parameter - Returns the FHIR resource in JSON format
- Takes
Configuration
The server requires the following environment variables:
FHIR_BASE_URL
: The base URL of your FHIR serverFHIR_ACCESS_TOKEN
: A SMART on FHIR access token for authentication
Development
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
Installation
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"fhir": {
"command": "/path/to/@flexpa/mcp-fhir/build/index.js"
},
"env": {
"FHIR_BASE_URL": "<FHIR_BASE_URL>",
"FHIR_ACCESS_TOKEN": "<FHIR_ACCESS_TOKEN>"
}
}
}
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspector
The Inspector will provide a URL to access debugging tools in your browser.
FHIR Integration Server
Project Details
- flexpa/mcp-fhir
- MIT License
- Last Updated: 4/12/2025
Categories
Recomended MCP Servers
DeepView MCP is a Model Context Protocol server that enables IDEs like Cursor and Windsurf to analyze large...

Dart AI Model Context Protocol (MCP) server
MCP server integrating CEDARScript grammar functionality into tool use.
The Shodan MCP Server by ADEO Cybersecurity Services provides cybersecurity professionals with streamlined access to Shodan's powerful reconnaissance...
A Model Context Protocol Server for Interacting with Slack
AI-powered code quality analysis using MCP to help AI assistants review code more effectively. Analyze git changes for...
Not just another MCP filesystem. Optimized file operations with smart context management and token-efficient partial reading/editing. Process massive...
A Model Context Protocol (MCP) server for interacting with Meilisearch through LLM interfaces.
This template provides a streamlined foundation for building Model Context Protocol (MCP) servers in Python. It's designed to...