LABEL & RECEIPT PRINTERS / HM-PR-141
HM-PR-141 · datasheet

yamato-printer-mcp-server

MCP server on a Raspberry Pi Zero 2 W that prints Yamato Transport (B2 Cloud) shipping-label PDFs on a USB WS-420B thermal label printer by converting them to TSPL, reachable from Claude.ai through a Cloudflare Tunnel

01 · What it does

  • Print a PDF uploaded to the /upload endpoint by file_id
  • Fetch a PDF from a URL (for example an S3 presigned URL) and print it
  • Convert PDF pages to 1-bit TSPL bitmaps and write them to /dev/usb/lp0 without a vendor driver
  • Pick Yamato slip types from presets that set the paper size
  • List uploads and jobs, query job status and validate print options

02 · Install

$ git clone https://github.com/DaisukeHori/yamato-printer-mcp-server.git
$ cd yamato-printer-mcp-server
$ sudo ./scripts/setup-pi.sh
$ cp .env.example .env
$ sudo systemctl enable --now yamato-printer-mcp
  1. 7 tools. Runs as a systemd service; the README adds it to Claude.ai as a custom connector at https://<tunnel-host>/mcp?key=<MCP_API_KEY>
  2. The /upload endpoint has no authentication, per the README
  3. Targets the WS-420B (Xprinter OEM) or compatible TSPL/EPL/ZPL printers. README is in Japanese. Unofficial, not affiliated with Yamato Transport
  4. LICENSE file is MIT (GitHub does not detect it)

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.