Barcode Scanner

v1.2.0
io.github.domdomegg/barcode-scanner-mcp Checked 15 hours ago Published 8 months ago

Scan and generate barcodes and QR codes.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

decode_image Decode barcode/QR code

Decode barcodes and QR codes from a base64-encoded image. Returns all codes found. Supports QR, EAN-13, EAN-8, UPC-A, UPC-E, Code 128, Code 39, Code 93, ITF, Codabar, and PDF 417. Handles noisy real-world photos by trying multiple preprocessing approaches.

ParameterTypeDescription
image *stringBase64-encoded image data (PNG, JPEG, etc.)
format_hintstringExpected barcode format. If omitted, all formats are tried.

generate_qr Generate QR code

Generate a QR code image from text or a URL. Returns a PNG image.

ParameterTypeDescription
text *stringText or URL to encode in the QR code
error_correctionstringError correction level: L (7%), M (15%), Q (25%), H (30%)
scaleintegerScaling factor (default: 3)

generate_barcode Generate barcode

Generate a barcode image in various formats. Returns a PNG image. Supported formats: code128, code39, code93, ean13, ean8, upca, upce, itf14, interleaved2of5, isbn, issn, ismn, datamatrix, pdf417, azteccode, gs1-128, pharmacode, codabar, msi, plessey, postnet, onecode, royalmail, code11, code49.

ParameterTypeDescription
format *stringBarcode format to generate
text *stringData to encode in the barcode
heightnumberBar height in mm (default: 10, ignored for 2D formats)
include_textbooleanShow human-readable text below barcode (default: true)
scaleintegerScaling factor (default: 3)