An openEHR Model Context Protocol (MCP) Server implemented in PHP
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"openehr-server-mcp": {
"url": "http://localhost:8342/",
"type": "streamable-http"
},
"openehr-server-mcp-stdio": {
"args": [
"run",
"-i",
"--rm",
"--network=host",
"-e",
"OPENEHR_API_BASE_URL=http://localhost:8080/ehrbase/rest/openehr",
"cadasto/openehr-server-mcp:latest",
"php",
"public/index.php",
"--transport=stdio"
],
"command": "docker"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
The MCP server that connects AI assistants and agents to openEHR REST APIs.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
vital_sign_captureCapture vital signs: fetch a flat JSON example for a chosen template, populate values (use UCUM units), then create a COMPOSITION.
patient_assessmentGeneral clinical assessment: pick a template, optionally fetch an example, then record observations as a COMPOSITION.
medication_reviewReview or update medication lists: select a template, optionally fetch an example, then submit medication changes as a COMPOSITION.
composition_createCreate a new COMPOSITION; template/type inferred from conversation (generic workflow, like vital_signs/medication but template-agnostic).
composition_managementGet, update, delete COMPOSITIONs and view revision history (use composition_create for creating).
aql_query_runnerRun AQL queries: ad hoc (supply AQL content) or stored (supply query name/version and parameters); same workflow, different inputs.
template_managementManage template definitions (list/get/upload) and fetch example compositions.
query_managementManage stored query definitions (list/get/upload), aligned with template_management.
ehr_createCreate a new EHR for a subject (or without subject) when one does not exist yet.
ehr_searchFind or retrieve an EHR by ehr_id or by subject id and namespace.
ehr_managementInspect EHR status and manage contributions (create/get); use ehr_create or ehr_search to create or find an EHR first.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in health
MCP server providing seamless access to FHIR APIs for AI tools and healthcare applications
MCP server for the ClinicalTrials.gov v2 API. Search trials, retrieve study details and results, and match patients to eligible trials.
Manage your Hevy workouts, routines, folders, and exercise templates. Create and update sessions faster, organize plans, and search exercises to build workouts quickly. Stay synced with changes so your training log is always up to date.
MCP server for Oura Ring API v2 (sleep, activity, readiness, heart rate, workouts).
MCP Security Weekly
Get CVE alerts and security updates for Openehr Server Mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
The MCP server that connects AI assistants and agents to openEHR REST APIs.
The Model Context Protocol (MCP) is an open standard that enables AI agents to connect to external data sources and tools in a secure and standardized way. MCP servers act as bridges between AI clients (like Claude Desktop, Cursor, or LibreChat) and domain-specific APIs and data stores.
The openEHR MCP Server exposes tools for openEHR Templates, EHR, Compositions, stored queries, and AQL execution, following the openEHR REST specification. It is designed to work alongside the openEHR Assistant MCP Server: use the Assistant for modelling, archetypes, and CKM; use this server for EHR and composition operations against an openEHR REST endpoint.
NOTE: For production-grade EHR integrations, ensure your AI model and deployment meet your organization's data privacy and compliance requirements.
WARNING: OAuth2 authorization flows are not supported yet. This server is for now intended for development and testing purposes only.
.docker/)Template Definition
template_list - List templates (path segment e.g. adl1.4 or adl2). Optional keyword search and maxResults; when keyword is set, results are scored and sorted by relevance.template_get - Get a template by ID (format: e.g. opt, json, xml)template_upload - Upload a template (format: e.g. opt, json, xml)template_example_get - Get an example composition for a template (format: flat, json, xml, canonical, structured)Stored Query Definition
stored_query_upload - Upload a stored AQL query (optional version)stored_query_list - List stored queries (name filter supports namespace::name). Optional keyword search and maxResults; when keyword is set, results are scored and sorted by relevance.stored_query_get - Get a stored query definition by name and versionQuery Execution
query_adhoc - Execute AQL (supports offset/fetch)stored_query_execute - Execute stored AQL by name/version with parametersEHR Management
ehr_create - Create an EHR (optional subject id/namespace)ehr_get - Get EHR by ehr_id or by subject id/namespace (use this instead of the removed ehr_get_by_subject)ehr_status_get - Get EHR_STATUS for an EHRehr_contribution_create - Create a Contribution for an EHRehr_contribution_get - Get a Contribu