Servidor MCP

Barcode Tools (decode, render, GTIN validate)

io.github.appvantagelabs2-a11y/barcode
Comercio y retail Público y accesible MCP 2025-11-25

Qué hace este MCP

Decodes and renders common barcodes and QR codes and validates GTIN, EAN, and UPC product identifiers.

decode_barcode
Decode barcodes from an image
Detect and decode all barcodes in an image. Input: base64-encoded image bytes (PNG/JPEG/WebP/anything sharp reads). Output: JSON array of {format, text}. Supports QR, Aztec, DataMatrix, Code128/39/93, EAN-13/8, UPC-A/E, ITF, PDF417, Codabar. Use formats filter to restrict results.
Esquema de entrada
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['image_base64'], 'properties': {'formats': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Optional canonical format ids to keep, e.g. ["qr","ean13"]'}, 'image_base64': {'type': 'string', 'description': 'Base64-encoded image file bytes (no data: URI prefix)'}}}
list_formats
List supported symbologies
Static table of supported barcode formats with render/decode support and notes.
Esquema de entrada
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'properties': {}}
render_barcode
Render a barcode/QR to PNG
Render text as a barcode PNG. format: one of qr, aztec, datamatrix, code128, code39, code93, ean13, ean8, upca, itf, pdf417. Output: base64 PNG plus 'decoded' self-check flag (we decode our own render; upca intentionally verifies as zero-padded EAN-13). GTIN codes must have a valid mod-10 checksum.
Esquema de entrada
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['text', 'format'], 'properties': {'text': {'type': 'string', 'description': 'Payload to encode (digits for GTIN symbologies)'}, 'scale': {'type': 'integer', 'maximum': 12, 'minimum': 2, 'description': 'Rasterization scale, default 6'}, 'format': {'type': 'string', 'description': 'Symbology id: qr, aztec, datamatrix, code128, code39, code93, ean13, ean8, upca, itf, pdf417'}}}
validate_gtin
Validate a GTIN/EAN/UPC code
Check a product code against GTIN rules: length + mod-10 checksum. Returns {valid, type: ean13|ean8|upcA|null, normalized}. Rejects codes with a broken checksum (e.g. 8595234703191).
Esquema de entrada
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['code'], 'properties': {'code': {'type': 'string', 'description': 'Candidate product code, digits only'}}}
Añadido
list_formats
17 de September de 2026 a las 12:40
Añadido
validate_gtin
17 de September de 2026 a las 12:40
Añadido
render_barcode
17 de September de 2026 a las 12:40
Añadido
decode_barcode
17 de September de 2026 a las 12:40