LABEL & RECEIPT PRINTERS / HM-PR-128
HM-PR-128 · datasheet
label-printer-mcp
CLI, Python library and MCP server that finds a 4x6 shipping label in a PDF, crops it losslessly without rescaling the barcode, and prints it at 100% on a 4x6 thermal label printer through CUPS
01 · What it does
- Inspect a PDF and report where the 4x6 label appears to be
- Crop to the label by changing the CropBox, so vector barcodes are never resampled
- Refuse with measurements when no region looks like a 4x6 label or the size is wrong
- Render a PNG preview before printing
- List CUPS print queues and send the label, as a dry run unless live is set
02 · Install
$ git clone https://github.com/christianblandford/label-printer-mcp
$ cd label-printer-mcp
$ python3 -m venv .venv
$ .venv/bin/pip install -e .- 5 tools: inspect, prepare, preview, printers, send. send is a dry run unless called with live=True
- Prints with print-scaling=none; the README says to check lpoptions -p <queue> -l because CUPS silently ignores options a queue does not advertise
- The MCP server needs the MCP Python SDK v2+
03 · Client config (from README)
{
"mcpServers": {
"label": {
"command": "/path/to/label-printer-mcp/.venv/bin/python",
"args": ["/path/to/label-printer-mcp/server.py"]
}
}
}
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.