Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI → MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE ↗ (opens in a new tab)
  • llms.txt ↗ (opens in a new tab)
  • Catalog JSON ↗ (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub ↗ (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. Biology, Medicine and Bioinformatics
  3. Fhir MCP Server
Fhir MCP Server logo
Health: ActiveRecent health check succeeded.Last checked 9/11/2026, 9:31:15 PM

Fhir MCP Server

User RatingsBe the first to rate and review this MCP server!
View Repository135 GitHub StarsTotal stargazers on GitHub for the source repository (135 stars).Visit Website
healthcarefhirmcpoauthclinical-data

MCP server providing integration with FHIR APIs for clinical data access using SMART-on-FHIR authentication.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.

Add to CursorAdd to VS Code
We couldn’t automatically confirm this listing starts correctly

We ran the install command below but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx fhir-mcp-server

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 1mo ago.

Manual Client & Custom JSON ConfigExpand JSON ▾

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "wso2-fhir-mcp-server": {
      "command": "uvx",
      "args": [
        "fhir-mcp-server"
      ]
    }
  }
}

💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Tool Schemas (13) Directory Badge Claim listing Alternatives📂 More in Biology, Medicine and Bioinformatics

Overview

This MCP server bridges AI tools and FHIR healthcare APIs, enabling search, retrieval, creation, update, and analysis of clinical data. It supports SMART-on-FHIR OAuth 2.0 authentication for secure access. Use it when you need to integrate AI assistants with FHIR-compliant healthcare data sources, including public and authorized servers.

Use cases

•Search clinical healthcare data from FHIR servers
•Retrieve and analyze patient records securely
•Create or update FHIR resources via AI agents
•Filter FHIR responses using FHIRPath expressions
•Integrate with MCP clients like VS Code and Claude Desktop

Key features

•MCP-compatible transport over stdio, SSE, or HTTP streaming
•SMART-on-FHIR OAuth 2.0 authorization support
•FHIRPath-based response filtering to reduce payloads
•Supports interaction with any MCP client
•Configurable host and port via environment variables

Capabilities & Tool Schemas (13) ~402 tokensApproximate context cost of this server’s tool schemas (~4 chars/token), before any tool is called. Actual usage depends on your client and model.Self-reported Self-reportedParsed from the repository README, not verified against a live server — may be incomplete or out of date.

Inspect callable tools, capabilities, and parameters exposed to AI agents by Fhir MCP Server.

get_capabilities

Retrieves metadata about a specified FHIR resource type, including its supported search parameters and custom operations.

type

The FHIR resource type name (e.g., "Patient", "Observation", "Encounter")

search

Executes a standard FHIR search interaction on a given resource type, returning a bundle or list of matching resources.

searchParam

A mapping of FHIR search parameter names to their desired values (e.g., {"family":"Simpson","birthdate":"1956-05-12"}).

response_filter_fhirpaths

(Optional) An array of FHIRPath expressions (e.g., `["Patient.name", "Patient.birthDate", "Bundle.link.where(relation='next').url"]`) to apply to the resources in the response bundle.

read

Performs a FHIR "read" interaction to retrieve a single resource instance by its type and resource ID, optionally refining the response with search parameters or custom operations.

Documentation Overview

Model Context Protocol (MCP) Server for Fast Healthcare Interoperability Resources (FHIR) APIs

License Get Support on Stack Overflow Join the community on Discord X Listed on Spark Install via Spark

Table of Contents

  • Model Context Protocol (MCP) Server for Fast Healthcare Interoperability Resources (FHIR) APIs
    • Table of Contents
    • Overview
    • Demo
      • Demo with HAPI FHIR server
      • Demo with EPIC Sandbox
    • Core Features
    • Prerequisites
    • Installation
      • Installing using PyPI Package
      • Installing from Source
      • Installing using Docker
        • Running the MCP Server with Docker
        • Using Docker Compose with HAPI FHIR Server
    • Integration with MCP Clients
      • VS Code
      • Claude Desktop
      • MCP Inspector
    • Configuration
      • CLI Options
      • Environment Variables
    • Tools
    • Development & Testing
      • Installing Development Dependencies
      • Running Tests

Overview

The FHIR MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with FHIR APIs. Designed for developers, integrators, and healthcare innovators, this server acts as a bridge between modern AI/LLM tools and healthcare data, making it easy to search, retrieve, and analyze clinical information.

Demo

Demo with HAPI FHIR server

This video showcases the MCP server's functionality when connected to a public HAPI FHIR server. This example showcases direct interaction with an open FHIR server that does not require an authorization flow.

https://github.com/user-attachments/assets/cc6ac87e-8329-4da4-a090-2d76564a3abf

Demo with EPIC Sandbox

