Smart EHR MCP Server

by jmandel
Verified

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SERVER_PORTNoThe port on which the server will listen3000
EHR_AUTH_URLNoThe OAuth authorize URL for the EHR (will be auto-discovered if possible)
EHR_CLIENT_IDYesYour SMART on FHIR client ID (obtained from your EHR developer portal)
EHR_TOKEN_URLNoThe OAuth token URL for the EHR (will be auto-discovered if possible)
SERVER_BASE_URLNoThe base URL where the server is accessible (defaults to http://localhost:[PORT])
EHR_FHIR_BASE_URLYesThe base URL for the FHIR API of the EHR you want to connect to
EHR_REQUIRED_SCOPESNoComma-separated list of OAuth scopes to request (will use defaults if omitted)
PERSISTENCE_ENABLEDNoEnable session persistencefalse
SERVER_HTTPS_ENABLEDNoEnable HTTPS for the serverfalse
PERSISTENCE_DIRECTORYNoDirectory to store persistent data./data
SERVER_HTTPS_KEY_PATHNoPath to the HTTPS key file
SERVER_HTTPS_CERT_PATHNoPath to the HTTPS certificate file
SERVER_EHR_CALLBACK_PATHNoThe path for EHR OAuth callbacks/ehr-callback
SECURITY_DISABLE_CLIENT_CHECKSNoDisable security checks for clients (not recommended for production)false

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

ID: fpxg7o4xk3