LABEL & RECEIPT PRINTERS / HM-PR-115
HM-PR-115 · datasheet
zebra-printer-mcp
Stdio MCP server for Zebra Link-OS label printers: generates and validates ZPL II from a JSON label spec, renders an offline preview, and sends jobs over raw TCP 9100, the Windows spooler or USB
01 · What it does
- Turn a JSON label spec (mm or dot coordinates, text, 28 barcode types, QR codes, boxes) into ZPL II with range checks
- Validate any ZPL against a command catalog extracted from the ZPL II Programming Guide, and look up command syntax and defaults
- Render ZPL to a PNG preview locally before printing
- Send ZPL over raw TCP 9100, the Windows print spooler, USB or a preview file, with a dry_run option
- Query printer status via Link-OS SGD, falling back to ~HI/~HS on older firmware
- Print a batch of labels from an .xlsx sheet, or rebuild ZPL from a photo of an existing label
02 · Install
$ git clone https://github.com/benyshen/zebra-printer-mcp.git
$ cd zebra-printer-mcp
$ uv venv .venv --python 3.12
$ .venv/bin/pip install -e ".[all]"- A thin MCP layer over the zpl-core engine (PyPI zpl-core 0.2.0); the README pins mcp>=1.9,<2
- Verified by the author on a real Zebra ZR668 (200 dpi, firmware V86.20.21Z): network printing, status queries and Chinese text via ^CI28 and the printer's built-in TrueType fonts
- Windows tested; on Linux and macOS everything except the windows and usb transports works, per the README. On Windows the command is .venv/Scripts/python.exe
- README is in Chinese. Photo-to-ZPL needs the optional [photo] extras and OCR model files. Latest release v0.3.0 (Oct 24)
03 · Client config (from README)
{
"mcpServers": {
"zebra-printer": {
"command": "<repo>/.venv/bin/python",
"args": ["-m", "zebra_mcp.server"],
"cwd": "<repo>"
}
}
}
Install steps taken from the project README (its recommended path first). Placeholders are the maintainer's. Not bench-tested by HardwareMCP yet.
Weekly bulletin
New hardware MCP servers, notable releases and setup notes. One email, Mondays.