This video showcases the MCP server's capabilities within the Epic EHR ecosystem. It demonstrates the complete OAuth 2.0 Authorization Code Grant flow.

https://github.com/user-attachments/assets/96b433f1-3e53-4564-8466-65ab48d521de

Core Features

  • MCP-compatible transport: Serves FHIR via stdio, SSE, or streamable HTTP

  • SMART-on-FHIR based authentication support: Securely authenticate with FHIR servers and clients

  • Response Filtering using FHIRPath: Filter resources and bundles returned by read and search operations using custom FHIRPath expressions to retrieve only the fields needed for the task, reducing payload sizes.

  • Tool integration: Integratable with any MCP client such as VS Code, Claude Desktop, and MCP Inspector

Prerequisites

  • Python 3.8+
  • uv (for dependency management)
  • An accessible FHIR API server.

Installation

You can use the FHIR MCP Server by installing our Python package, or by cloning this repository.

Installing using PyPI Package

  1. Configure Environment Variables:

    To run the server, you must set FHIR_SERVER_BASE_URL.

    • To enable authorization: Set FHIR_SERVER_BASE_URL, FHIR_SERVER_CLIENT_ID, FHIR_SERVER_CLIENT_SECRET, and FHIR_SERVER_SCOPES. Authorization is enabled by default.
    • To disable authorization: Set FHIR_SERVER_DISABLE_AUTHORIZATION to True.

    By default, the MCP server runs on http://localhost:8000, and you can customize the host and port using FHIR_MCP_HOST and FHIR_MCP_PORT.

    You can set these by exporting them as environment variables like below or by creating a .env file (referencing .env.example).

    server.ts
    export FHIR_SERVER_BASE_URL=""
    export FHIR_SERVER_CLIENT_ID=""
    export FHIR_SERVER_CLIENT_SECRET=""
    export FHIR_SERVER_SCOPES=""
    
    export FHIR_MCP_HOST="localhost"
    export FHIR_MCP_PORT="8000"
    
  2. Install the PyPI package and run the server

    bash
    uvx fhir-mcp-server
    

Installing from Source

  1. Clone the repository:

    bash
    git clone <repository_url>
    cd <repository_directory>
    
  2. Create a virtual environment and install dependencies:

    bash
    uv venv
    source .venv/bin/activate
    uv pip sync requirements.txt
    

    Or with pip:

    bash
    python -m venv .venv
    source .venv/bin/activate
    pip install -r requirements.txt
    
  3. Configure Environment Variables: Copy the example file and customize if needed:

    bash
    cp .env.example .env
    
  4. Run the server:

    bash
    uv run fhir-mcp-server
    

Installing using Docker

Running the MCP Server with Docker

You can run the MCP server using Docker for a consistent, isolated environment.

Note on Authorization: When running the MCP server locally via Docker or Docker Compose, authorization should be disabled by setting the environment variable, FHIR_SERVER_DISABLE_AUTHORIZATION=True . This would be fixed in the future releases.

  1. Build the Docker Image or pull the docker image from the container registry:

    • Build from source:
      Terminal
      docker build -t fhir-mcp-server .
      
    • Pull from GitHub Container Registry:
      Terminal
      docker pull wso2/fhir-mcp-server:latest
      
  2. Configure Environment Variables

    Copy the example environment file and edit as needed:

    bash
    cp .env.example .env
    # Edit .env to set your FHIR server, client credentials, etc.
    

    Alternatively, you can pass environment variables directly with -e flags or use Docker secrets for sensitive values. See the Configuration section for details on available environment variables.

  3. Run the Container

    Terminal
    docker run --env-file .env -p 8000:8000 fhir-mcp-server
    

    This will start the server and expose it on port 8000. Adjust the port mapping as needed.

Using Docker Compose with HAPI FHIR Server

For a quick setup that includes both the FHIR MCP server and a HAPI FHIR server (with PostgreSQL), use the provided docker-compose.yml. This sets up an instant development environment for testing FHIR operations.

  1. Prerequisites:

    • Docker and Docker Compose installed.
  2. Run the Stack:

    bash
    docker-compose up -d
    

    This command will:

    • Start a PostgreSQL database container.
    • Launch the HAPI FHIR server (connected to PostgreSQL) listening on http://localhost:8080.
    • Build and run the FHIR MCP server container listening on http://localhost:8000, with FHIR_SERVER_BASE_URL set to http://hapi-r4-postgresql:8080/fhir.
  3. Access the Services:

    • FHIR MCP Server: http://localhost:8000
    • HAPI FHIR Server: http://localhost:8080
    • To stop run docker-compose down.
  4. Configure Additional Environment Variables:

    If you need to customize OAuth or other settings, adjust the env variables in the docker-compose.yml. The compose file sets basic configuration; refer to the Configuration section for full options.

Integration with MCP Clients

