openEHR MCP Server

openEHR MCP Server

openehr-mcp-server•bydeak-ai

An MCP server that interfaces with openEHR REST APIs, specifically the EHRbase implementation, letting MCP clients create compositions for openEHR templates and submit them to a server.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Lists, retrieves, and generates example compositions from openEHR templates on the EHRbase server.
  • •Creates, retrieves, and lists EHRs, including lookup by subject ID and namespace.
  • •Creates, retrieves, updates, and deletes openEHR compositions in the Electronic Health Record.
  • •Executes ad-hoc AQL queries against the openEHR server.

BEST FOR

  • •Using MCP clients such as Claude Desktop to create and submit openEHR compositions from templates to an EHRbase server.
  • •Capturing vital signs for a specific EHR ID through an MCP prompt.
  • •Running ad-hoc AQL queries against an openEHR EHRbase server from an MCP client.

ABOUT OPENEHR-MCP-SERVER

openEHR MCP Server is cataloged as an MCP server attributed to deak-ai. An MCP server that interfaces with openEHR REST APIs, specifically the EHRbase implementation, letting MCP clients create compositions for openEHR templates and submit them to a server. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for openEHR MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the server implement an MCP resource?

No; the README states the MCP resource is not yet implemented.

How can the JSON serialization format be configured?

An optional EHRBASE_JSON_FORMAT environment variable selects the JSON format, with options wt_flat (default), canonical, and wt_structured.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 8ead786f9486 · 采集于 2026-11-13 09:56:30 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

openEHR MCP Server

An MCP (Model Context Protocol) server designed to interface with openEHR REST APIs, specifically the EHRbase implementation. This server enables MCP clients like Claude Desktop to create compositions for openEHR templates and submit them to a server. For production grade EHR integrations you must use an AI Model where you can ensure data privacy.

See https://modelcontextprotocol.io/introduction for more information about MCP.

Version

Current version: 0.1.0

This project follows semantic versioning. For details on our versioning strategy, see VERSIONING.md.

MCP Tools

  • 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

MCP Prompts

  • vital_signs_capture: Capture vital signs for a specific EHR ID

MCP Resource

Not yet implemented

Quick Start with Docker

The easiest way to get started is to use the pre-built Docker image available on Docker Hub.

1. Prerequisites

Ensure you have a running EHRbase server. For running one locally, see below.

2. Configure Claude Desktop

Edit your Claude Desktop configuration file (claude_desktop_config.json) and add an "openEHR" configuration block inside the "mcpServers" section.

This file can usually be found in the following locations:

  • On macOS: ~/Library/Application Support/Claude
  • On Windows: %APPDATA%\Claude
{
  "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"
      ]
    }
  }
}

You can point EHRBASE_URL to your own EHRbase server or use the provided docker-compose setup.

JSON Format Configuration

The MCP server supports different JSON serialization formats for interacting with the EHRbase API. You can configure the format using the optional EHRBASE_JSON_FORMAT environment variable:

"-e", "EHRBASE_JSON_FORMAT=wt_flat"

Available format options:

  • wt_flat (default): Use the simplified data types (SDT) based on the flat web template format
  • canonical: Uses the canonical openEHR JSON format consistently across all operations
  • wt_structured: SDT based on the structured web template format (currently not working)

For more information on how to set up Claude Desktop with MCP servers, see https://modelcontextprotocol.io/quickstart/user.

Setup

Prerequisities

For this MCP server to work, you currently require

Local EHRBase Setup

Prerequisites

  • A working Docker installation
  • Python 3 (this project was built with python 3.12, earlier versions might work)
  • A Python virtual environment (pip, conda or uv)
  • Install the required dependencies in your Python environment:
    pip install -r requirements.txt
    

Running the EHRbase Server

  1. Navigate to the docker-compose directory:

    cd docker-compose
    
  2. Start the EHRbase server in detached mode:

    docker compose up -d
    
  3. Check the logs to verify the server is running properly:

    docker compose logs -f
    
  4. The EHRbase server will be available at http://localhost:8080/ehrbase/

  5. The EHRBase API documentation should be here: http://localhost:8080/ehrbase/swagger-ui/index.html

Uploading the Vital Signs Template

After setting up the EHRbase server and your Python environment, you can upload the vital signs template:

python scripts/upload_template.py

You can also specify a custom template or EHRbase URL:

python scripts/upload_template.py --template path/to/template.opt --ehrbase-url http://custom-url:8080/ehrbase/rest

You should see output confirming the successful upload of the template to the EHRbase server.

Creating an EHR

After uploading the template, you need to create an Electronic Health Record (EHR) to store compositions:

python scripts/create_ehr.py

This will create an EHR with a randomly generated subject ID. You can also specify a custom subject ID:

python scripts/create_ehr.py --subject-id "patient_12345"

The script will output the EHR ID, which you'll need when creating compositions or using the MCP server.

Running the Integration Tests

To run the tests, you'll need to install the test dependencies first:

pip install -r requirements-test.txt

After installing the test dependencies and uploading the template, you can run the tests with:

python -m pytest tests/test_*.py -v

This will run all the tests in the tests directory.

Running the openEHR MCP server with Docker

Building the Docker Image

Build the Docker image from the project root:

docker build -t openehr-mcp-server .

Running the Docker Container

docker run -i --rm --network=host openehr-mcp-server

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for openEHR MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/openehr-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools