Last EHR — Medplum
FHIR chart tools for MCP: read-only by default, with elicitation-gated, human-approved writes.
Documentation & Preview
{ "mcpServers": { "mcp-last-ehr-101998550e1622fe6e4e": { "command": "npx", "args": [ "-y", "--package", "@lastehr/mcp@0.5.6", "lastehr-mcp" ], "env": { "MEDPLUM_ACCESS_TOKEN": "${ENV_MEDPLUM_ACCESS_TOKEN}", "MEDPLUM_CLIENT_ID": "${ENV_MEDPLUM_CLIENT_ID}", "MEDPLUM_CLIENT_SECRET": "${ENV_MEDPLUM_CLIENT_SECRET}", "MEDPLUM_BASE_URL": "${ENV_MEDPLUM_BASE_URL}", "LASTEHR_BACKEND": "${ENV_LASTEHR_BACKEND}", "LASTEHR_EXPERIMENTAL_FHIR_ADAPTERS": "${ENV_LASTEHR_EXPERIMENTAL_FHIR_ADAPTERS}", "LASTEHR_CLIENT_ID": "${ENV_LASTEHR_CLIENT_ID}", "LASTEHR_PRIVATE_KEY": "${ENV_LASTEHR_PRIVATE_KEY}", "LASTEHR_PRIVATE_KEY_PATH": "${ENV_LASTEHR_PRIVATE_KEY_PATH}", "LASTEHR_KEY_ID": "${ENV_LASTEHR_KEY_ID}", "LASTEHR_JWKS_URL": "${ENV_LASTEHR_JWKS_URL}", "LASTEHR_SCOPES": "${ENV_LASTEHR_SCOPES}", "LASTEHR_FHIR_BASE_URL": "${ENV_LASTEHR_FHIR_BASE_URL}", "LASTEHR_TOKEN_URL": "${ENV_LASTEHR_TOKEN_URL}", "LASTEHR_ENCOUNTER": "${ENV_LASTEHR_ENCOUNTER}", "LASTEHR_PERFORMER": "${ENV_LASTEHR_PERFORMER}" } } }, "setup": { "fields": [ { "id": "ENV_MEDPLUM_ACCESS_TOKEN", "label": "MEDPLUM_ACCESS_TOKEN", "description": "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).", "required": false, "secret": true, "default": "" }, { "id": "ENV_MEDPLUM_CLIENT_ID", "label": "MEDPLUM_CLIENT_ID", "description": "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).", "required": false, "secret": false, "default": "" }, { "id": "ENV_MEDPLUM_CLIENT_SECRET", "label": "MEDPLUM_CLIENT_SECRET", "description": "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).", "required": false, "secret": true, "default": "" }, { "id": "ENV_MEDPLUM_BASE_URL", "label": "MEDPLUM_BASE_URL", "description": "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).", "required": false, "secret": false, "default": "" }, { "id": "ENV_LASTEHR_BACKEND", "label": "LASTEHR_BACKEND", "description": "epic, oracle, or smart. Requires LASTEHR_EXPERIMENTAL_FHIR_ADAPTERS=1. Sandbox writes are approval-gated and persist because those sandboxes do not support delete.", "required": false, "secret": false, "default": "" }, { "id": "ENV_LASTEHR_EXPERIMENTAL_FHIR_ADAPTERS", "label": "LASTEHR_EXPERIMENTAL_FHIR_ADAPTERS", "description": "Set to 1 to enable LASTEHR_BACKEND epic, oracle, or smart.", "required": false, "secret": false, "default": "" }, { "id": "ENV_LASTEHR_CLIENT_ID", "label": "LASTEHR_CLIENT_ID", "description": "SMART Backend Services client id. Not a secret.", "required": false, "secret": false, "default": "" }, { "id": "ENV_LASTEHR_PRIVATE_KEY", "label": "LASTEHR_PRIVATE_KEY", "description": "PKCS#8 PEM for SMART private_key_jwt. Never log it.", "required": false, "secret": true, "default": "" }, { "id": "ENV_LASTEHR_PRIVATE_KEY_PATH", "label": "LASTEHR_PRIVATE_KEY_PATH", "description": "Path to the PKCS#8 PEM. Alternative to LASTEHR_PRIVATE_KEY.", "required": false, "secret": false, "default": "" }, { "id": "ENV_LASTEHR_KEY_ID", "label": "LASTEHR_KEY_ID", "description": "JWT kid. Must match the public JWKS.", "required": false, "secret": false, "default": "" }, { "id": "ENV_LASTEHR_JWKS_URL", "label": "LASTEHR_JWKS_URL", "description": "https URL of the public JWKS. doctor checks that LASTEHR_KEY_ID is present. Optional.", "required": false, "secret": false, "default": "" }, { "id": "ENV_LASTEHR_SCOPES", "label": "LASTEHR_SCOPES", "description": "Space-delimited SMART scopes. Required for Oracle. Omit for Epic unless overriding the app registration.", "required": false, "secret": false, "default": "" }, { "id": "ENV_LASTEHR_FHIR_BASE_URL", "label": "LASTEHR_FHIR_BASE_URL", "description": "FHIR base URL. Epic and Oracle default to their public sandboxes when unset.", "required": false, "secret": false, "default": "" }, { "id": "ENV_LASTEHR_TOKEN_URL", "label": "LASTEHR_TOKEN_URL", "description": "SMART token URL. Epic and Oracle default to their public sandboxes when unset.", "required": false, "secret": false, "default": "" }, { "id": "ENV_LASTEHR_ENCOUNTER", "label": "LASTEHR_ENCOUNTER", "description": "Encounter/{id} added to Epic observations when the tool call omits encounter.", "required": false, "secret": false, "default": "" }, { "id": "ENV_LASTEHR_PERFORMER", "label": "LASTEHR_PERFORMER", "description": "Practitioner/{id} filed as legal authenticator on Oracle observations.", "required": false, "secret": false, "default": "" } ], "requirements": [ "安装 Node.js / npm" ] }, "provenance": { "registryServer": "io.github.cbetz/last-ehr", "registryVersion": "0.5.6", "registryUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.cbetz%2Flast-ehr/versions/0.5.6", "repository": null, "sourceCommit": null, "namespaceRepositoryOwnerMatched": false, "officialRegistryNamespaceVerified": true, "package": { "registry": "npm", "identifier": "@lastehr/mcp", "version": "0.5.6", "integrity": "sha512-7rBWT2FgyKH1UijxM4zUhfxHi/Wtse0mdzNdEwOzd+WYVnOMsTmq8IvO0pTni8YClf+/TransyJOusOBXt6qbQ==", "registryNameMatched": "io.github.cbetz/last-ehr", "checkedAt": "2026-11-28T17:23:35.981Z" }, "scope": "Install configuration verified; dependency implementation and remote behavior have not been audited" } }