The FHIR MCP Server is designed for seamless integration with various MCP clients.

VS Code

Install in VS Code Install in VS Code Insiders

Add the following JSON block to your MCP configuration file in VS Code (> V1.104). You can do this by pressing Ctrl + Shift + P and typing MCP: Open User Configuration.

Streamable HTTPSTDIOSSE
json
"servers": {
    "fhir": {
        "type": "http",
        "url": "http://localhost:8000/mcp",
    }
}
json
"servers": {
    "fhir": {
        "command": "uv",
        "args": [
            "--directory",
            "/path/to/fhir-mcp-server",
            "run",
            "fhir-mcp-server",
            "--transport",
            "stdio"
        ],
        "env": {
            "FHIR_SERVER_ACCESS_TOKEN": "Your FHIR Access Token"
        }
    }
}
json
"servers": {
    "fhir": {
        "type": "sse",
        "url": "http://localhost:8000/sse",
    }
}

Read the full README →View source on GitHub →

Related MCP Servers

View all in Biology, Medicine and Bioinformatics View all alternatives
  • Fhir MCP Server logoFhir MCP Server

    MCP Server that connects AI agents to FHIR servers. One example use case is querying patient history in natural language.

    Biology, Medicine and Bioinformatics2 views
    Compare vs Fhir MCP Server →
  • Mymedi AI MCP Server logoMymedi AI MCP Server

    Healthcare billing AI for agents: ICD-10/CPT/HCPCS code lookup (81,769 codes with RVU + OPPS pricing), prior auth prediction, medical NER, claims validation, denial-risk scoring, HIPAA compliance auditing, and NPI/drug enrichment. 20 tools, 10 free credits then pay-per-call via credits or anonymous USDC (x402). npx @mymedi-ai/mcp-server

    Biology, Medicine and Bioinformatics5 views
    Compare vs Mymedi AI MCP Server →
  • Opdstar Nhi MCP logoOpdstar Nhi MCP

    Taiwan's first public MCP server for National Health Insurance (NHI) data — 234 rejection codes, 1,497 ICD-10→procedure mappings across 20 specialties, audit indicators (008/014/027/P043), and semantic wiki search over 8,232 chunks of official NHI documentation. Powered by OPDSTAR. Install: npx @opdstar/nhi-mcp.

    Biology, Medicine and Bioinformatics4 views
    Compare vs Opdstar Nhi MCP →
  • Dicom Hl7 MCP Server logoDicom Hl7 MCP Server

    The only MCP server bridging DICOM, HL7v2, and FHIR in one package. Cross-standard mapping, Mirth Connect channel generation, vendor private tag decoding (GE, Siemens, Philips), and integration pattern knowledge. Built by a 19-year healthcare IT veteran. pip install dicom-hl7-mcp

    Biology, Medicine and Bioinformatics2 views
    Compare vs Dicom Hl7 MCP Server →

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars
135
Stargazers on the source repository.
npm downloads
162
Package downloads in the last 30 days.
Last commit
7d ago
Most recent push to the default branch.
Install check
Inconclusive
Didn't respond in our test window — often a slow first install.
Tools exposed
13
Callable tools this server registers over MCP.
Directory activity
2 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet — be the first to share how this listing worked for you.

Frequently Asked Questions about Fhir MCP Server

It supports SMART-on-FHIR OAuth 2.0 Authorization Code Grant flow for secure authentication with FHIR servers.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewFhir MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/wso2-fhir-mcp-server?style=directory)](https://allmcps.com/mcp/wso2-fhir-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/wso2-fhir-mcp-server"><img src="https://allmcps.com/api/badge/wso2-fhir-mcp-server?style=directory" alt="Fhir MCP Server on AllMCPs" /></a>

Technical Specs & Signals

Category📂Biology, Medicine and Bioinformatics
PricingFree
More technical detailsExpand ▾
TransportSTDIO
RuntimePython
AuthAPI key
LicenseApache-2.0
ClientsClaude Desktop, Windsurf
Last updatedSep 4, 2026
10/11 checks healthy over the last 32d
Views2
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars135
GitHub Star CountTotal stargazers on GitHub representing community popularity (135 stars).
Last commit7d ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Sep 4, 2026
npm downloads162/mo
Monthly npm DownloadsAverage monthly package installs recorded from npm registry statistics.
65Quality signal: Great · 65/100How this signal is calculated ▾
Server availabilityNot measured

Not scored for repo-hosted servers — we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools29/30
Adoption & activity10/15
Community engagement0/10

A guidance signal from public completeness & health data — not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 22d ago via OSV.dev · fhir-mcp-server (PyPI)

★ Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge — proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it — no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in Biology, Medicine and Bioinformatics →Alternatives to Fhir MCP Server →Install in Claude DesktopInstall in CursorInstall in VS Code