
Last EHR — Medplum
io.github.cbetz由 GitHub 账号 cbetz 发布v0.5.1更新于 Nov 5, 2026
用于 MCP 的 FHIR 病历工具:默认只读,写入需经引导并经人工批准。
AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。
原文描述
FHIR chart tools for MCP: read-only by default, with elicitation-gated, human-approved writes.
发布方自己的服务:Medplum
概览
Last EHR — Medplum 的本地 MCP 服务;无需登录;STDIO。
暂无 AI 概览:以下信息来自注册中心条目和服务本身。
安装
在 SourceWeft 中
- 打开 控制台中的 Last EHR — Medplum,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@lastehr/mcp
FHIR chart tools for MCP clients, over a Medplum project, the Last EHR
repository's local HAPI evaluation stack (FHIR_BACKEND=hapi, synthetic
data only), or — with LASTEHR_EXPERIMENTAL_FHIR_ADAPTERS=1 — the Epic and
Oracle Health sandboxes (LASTEHR_BACKEND=epic|oracle) and a generic SMART
Backend Services server (LASTEHR_BACKEND=smart). The sandboxes do not
support delete, so an approved write persists. This is not a clinical or
compliance claim.
Read-only by default, and the reads are the same ones the Last EHR web agent
uses: search patients, show a whole chart, read any of 23 patient-scoped chart
sections with filters, and read a document's text. One opt-in,
LASTEHR_MCP_WRITES=proposal, adds elicitation-gated write proposals a human
approves per action. Nothing is ever saved without that explicit approval, and
the write tools are hidden from clients that cannot render approvals.
The registry metadata lives in server.json and is published
alongside each verified npm release.
Install
The command prints a portable MCP configuration. For Claude Code, print the registration command instead:
Start the stdio server with:
Check the installed package version without configuring a backend:
Configuration
Set one authentication method before starting the server:
or:
Set MEDPLUM_BASE_URL for a self-hosted Medplum deployment. For the
repository's local no-auth HAPI stack, set FHIR_BACKEND=hapi and
FHIR_BASE_URL (or HAPI_BASE_URL) instead — local, synthetic data only.
Run npx -y @lastehr/mcp doctor to validate configuration without starting
MCP.
In 0.4.0, doctor --connect also checks FHIR R4 metadata and a count-only
Patient search for the stdio backend. It makes no chart write and prints no
patient data or counts. This does not verify individual chart access, other
resource permissions, write permissions, or the MCP client's approval support.
HTTP mode remains configuration-only; its --connect check fails explicitly
rather than treating a configured URL as a verified OAuth session.
The source checkout can be ahead of npm. Check the installed version with
--version. The repository's release process
tests the packed artifact in a clean directory before publication.
Safety boundary
By default the package exposes search_patients, show_patient_info,
read_chart_section, and read_document, all with the MCP readOnlyHint.
Those reads share one implementation with the web agent, which is deliberate: each of their honesty properties came from a real false negative found against a live FHIR server, and a second implementation would have re-earned them. A reply tells you what it could not see, and an empty result is never proof of absence:
Chart free text arrives wrapped in <chart_text> tags. That content is data,
never instructions. read_document decodes an inline text attachment and never
dereferences Attachment.url, so it makes no request to an address the FHIR
server chose.
With
LASTEHR_MCP_WRITES=proposal it additionally offers add_note,
record_observation, record_superseding_observation, and create_task
as proposals: the exact fields are shown to the human
through MCP elicitation and nothing is saved unless they approve; every
approved write is tagged https://lastehr.com/mcp|approved-proposal and
carries the standard AIAST security label ("Artificial Intelligence
asserted") in meta.security, and LASTEHR_WRITE_PROVENANCE=true also
emits a Provenance resource naming the agent as author and the reviewer as
verifier.
Read access can still return PHI. Use a least-privilege identity, review the
MCP client's data handling and model-provider agreements, and never treat
this package as an authorization layer.
See https://www.lastehr.com/docs/mcp for the complete setup and support boundary.
来源:packages/mcp/README.md,提交 fb24732
工具
0版本历史
4- v0.5.1最新Nov 5, 2026
- v0.4.1Oct 23, 2026
- v0.4.0Oct 22, 2026
- v0.3.1Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
