Skip to main content
Glama

FHIR MCP Server

by sumithasb

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
FHIR_MCP_HOSTNoThe hostname or IP address the MCP server should bind to (e.g., localhost for local-only access, or 0.0.0.0 for all interfaces).localhost
FHIR_MCP_PORTNoThe port on which the MCP server will listen for incoming client requests (e.g., 8000).8000
FHIR_SERVER_SCOPESNoA space-separated list of OAuth2 scopes to request from the FHIR authorization server (e.g., user/Patient.read user/Observation.read). Add fhirUser openid to enable retrieval of user context for the get_user tool.
FHIR_MCP_SERVER_URLNoIf set, this value will be used as the server's base URL instead of generating it from host and port. Useful for custom URL configurations or when behind a proxy.
FHIR_SERVER_BASE_URLNoThe base URL of the FHIR server (e.g., https://hapi.fhir.org/baseR4). This is used to generate tool URIs and to route FHIR requests.
FHIR_SERVER_CLIENT_IDNoThe OAuth2 client ID used to authorize MCP clients with the FHIR server.
FHIR_MCP_REQUEST_TIMEOUTNoTimeout duration in seconds for requests from the MCP server to the FHIR server.30
FHIR_SERVER_ACCESS_TOKENNoThe access token to use for authenticating requests to the FHIR server. If this variable is set, the server will bypass the OAuth2 authorization flow and use this token directly for all requests.
FHIR_SERVER_CLIENT_SECRETNoThe client secret corresponding to the FHIR client ID. Used during token exchange.

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sumithasb/fhir_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server