Home / Data & analytics / Last EHR — Medplum

Last EHR — Medplum

io.github.cbetz/last-ehr · v0.5.6 stdio

Score 78. Maintenance 39 of 40, security 35 of 35, adoption 3 of 25.

FHIR chart tools for MCP: read-only by default, with elicitation-gated, human-approved writes.

Description supplied by the publisher in the MCP Registry. We have not tested this server.

Ranks #123 of 436 Data & analytics servers on Socketlist by score, with 4 GitHub stars and a last code push 3d ago.

Install

npx -y @lastehr/mcp

Assembled from the package metadata in the official MCP Registry (including any subcommand or flag the publisher lists). Some publishers do not list the subcommand that starts MCP mode, so confirm the command in the README, along with any required configuration and credentials, before connecting it to real data.

Connect Last EHR — Medplum to Claude Code, Cursor or VS Code

Built from what the publisher declared in the official MCP Registry (the launch command above). We have not run this server. Replace anything in <angle brackets>, and keep keys and tokens in your environment, not in a shared file.

Claude Code

Run in a terminal. Adds the server at local scope; add --scope project or --scope user to share it. Secret variables the publisher declares are included; drop any the README says are optional. Claude Code setup guide.

claude mcp add --env MEDPLUM_ACCESS_TOKEN=<medplum_access_token> --env MEDPLUM_CLIENT_SECRET=<medplum_client_secret> --env LASTEHR_PRIVATE_KEY=<lastehr_private_key> --transport stdio last-ehr-medplum -- npx -y @lastehr/mcp

.mcp.json (Claude Code project scope, VS Code with Copilot)

Put this in a .mcp.json file at the project root. ${NAME} reads the value from your environment, so no secret is written to the file. VS Code and .mcp.json guide.

{
  "mcpServers": {
    "last-ehr-medplum": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@lastehr/mcp"
      ],
      "env": {
        "MEDPLUM_ACCESS_TOKEN": "${MEDPLUM_ACCESS_TOKEN}",
        "MEDPLUM_CLIENT_SECRET": "${MEDPLUM_CLIENT_SECRET}",
        "LASTEHR_PRIVATE_KEY": "${LASTEHR_PRIVATE_KEY}"
      }
    }
  }
}

Cursor

Put this in .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor mcp.json guide.

{
  "mcpServers": {
    "last-ehr-medplum": {
      "command": "npx",
      "args": [
        "-y",
        "@lastehr/mcp"
      ],
      "env": {
        "MEDPLUM_ACCESS_TOKEN": "${env:MEDPLUM_ACCESS_TOKEN}",
        "MEDPLUM_CLIENT_SECRET": "${env:MEDPLUM_CLIENT_SECRET}",
        "LASTEHR_PRIVATE_KEY": "${env:LASTEHR_PRIVATE_KEY}"
      }
    }
  }
}

Configuration the publisher declares

Environment variableRequiredSecretPublisher's note
MEDPLUM_ACCESS_TOKENNoYesFHIR 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_IDNoNoFHIR 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_SECRETNoYesFHIR 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_URLNoNoFHIR 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_BACKENDNoNoepic, oracle, or smart. Requires LASTEHR_EXPERIMENTAL_FHIR_ADAPTERS=1. Sandbox writes are approval-gated and persist because those sandboxes do not support delete.
LASTEHR_EXPERIMENTAL_FHIR_ADAPTERSNoNoSet to 1 to enable LASTEHR_BACKEND epic, oracle, or smart.
LASTEHR_CLIENT_IDNoNoSMART Backend Services client id. Not a secret.
LASTEHR_PRIVATE_KEYNoYesPKCS#8 PEM for SMART private_key_jwt. Never log it.
LASTEHR_PRIVATE_KEY_PATHNoNoPath to the PKCS#8 PEM. Alternative to LASTEHR_PRIVATE_KEY.
LASTEHR_KEY_IDNoNoJWT kid. Must match the public JWKS.
LASTEHR_JWKS_URLNoNohttps URL of the public JWKS. doctor checks that LASTEHR_KEY_ID is present. Optional.
LASTEHR_SCOPESNoNoSpace-delimited SMART scopes. Required for Oracle. Omit for Epic unless overriding the app registration.

4 more are listed in the registry entry; see the README for the full set.

"Required" and "secret" are the publisher's own flags in the registry, and many publishers leave them unset, so check the README too.

Allowlist entry

If your organisation restricts MCP servers, this is the entry an admin adds to allowedMcpServers in Claude Code managed settings or a GitHub Copilot enterprise managed-settings.json. A serverCommand entry must match the configured command and arguments exactly, so change both together.

{
  "allowedMcpServers": [
    {
      "serverCommand": [
        "npx",
        "-y",
        "@lastehr/mcp"
      ]
    }
  ]
}

How allowlists work in each client: MCP server allowlists for Claude Code, GitHub Copilot and Cursor. Before you connect it to real data: 10 security checks for MCP servers.

Score breakdown

PartPointsWhat we observedResult
Maintenance39/40Last push 3d ago, 11 open issuesStrong
Security hygiene35/35Licence Apache-2.0, SECURITY.md present, published package or hosted endpointStrong
Adoption3/254 GitHub stars, 0 npm downloads a weekWeak

Result: Strong is 80% or more of the part's points, Fair 50% or more. Automated signals, not a security audit. How we score.

Maintain this server? Claim or correct this listing, or get featured in Data & analytics. Paid placements are labelled and never change the score.

Five scored MCP servers, every Monday

The Plug Weekly is a free email picked from these scores, with a short Best of MCP servers PDF when you join. About a 3-minute read. Unsubscribe any time.

Get The Plug Weekly
GitHub stars4
npm weekly downloads0
Last push3d ago
LicenceApache-2.0
Open issues11
SECURITY.mdYes
LanguageTypeScript
Latest version published2026-11-28

Signals captured from GitHub, npm and the official MCP Registry on December 1, 2026. See the scoring method.

Similar servers

samarth-gtm-mcp

Score 83. Maintenance 39 of 40, security 35 of 35, adoption 9 of 25.

io.github.samarthanalytics-sj/samarth-gtm-mcp

Google Tag Manager + read-only GA4 MCP server. Read-only by default, gated writes, audits.

★ 4↓ 122/wkMITpushed 6d ago Data & analytics

DataCharter

Score 77. Maintenance 35 of 40, security 35 of 35, adoption 6 of 25.

io.github.datacharter/datacharter

Local-first, contract-governed data explorer with read-only, PII-masked query tools for AI agents.

★ 17Apache-2.0pushed 27d ago Data & analytics

JP Bids

Score 82. Maintenance 40 of 40, security 35 of 35, adoption 7 of 25.

io.github.sugukurukabe/jp-bids

Read-only MCP for Japan's KKJ public procurement notices (free, 7 tools, MCP Apps UI).

★ 2↓ 84/wkApache-2.0pushed 1d ago RemoteData & analytics