Last EHR — Medplum
io.github.cbetz/last-ehr
v0.5.5Updated Nov 17, 2026stdio · npm
FHIR chart tools for MCP: read-only by default, with elicitation-gated, human-approved writes.
Install
Nothing to fill in: copy and run.
Run in your terminal
claude mcp add last-ehr -- npx -y @lastehr/[email protected]Configuration
16 settings.
MEDPLUM_ACCESS_TOKENEnv var· optional· secretFHIR chart tools over Medplum or a local HAPI stack: read-only by default, with an opt-in elicitation-gated write profile (human-approved per action).MEDPLUM_CLIENT_SECRETEnv var· optional· secretFHIR chart tools over Medplum or a local HAPI stack: read-only by default, with an opt-in elicitation-gated write profile (human-approved per action).LASTEHR_PRIVATE_KEYEnv var· optional· secretPKCS#8 PEM for SMART private_key_jwt. Never log it.MEDPLUM_CLIENT_IDEnv var· optionalFHIR chart tools over Medplum or a local HAPI stack: read-only by default, with an opt-in elicitation-gated write profile (human-approved per action).MEDPLUM_BASE_URLEnv var· optionalFHIR chart tools over Medplum or a local HAPI stack: read-only by default, with an opt-in elicitation-gated write profile (human-approved per action).LASTEHR_BACKENDEnv var· optionalepic, oracle, or smart. Requires LASTEHR_EXPERIMENTAL_FHIR_ADAPTERS=1. Sandbox writes are approval-gated and persist because those sandboxes do not support delete.
Show 10 moreShow fewer
LASTEHR_EXPERIMENTAL_FHIR_ADAPTERSEnv var· optionalSet to 1 to enable LASTEHR_BACKEND epic, oracle, or smart.LASTEHR_CLIENT_IDEnv var· optionalSMART Backend Services client id. Not a secret.LASTEHR_PRIVATE_KEY_PATHEnv var· optionalPath to the PKCS#8 PEM. Alternative to LASTEHR_PRIVATE_KEY.LASTEHR_KEY_IDEnv var· optionalJWT kid. Must match the public JWKS.LASTEHR_JWKS_URLEnv var· optionalhttps URL of the public JWKS. doctor checks that LASTEHR_KEY_ID is present. Optional.LASTEHR_SCOPESEnv var· optionalSpace-delimited SMART scopes. Required for Oracle. Omit for Epic unless overriding the app registration.LASTEHR_FHIR_BASE_URLEnv var· optionalFHIR base URL. Epic and Oracle default to their public sandboxes when unset.LASTEHR_TOKEN_URLEnv var· optionalSMART token URL. Epic and Oracle default to their public sandboxes when unset.LASTEHR_ENCOUNTEREnv var· optionalEncounter/{id} added to Epic observations when the tool call omits encounter.LASTEHR_PERFORMEREnv var· optionalPractitioner/{id} filed as legal authenticator on Oracle observations.
Links
Listed in the official MCP Registry since Nov 17, 2026. Mirrored daily; last checked Nov 26, 2026.