← Back to directory
F

FHIR MCP Server

Community
Access FHIR APIs through MCP.
Category
Other #353 of 678
Stars
★ 139 Popular
Transport
stdio (local process) · SSE · Streamable HTTP
Runtime
Python 3.8+
Credentials
Optional API key
License
Apache-2.0
Last commit
Tools
7
51FMRS · D

This MCP server integrates with FHIR APIs and provides search and resource write tools across multiple transports. The manifest lists a PyPI package and stdio transport; the README also describes SSE and streamable HTTP. Configure the FHIR server URL and authorization as needed.

Strongest · Documentation 13/20 Weakest · Reliability 8/20

Reliability
8/20
Security and permissions
9/20
Maintenance
9/20
Documentation
13/20
Setup experience
12/20
Why each score
Reliability 8/20
The manifest declares a stdio package, and the README describes stdio, SSE, and streamable HTTP along with capability, search, read, create, update, delete, and user lookup tools, making the main path plausible. This review has only the README and manifest, with no verifiable CI or committed test evidence; the README also notes an authorization configuration issue for local Docker deployments. Startup, initialization handshake, tool-list accuracy, and error handling therefore remain unverified.
Security and permissions 9/20
The documentation describes OAuth authorization, scope configuration, and direct access-token use, and says direct tokens are intended only for local stdio. It also offers an option to disable authorization. Search, create, update, and delete can affect health data, and there is no evidence of confirmation for delete; disabling authorization also broadens access. Permission boundaries and safeguards for dangerous operations are incomplete. No evidence of a listed red line appears in the supplied material.
Maintenance 9/20
The repository is labeled Apache-2.0, the manifest identifies version 0.11.0, and the README shows versioned container releases. The repository is not archived and has some discovery interest. These materials do not verify recent releases, commit or issue response activity, dependency updates, or a security response channel, limiting the score.
Documentation 13/20
The README covers PyPI, source, and Docker installation, OAuth configuration, environment variables, client connection examples, and tool parameters, and discloses some usage limits. It flags that authorization must be disabled for local Docker deployments, while troubleshooting, data handling boundaries, and safeguards for delete are not sufficiently documented. These gaps limit the score.
Setup experience 12/20
The documentation provides a uvx install command, several deployment options, and configuration examples for VS Code, Claude Desktop, and Inspector. The manifest identifies the PyPI package, uvx runtime hint, and stdio transport. Setup still requires a reachable FHIR server and environment configuration; OAuth can add complexity, and the supplied static material contains no verifiable execution evidence, so setup is rated moderate.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessUses the networkChanges third-party account data

Best for

  • Developers and integration teams connecting AI tools to an accessible FHIR API.
  • Implementers configuring a FHIR server URL, authorization, and an MCP client.

Not for

  • Users without an accessible FHIR API or the required server configuration.
  • Workflows that modify or delete clinical data without authorization or review.
  • Users seeking medical advice or clinical decision-making from the server itself.

Required permissions

  • Requires FHIR_SERVER_BASE_URL; the manifest marks it as required.
  • Access depends on the FHIR server's authorization configuration. The README describes OAuth variables and a direct access token option.
  • The create, update, and delete tools request changes to FHIR server data; actual permissions depend on the server and authentication settings.

Risks and side effects

  • The server can read, write, or delete clinical resources through its tools; incorrect parameters or overly broad access can expose data or cause unintended changes.
  • The README says FHIR_SERVER_ACCESS_TOKEN is intended for local stdio deployments and should not be used when the server is exposed over a network or the public internet.
  • Disabling authorization allows clients to connect to publicly accessible FHIR servers; ensure that configuration fits the server and deployment.
  • FHIR responses may contain sensitive health information; handle queries, logs, and returned content carefully.

Setup

Before you start

Runtime:Python 3.8+

