Skip to main content
MCP server CX Codex

FHIR MCP Server — Claude Code MCP server: setup

Connect an AI coding client to a FHIR API to search and retrieve clinical data. Use it when you need FHIR access from Claude Code or another supported client.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add fhir-mcp-server -e FHIR_SERVER_BASE_URL=<FHIR_SERVER_BASE_URL> -- uvx fhir-mcp-server
Open on GitHub

What FHIR MCP Server does

This server connects MCP clients to FHIR APIs over stdio, SSE, or streamable HTTP. Results from read and search can be narrowed with FHIRPath expressions. You need an accessible FHIR API, Python 3.8+, and uv for dependency management.

To run the PyPI package, set FHIR_SERVER_BASE_URL and launch uvx fhir-mcp-server. Authorization starts enabled; configure FHIR_SERVER_CLIENT_ID, FHIR_SERVER_CLIENT_SECRET, and FHIR_SERVER_SCOPES for it. Local Docker and Docker Compose runs require FHIR_SERVER_DISABLE_AUTHORIZATION=True; otherwise authorization prevents the documented local setup from working.

What it helps with

  • connect an AI client to a FHIR API
  • search clinical resources on a FHIR server
  • retrieve FHIR data with the read operation
  • filter resource fields with FHIRPath

Example prompts for the agent

  • Search the connected FHIR server for patient resources matching these criteria.
  • Retrieve this resource from FHIR and return only the fields needed for the task.
  • Search for resources and filter the results with a FHIRPath expression.

How to install FHIR MCP Server

Platform CLI

claude mcp add fhir-mcp-server -e FHIR_SERVER_BASE_URL=<FHIR_SERVER_BASE_URL> -- uvx fhir-mcp-server

Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from fhir-mcp-server <command>

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about FHIR MCP Server

How do I install FHIR MCP Server in Claude Code?

Set the FHIR API address with claude mcp add fhir-mcp-server -e FHIR_SERVER_BASE_URL=<FHIR_SERVER_BASE_URL> -- uvx fhir-mcp-server. This registers the server over stdio.

What does FHIR MCP Server do?

It lets an MCP client search and retrieve information through a FHIR API. You can also apply FHIRPath expressions to read and search results.

What does FHIR MCP Server need to run?

It needs an accessible FHIR API, Python 3.8+, and uv for dependency management. Authorization is enabled by default and uses client credentials and scopes.

Similar MCP servers

All MCP servers for Backend and APIs →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor