MCPサーバー

Barcode Tools (decode, render, GTIN validate)

io.github.appvantagelabs2-a11y/barcode
コマース・小売 公開・接続可能 MCP 2025-11-25

この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.
入力スキーマ
{'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.
入力スキーマ
{'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.
入力スキーマ
{'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).
入力スキーマ
{'type': 'object', '$schema': 'https://json-schema.org/draft/2020-12/schema', 'required': ['code'], 'properties': {'code': {'type': 'string', 'description': 'Candidate product code, digits only'}}}
追加
list_formats
2026年9月17日12:40
追加
validate_gtin
2026年9月17日12:40
追加
render_barcode
2026年9月17日12:40
追加
decode_barcode
2026年9月17日12:40