Skip to main content

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_TOKEN
    Env var· optional· secret
    FHIR 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_SECRET
    Env var· optional· secret
    FHIR 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_KEY
    Env var· optional· secret
    PKCS#8 PEM for SMART private_key_jwt. Never log it.
  • MEDPLUM_CLIENT_ID
    Env var· optional
    FHIR 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_URL
    Env var· optional
    FHIR 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_BACKEND
    Env var· optional
    epic, 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 more
  • LASTEHR_EXPERIMENTAL_FHIR_ADAPTERS
    Env var· optional
    Set to 1 to enable LASTEHR_BACKEND epic, oracle, or smart.
  • LASTEHR_CLIENT_ID
    Env var· optional
    SMART Backend Services client id. Not a secret.
  • LASTEHR_PRIVATE_KEY_PATH
    Env var· optional
    Path to the PKCS#8 PEM. Alternative to LASTEHR_PRIVATE_KEY.
  • LASTEHR_KEY_ID
    Env var· optional
    JWT kid. Must match the public JWKS.
  • LASTEHR_JWKS_URL
    Env var· optional
    https URL of the public JWKS. doctor checks that LASTEHR_KEY_ID is present. Optional.
  • LASTEHR_SCOPES
    Env var· optional
    Space-delimited SMART scopes. Required for Oracle. Omit for Epic unless overriding the app registration.
  • LASTEHR_FHIR_BASE_URL
    Env var· optional
    FHIR base URL. Epic and Oracle default to their public sandboxes when unset.
  • LASTEHR_TOKEN_URL
    Env var· optional
    SMART token URL. Epic and Oracle default to their public sandboxes when unset.
  • LASTEHR_ENCOUNTER
    Env var· optional
    Encounter/{id} added to Epic observations when the tool call omits encounter.
  • LASTEHR_PERFORMER
    Env var· optional
    Practitioner/{id} filed as legal authenticator on Oracle observations.

Listed in the official MCP Registry since Nov 17, 2026. Mirrored daily; last checked Nov 26, 2026.