Last EHR — Medplum
FHIR chart tools for MCP: read-only by default, with elicitation-gated, human-approved writes.
Open the source (opens github.com) https://github.com/cbetz/last-ehr
Before you use it
- Runs on your computer with your permissions. Read what it can do before connecting it to an agent.
- Needs credentials: LASTEHR_PRIVATE_KEY, MEDPLUM_ACCESS_TOKEN, MEDPLUM_CLIENT_SECRET. Use a key with the least access you can.
What it is
MCP servers from io.github.cbetz.
The problem it solves and who it suits haven't been reviewed by InnerVault. The description above is the source's own.
How to get it
npm package (stdio)
@lastehr/mcp@0.5.4
From the server's entry in the official MCP Registry
Settings it asks for
MEDPLUM_ACCESS_TOKENsecret · 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_ID· 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_SECRETsecret · 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· 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· epic, oracle, or smart. Requires LASTEHR_EXPERIMENTAL_FHIR_ADAPTERS=1. Sandbox writes are approval-gated and persist because those sandboxes do not support…LASTEHR_EXPERIMENTAL_FHIR_ADAPTERS· Set to 1 to enable LASTEHR_BACKEND epic, oracle, or smart.LASTEHR_CLIENT_ID· SMART Backend Services client id. Not a secret.LASTEHR_PRIVATE_KEYsecret · PKCS#8 PEM for SMART private_key_jwt. Never log it.LASTEHR_PRIVATE_KEY_PATH· Path to the PKCS#8 PEM. Alternative to LASTEHR_PRIVATE_KEY.LASTEHR_KEY_ID· JWT kid. Must match the public JWKS.LASTEHR_JWKS_URL· https URL of the public JWKS. doctor checks that LASTEHR_KEY_ID is present. Optional.LASTEHR_SCOPES· Space-delimited SMART scopes. Required for Oracle. Omit for Epic unless overriding the app registration.
Related
-
mcp
MCP serversSecurely access and manage FHIR healthcare data stored in Medplum.
-
Eureka EHR
MCP serversThe Eureka EHR as MCP tools: patients, schedule, notes, messages, billing, and orders.
-
ehr-migration-checklist
MCP serversEHR-migration data-integrity checklist: silent data-loss modes anchored to HL7/FHIR, USCDI, HIPAA.
-
neuro-mcp
MCP serversMCP for NeuroAgents assisting clinicians: MNE processing, EHR store, NeuroII visualization.
neuro-mcp@0.1.4 -
Last.fm MCP
MCP serversUnofficial, read-only access to your Last.fm listening history, charts, and music lookups.
-
FinchNode Health Records
MCP serversRead patient-authorized EHR records: medications, labs, conditions, allergies. Consent-bounded.