FHIR_SERVER_BASE_URL required Base URL of the FHIR server; obtain it from the FHIR service provider.
FHIR_SERVER_CLIENT_SECRET optionalsecret OAuth client secret; obtain it from the client registration with the FHIR authorization server.
FHIR_SERVER_ACCESS_TOKEN optionalsecret Access token used to authenticate FHIR requests directly; obtain it through the FHIR authorization flow.
Other optional settings (7)
FHIR_SERVER_CLIENT_ID optional OAuth client ID; obtain it from the client registration with the FHIR authorization server.
FHIR_SERVER_SCOPES optional OAuth scopes requested from the authorization server; obtain the appropriate scopes from the FHIR service provider.
FHIR_SERVER_DISABLE_AUTHORIZATION optional Set to True to disable server authorization checks; for publicly accessible FHIR servers.
FHIR_MCP_HOST optional Hostname or IP address for the MCP server to bind to; set it for the local or deployment network.
FHIR_MCP_PORT optional Port for the MCP server to listen on; set it for the deployment.
FHIR_MCP_SERVER_URL optional Custom MCP server base URL; use the URL configured for a proxy or custom deployment.
FHIR_MCP_REQUEST_TIMEOUT optional Timeout in seconds for requests to the FHIR server; set it based on the service response time.

Install the Python package and set the required FHIR_SERVER_BASE_URL. Configure authorization variables as needed. The README provides a Claude Desktop stdio configuration example; replace its directory path and access token with your actual values.

claude_desktop_config.json
{"mcpServers":{"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"}}}}

Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/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"
      }
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.fhir]
command = "uv"
args = ["--directory", "/path/to/fhir-mcp-server", "run", "fhir-mcp-server", "--transport", "stdio"]

[mcp_servers.fhir.env]
FHIR_SERVER_ACCESS_TOKEN = "Your FHIR Access Token"

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add fhir -e 'FHIR_SERVER_ACCESS_TOKEN=Your FHIR Access Token' -- uv --directory /path/to/fhir-mcp-server run fhir-mcp-server --transport stdio

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

After connecting, confirm the client lists get_capabilities, search, read, create, update, delete, and get_user. Calling get_capabilities for Patient can verify the connection.

Troubleshooting

  1. Check that FHIR_SERVER_BASE_URL points to a reachable FHIR API base URL.
  2. Check authorization settings, including client ID, client secret, scopes, disabled authorization, or access token, against the server's requirements.
  3. Make sure the selected transport matches the client configuration; the HTTP and SSE examples use /mcp or /sse on local port 8000.
  4. Check that the MCP and FHIR servers are running and that host, port, and request timeout settings are correct.

Things to try

Once connected, you can ask your AI assistant things like:

  • Search for patients with the family name Simpson.
  • Read the Patient resource with ID 123.
  • Show the supported search parameters and operations for Patient.
  • Create a new Device resource.

Tools 7

get_capabilities read-only
Retrieves metadata for a FHIR resource type, including supported search parameters and custom operations.
search read-only
Searches FHIR resources by type and parameters, with optional FHIRPath response filtering.
read read-only
Reads one resource by type and ID, optionally using search parameters, a custom operation, or FHIRPath filtering.
create writes
Creates a resource of the specified type on the FHIR server.
update writes
Updates a resource instance with the supplied complete resource content.
delete destructive
Deletes the specified resource instance.
get_user read-only
Retrieves the FHIR resource linked to the currently authenticated user and returns available profile fields.

Use cases

Search and read FHIR clinical resources through an MCP client.
Filter response fields with FHIRPath to reduce returned data.
Create, update, or delete FHIR resources when supported by the server and authorized.
Retrieve a FHIR profile linked to the currently authenticated user.

Supported clients

Claude Desktop
VS Code
MCP Inspector

Listed from the project's documentation, not tested by this site.

Overview

FHIR MCP Server connects MCP clients to FHIR APIs. It supports searching, filtering, reading, creating, updating, and deleting FHIR resources, and can retrieve a FHIR profile linked to the authenticated user.

Similar servers

Source revision 25a1e0b81013 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/fhir-mcp-server.svg)](https://followmcp.com/en/servers/fhir-mcp-server)