Label Printer Plugin

Print labels on a Brother P-touch from Claude Code: MCP server + plugin. Single labels, N copies, batch runs, QR-coded asset and storage templates for inventory.

About This Project

label-printer-plugin lets users print labels on Brother QL and P-touch label printers directly from Claude Code. It supports text and QR labels sized to whatever roll is loaded, single labels, multiple copies, batch runs, and reusable templates for asset and storage tagging. The project offers two independent modes: a standalone path in which Python scripts discover printers on the local machine and LAN, maintain a printer registry, render labels as PNG images with Pillow, and send them over raw TCP or USB via brother_ql and ptouch-print; and an older path using a streamable-HTTP MCP server that posts rendered labels to a USB print bridge for P-touch printers.

The plugin is built in Python and uses brother_ql, ptouch-print, CUPS, and mDNS for printer communication and discovery. It includes a media catalogue of DK and TZe product codes with their pixel geometry, distinguishes continuous from die-cut rolls when sizing canvases, and handles Hebrew text through font fallback and explicit bidi processing. A preview command renders labels without opening a connection to the printer, which avoids wasting media when checking layouts. Printer registry and template storage are kept in separate locations so network addresses stay out of version-controlled repositories.

The project is aimed at people who manage inventory, equipment, or storage and want to generate labels from a conversational interface rather than vendor software. It may also suit developers who want a concrete example of exposing hardware operations as Claude Code skills and MCP tools. The documentation notes that Zebra and DYMO backends are discovered but not yet printable, and that the Brother QL-810W was the verified model.

Project Details

Explore More Projects