# FHIR MCP Server

> Access FHIR APIs through MCP.

- **URL**: https://followmcp.com/en/servers/fhir-mcp-server
- **Category**: Other
- **Origin**: Community
- **Stars**: 139
- **FMRS Score**: 51/100 (Grade D)
- **Source**: https://github.com/wso2/fhir-mcp-server
- **Transports**: stdio (local process), SSE, Streamable HTTP
- **Runtimes**: Python 3.8+
- **Auth**: Optional API key

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

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

## Client config (JSON)
```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"}}}}
```

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