HM Editor

v1.0.0Developer Toolsstable

一款轻量级、可扩展的、跨平台的、专为医疗信息化设计的电子病历编辑器内核,为EMR(电子病历系统)提供专业的结构化病历编辑与AI接入解决方案。

aiai-agentsai-assistantckeditor4contenteditable
Share:
93
Stars
0
Downloads
0
Weekly
0/5

What is HM Editor?

HM Editor is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 一款轻量级、可扩展的、跨平台的、专为医疗信息化设计的电子病历编辑器内核,为emr(电子病历系统)提供专业的结构化病历编辑与ai接入解决方案。

一款轻量级、可扩展的、跨平台的、专为医疗信息化设计的电子病历编辑器内核,为EMR(电子病历系统)提供专业的结构化病历编辑与AI接入解决方案。

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • 一款轻量级、可扩展的、跨平台的、专为医疗信息化设计的电子病历编辑器内核,为EMR(电子病历系统)提供专业的结构化病历编辑

Use Cases

Electronic medical record editing
Structured healthcare document composition
EMR system integration with AI
huimeicloud

Maintainer

LicenseLGPL-2.1
Languagehtml
Versionv1.0.0
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx hm-editor

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use HM Editor

HM Editor is a lightweight, cross-platform, extensible electronic medical record (EMR) editor kernel built on CKEditor 4 and designed specifically for healthcare informatics. It provides a structured rich-text editing environment for clinical documents, enabling EMR systems to embed professional medical record authoring with AI integration via MCP. The editor supports structured content templates, a document object model for clinical data, and can be integrated into both web and desktop healthcare applications. It is particularly suited for medical software vendors who need a production-ready EMR editing component with AI-assisted documentation capabilities.

Prerequisites

  • Docker Engine and Docker Compose installed (for the recommended deployment method)
  • Node.js 14+ and npm if building from source
  • A web server or application host to serve the editor SDK
  • An MCP-compatible client for AI integration features
1

Deploy using Docker Compose (recommended)

The easiest deployment path uses the provided Docker Compose configuration. Download the production compose file and start the service — this runs the editor service and admin panel together.

# Download the compose file from the repository
git clone https://github.com/huimeicloud/hm_editor.git
cd hm_editor
docker-compose -f docker-compose.prod.yml up -d
2

Verify the deployment

After the containers start, access the editor SDK demo and admin panel to confirm the service is running correctly.

# Editor SDK demo
open http://127.0.0.1:7070/hmEditor/demo/index.html

# Admin panel
open http://127.0.0.1:7070/hmEditor/admin-client
3

Integrate the editor into your application

Embed the HM Editor in any web page using the provided SDK loader. This 15-line integration pattern creates an editor instance and loads a clinical document template.

<script src="https://editor.huimei.com/hmEditor/iframe/HmEditorIfame.js"></script>
<div id="editorContainer" style="width:850px;height:500px;"></div>
<script>
HMEditorLoader.createEditorAsync({
  container: "#editorContainer",
  sdkHost: "https://editor.huimei.com/hmEditor"
}).then(editor => {
  editor.setDocContent({
    code: 'doc001',
    docTplName: 'Admission Note Template',
    docContent: ''
  });
});
</script>
4

Build from source (optional)

If you need to customize the editor kernel, clone the repository and build using npm and Grunt. The build output can be served from any static web host.

git clone https://github.com/huimeicloud/hm_editor.git
cd hm_editor
npm install
grunt release
nodemon index.js
5

Configure MCP integration

For AI-assisted documentation, configure your MCP client to connect to the HM Editor MCP endpoint. This enables AI assistants to read and write structured clinical document content through the editor's API.

{
  "mcpServers": {
    "hm-editor": {
      "command": "node",
      "args": ["/path/to/hm_editor/mcp/index.js"]
    }
  }
}

HM Editor Examples

Client configuration

MCP client configuration for the HM Editor server, enabling AI assistants to interact with the EMR editing environment.

{
  "mcpServers": {
    "hm-editor": {
      "command": "node",
      "args": ["/path/to/hm_editor/mcp/index.js"]
    }
  }
}

Prompts to try

These prompts demonstrate AI-assisted clinical documentation scenarios using the HM Editor integration.

- "Generate an admission note for a patient with Type 2 diabetes and hypertension"
- "Fill in the chief complaint section with: patient reports chest pain for 2 hours"
- "Summarize the current document content as a clinical summary"
- "Format the history of present illness section according to SOAP note structure"
- "Insert a structured medication list into the current clinical document"

Troubleshooting HM Editor

Docker Compose fails to start the containers

Ensure Docker Engine v20+ and Docker Compose v2+ are installed. Check port 7070 is not already in use with 'lsof -i :7070'. Review container logs with 'docker-compose -f docker-compose.prod.yml logs' for specific error messages.

Editor fails to load in the browser

Verify the sdkHost URL is correct and the service is running. For local deployments, ensure CORS headers are properly configured if embedding the editor in a different origin. Check browser console for specific JavaScript errors.

Grunt build fails during source compilation

Ensure you are using Node.js 14 or later. Run 'npm install -g grunt-cli' to install the Grunt command-line tool globally before running 'grunt release'. Check that all dependencies installed cleanly with 'npm install'.

Frequently Asked Questions about HM Editor

What is HM Editor?

HM Editor is a Model Context Protocol (MCP) server that 一款轻量级、可扩展的、跨平台的、专为医疗信息化设计的电子病历编辑器内核,为emr(电子病历系统)提供专业的结构化病历编辑与ai接入解决方案。 It connects AI assistants to external tools and data sources through a standardized interface.

How do I install HM Editor?

Follow the installation instructions on the HM Editor GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with HM Editor?

HM Editor works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is HM Editor free to use?

Yes, HM Editor is open source and available under the LGPL-2.1 license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "hm-editor": { "command": "npx", "args": ["-y", "hm-editor"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use HM Editor?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides