Last EHR — Medplum for LangChain
io.github.cbetz/last-ehr
FHIR chart tools for MCP: read-only by default, with elicitation-gated, human-approved writes.
client:LangChain
transport:stdio
runtime:npm
Install Last EHR — Medplum in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"last-ehr": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "@lastehr/mcp"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs