wso2 avatar

FHIR MCP Server

wso2/fhir-mcp-server

Bridges FHIR healthcare APIs to MCP clients, letting you search and retrieve clinical data through Claude Desktop, VS Code, or other MCP tools. Handles SMART-on-FHIR authentication flows including OAuth 2.0, so you can connect to Epic sandboxes, HAPI FHIR servers, and other compliant endpoints. Exposes FHIR operations as MCP tools for querying patient records, observations, and other healthcare resources. Ships with Docker support and works with both public FHIR servers and authenticated EHR systems. Solid choice when you need to analyze healthcare data with LLMs or build clinical decision support workflows.

GitHub stars
137
tools
7
auth
Required
transport
STDIO
env var
1
last updated
Oct 29, 2026

Tools

7 tools

Public tool metadata for what this MCP can expose to an agent.

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

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

No parameter schema in public metadata yet.

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

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

No parameter schema in public metadata yet.

readPerforms 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.

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.

No parameter schema in public metadata yet.

createExecutes a FHIR "create" interaction to persist a new resource of the specified type.

Executes a FHIR "create" interaction to persist a new resource of the specified type.

No parameter schema in public metadata yet.

updatePerforms a FHIR "update" interaction by replacing an existing resource instance's content with the provided payload.

Performs a FHIR "update" interaction by replacing an existing resource instance's content with the provided payload.

No parameter schema in public metadata yet.

deleteExecute a FHIR "delete" interaction on a specific resource instance.

Execute a FHIR "delete" interaction on a specific resource instance.

No parameter schema in public metadata yet.

get_userRetrieves the currently authenticated user's FHIR resource (for example the linked `Patient` resource) and returns a concise profile containing available demographic fields such as `id`, `name`, and `birthDate`.

Retrieves the currently authenticated user's FHIR resource (for example the linked `Patient` resource) and returns a concise profile containing available demographic fields such as `id`, `name`, and `birthDate`.

No parameter schema in public metadata yet.

Sponsors

Configuration

FHIR_SERVER_BASE_URL*

Base URL of the FHIR Server (eg: https://hapi.fhir.org/baseR5)

Readme

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 Listed on MCP ServerList PyPI Downloads


View the full README on GitHub

Details

Repository
github.com/wso2/fhir-mcp-server
Website
github.com/wso2/fhir-mcp-server
Package
fhir-mcp-server
Transport
STDIO
Auth
Required
Registry
MCP registry, active