# openEHR MCP Server An MCP (Model Context Protocol) server designed to interface with openEHR REST APIs, specifically the EHRbase implementation.
Everything the assistant can do here goes through one of these:
openehr_template_list — List all available openEHR templates from the EHRbase serveropenehr_template_get — Retrieve a specific openEHR template by its unique identifieropenehr_template_example_composition — Generate an example openEHR composition based on a specific templateopenehr_ehr_create — Create a new EHR in the systemopenehr_ehr_get — Retrieve an EHR by its IDopenehr_ehr_list — List all available EHRs in the systemopenehr_ehr_get_by_subject — Get an EHR by subject ID and namespaceopenehr_composition_create — Create a new openEHR composition in the Electronic Health Recordopenehr_composition_get — Retrieve an existing openEHR composition by its unique identifieropenehr_composition_update — Update an existing openEHR composition in the Electronic Health Recordopenehr_composition_delete — Delete an existing openEHR composition from the Electronic Health Recordopenehr_query_adhoc — Execute an ad-hoc AQL query against the openEHR serverSetup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.
You will need one environment variable: EHRBASE_URL. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Plenty of cloud and infrastructure servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. OpenEHR's toolset — openehr_template_list, openehr_template_get, openehr_template_example_composition and 10 more — is a fair guide to whether it matches your workflow. It is maintained by deak-ai; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| openehr_template_list | List all available openEHR templates from the EHRbase server |
| openehr_template_get | Retrieve a specific openEHR template by its unique identifier |
| openehr_template_example_composition | Generate an example openEHR composition based on a specific template |
| openehr_ehr_create | Create a new EHR in the system |
| openehr_ehr_get | Retrieve an EHR by its ID |
| openehr_ehr_list | List all available EHRs in the system |
| openehr_ehr_get_by_subject | Get an EHR by subject ID and namespace |
| openehr_composition_create | Create a new openEHR composition in the Electronic Health Record |
| openehr_composition_get | Retrieve an existing openEHR composition by its unique identifier |
| openehr_composition_update | Update an existing openEHR composition in the Electronic Health Record |
| openehr_composition_delete | Delete an existing openEHR composition from the Electronic Health Record |
| openehr_query_adhoc | Execute an ad-hoc AQL query against the openEHR server |
| Prerequisites | The Prerequisites tool exposed by this server. |
{
"mcpServers": {
"openEHR": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--network=host",
"-e","EHRBASE_URL=http://localhost:8080/ehrbase/rest",
"-e","EHRBASE_JSON_FORMAT=wt_flat",
"ctodeakai/openehr-mcp-server:latest"
]
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| EHRBASE_URL | Endpoint or connection string the server talks to. | Yes |
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
Stop letting your assistant hallucinate n8n node parameters — this server hands it the real schemas, templates and validation.
AWS Labs' official server suite — current AWS docs, CDK guidance, cost analysis and service tools.
Cloud browsers for AI agents — automation sessions that run in Browserbase's fleet, not on your machine.
Workers, KV, R2 and D1 by conversation — Cloudflare's official remote servers for building and observability.
Dashboards, Prometheus and Loki queries, incidents and alerts — observability by conversation.