Home / Data & analytics / Last EHR — Medplum
Last EHR — Medplum
io.github.cbetz/last-ehr · v0.5.6 stdio
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/mcpAssembled 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 variable | Required | Secret | Publisher's note |
|---|---|---|---|
MEDPLUM_ACCESS_TOKEN | No | Yes | 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 | No | No | 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 | No | Yes | 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 | No | No | 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 | No | No | epic, 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_ADAPTERS | No | No | Set to 1 to enable LASTEHR_BACKEND epic, oracle, or smart. |
LASTEHR_CLIENT_ID | No | No | SMART Backend Services client id. Not a secret. |
LASTEHR_PRIVATE_KEY | No | Yes | PKCS#8 PEM for SMART private_key_jwt. Never log it. |
LASTEHR_PRIVATE_KEY_PATH | No | No | Path to the PKCS#8 PEM. Alternative to LASTEHR_PRIVATE_KEY. |
LASTEHR_KEY_ID | No | No | JWT kid. Must match the public JWKS. |
LASTEHR_JWKS_URL | No | No | https URL of the public JWKS. doctor checks that LASTEHR_KEY_ID is present. Optional. |
LASTEHR_SCOPES | No | No | Space-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
| Part | Points | What we observed | Result |
|---|---|---|---|
| Maintenance | 39/40 | Last push 3d ago, 11 open issues | Strong |
| Security hygiene | 35/35 | Licence Apache-2.0, SECURITY.md present, published package or hosted endpoint | Strong |
| Adoption | 3/25 | 4 GitHub stars, 0 npm downloads a week | Weak |
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.
| GitHub stars | 4 |
| npm weekly downloads | 0 |
| Last push | 3d ago |
| Licence | Apache-2.0 |
| Open issues | 11 |
| SECURITY.md | Yes |
| Language | TypeScript |
| Latest version published | 2026-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.
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.
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).