The FHIR MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with FHIR APIs, acting as a bridge between AI tools and healthcare data for searching, retrieving, and analyzing clinical information.
From the registry: MCP server providing seamless access to FHIR APIs for AI tools and healthcare applications
Please install the `fhir-mcp-server` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **FHIR server access** — Requires access to a FHIR API server (e.g. HAPI FHIR or Epic sandbox)
Canonical MCP server config (stdio transport):
- command: `uvx`
- args: ["fhir-mcp-server"]
- required environment variables:
- `FHIR_SERVER_BASE_URL`: Base URL of the FHIR server (example: `<your-fhir-server-url>`)
- optional environment variables:
- `FHIR_SERVER_CLIENT_ID`: OAuth client ID (required unless auth is disabled) (example: `<your-fhir-client-id>`)
- `FHIR_SERVER_CLIENT_SECRET`: OAuth client secret (example: `<your-fhir-client-secret>`)
- `FHIR_SERVER_SCOPES`: OAuth scopes
- `FHIR_SERVER_DISABLE_AUTHORIZATION`: Disable authorization (example: `False`)
- `FHIR_MCP_HOST`: MCP server host (example: `localhost`)
- `FHIR_MCP_PORT`: MCP server port (example: `8000`)
Note: Also supports SSE and streamable HTTP transports.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.FHIR_SERVER_BASE_URLrequiredBase URL for the FHIR server.FHIR_SERVER_CLIENT_IDrequiredClient ID for FHIR server authentication.FHIR_SERVER_CLIENT_SECRETrequiredClient secret for FHIR server authentication.FHIR_SERVER_SCOPESrequiredScopes for FHIR server authentication.FHIR_SERVER_DISABLE_AUTHORIZATIONSet to True to disable authorization.FHIR_MCP_HOSTHost for the MCP server.FHIR_MCP_PORTPort for the MCP server.MCP server that exposes GraphQL operations as tools for AI models.