PluginBench
MCP Server
Active
Apache-2.0

Last EHR — Medplum MCP Server

io.github.cbetz/last-ehr

What is the Last EHR — Medplum MCP server?

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

How to install Last EHR — Medplum

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • MEDPLUM_ACCESS_TOKEN
    secret

    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

    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
    secret

    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

    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).

Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "last-ehr": {
      "command": "npx",
      "args": [
        "-y",
        "@lastehr/mcp"
      ],
      "env": {
        "MEDPLUM_ACCESS_TOKEN": "<YOUR_MEDPLUM_ACCESS_TOKEN>",
        "MEDPLUM_CLIENT_ID": "<YOUR_MEDPLUM_CLIENT_ID>",
        "MEDPLUM_CLIENT_SECRET": "<YOUR_MEDPLUM_CLIENT_SECRET>",
        "MEDPLUM_BASE_URL": "<YOUR_MEDPLUM_BASE_URL>"
      }
    }
  }
}
Cursor
~/.cursor/mcp.json
{
  "mcpServers": {
    "last-ehr": {
      "command": "npx",
      "args": [
        "-y",
        "@lastehr/mcp"
      ],
      "env": {
        "MEDPLUM_ACCESS_TOKEN": "<YOUR_MEDPLUM_ACCESS_TOKEN>",
        "MEDPLUM_CLIENT_ID": "<YOUR_MEDPLUM_CLIENT_ID>",
        "MEDPLUM_CLIENT_SECRET": "<YOUR_MEDPLUM_CLIENT_SECRET>",
        "MEDPLUM_BASE_URL": "<YOUR_MEDPLUM_BASE_URL>"
      }
    }
  }
}
Windsurf
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "last-ehr": {
      "command": "npx",
      "args": [
        "-y",
        "@lastehr/mcp"
      ],
      "env": {
        "MEDPLUM_ACCESS_TOKEN": "<YOUR_MEDPLUM_ACCESS_TOKEN>",
        "MEDPLUM_CLIENT_ID": "<YOUR_MEDPLUM_CLIENT_ID>",
        "MEDPLUM_CLIENT_SECRET": "<YOUR_MEDPLUM_CLIENT_SECRET>",
        "MEDPLUM_BASE_URL": "<YOUR_MEDPLUM_BASE_URL>"
      }
    }
  }
}
VS Code
.vscode/mcp.json
{
  "servers": {
    "last-ehr": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@lastehr/mcp"
      ],
      "env": {
        "MEDPLUM_ACCESS_TOKEN": "<YOUR_MEDPLUM_ACCESS_TOKEN>",
        "MEDPLUM_CLIENT_ID": "<YOUR_MEDPLUM_CLIENT_ID>",
        "MEDPLUM_CLIENT_SECRET": "<YOUR_MEDPLUM_CLIENT_SECRET>",
        "MEDPLUM_BASE_URL": "<YOUR_MEDPLUM_BASE_URL>"
      }
    }
  }
}
Claude Code
claude mcp add last-ehr --env MEDPLUM_ACCESS_TOKEN=<YOUR_MEDPLUM_ACCESS_TOKEN> --env MEDPLUM_CLIENT_ID=<YOUR_MEDPLUM_CLIENT_ID> --env MEDPLUM_CLIENT_SECRET=<YOUR_MEDPLUM_CLIENT_SECRET> --env MEDPLUM_BASE_URL=<YOUR_MEDPLUM_BASE_URL> -- npx -y @lastehr/mcp

Related MCP servers

Open MCP server for US electricity tariffs: real rate lookup, bill estimates, and when to charge.

1
Python
Apache-2.0
View repository →