HM Editor
一款轻量级、可扩展的、跨平台的、专为医疗信息化设计的电子病历编辑器内核,为EMR(电子病历系统)提供专业的结构化病历编辑与AI接入解决方案。
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
Maintainer
Works with
Installation
Manual Installation
npx hm-editorConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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 -dVerify 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-clientIntegrate 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>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.jsConfigure 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.
HM Editor Alternatives — Similar Developer Tools Servers
Looking for alternatives to HM Editor? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
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.
Set Up HM Editor in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.