๐Ÿš€ New Open Source Tool for openEHR: openEHR-CLI

Weโ€™ve just released openEHR-CLI, a new open source command-line tool designed to make working with openEHR artifacts easier for developers, architects, and implementers.

:wrench: What is it?
openEHR-CLI provides a simple command-line interface to work with openEHR models and artifacts. It helps automate common tasks when dealing with archetypes, templates, and other openEHR resources, making it easier to integrate these operations into scripts, pipelines, and development workflows.

:toolbox: Typical use cases

  • Validate openEHR templates and artifacts

  • Inspect and process openEHR models from the terminal

  • Automate checks and workflows in CI/CD pipelines

  • Integrate openEHR tooling into development scripts

:robot: Built-in MCP Server for AI integrations

One of the most interesting features is that openEHR-CLI includes an MCP (Model Context Protocol) server.

This allows the CLI tools to be exposed as AI-accessible tools, meaning AI assistants and developer tools that support MCP can interact directly with openEHR artifacts.

In practice, this means tools like Claude Desktop, Cursor, LibreChat, and other MCP-compatible clients can use openEHR-CLI capabilities programmatically through AI workflows.

This opens the door to new possibilities such as:

  • AI assistants exploring openEHR archetypes and specifications

  • Automating model discovery and inspection

  • Building AI workflows around openEHR modeling and development

:laptop: Try it out

GitHub: GitHub - CaboLabs/openEHR-CLI: CLI to facilitate working with openEHR artifacts ยท GitHub

Feedback, issues, and contributions from the community are very welcome!

I have tested the MCP in Claude Code, and it seems to understand the CLI commands. Though for simple things I would just use the CLI directly.

Small video showing how to download, build and run the openEHR-CLI: