Barcode Tools (decode, render, GTIN validate)

Decode, render, validate barcodes: QR, DataMatrix, EAN, UPC, PDF417. All tools free, no auth.

Should I use this

Quality & Safety

A
Description quality
100%
Schema completeness
83%
Naming quality
95%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~585Tokens (tool definitions)
~803 BTypical response size
Minimal attention impact (0.46% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "barcode": {
      "url": "https://mcp.casuyi.com/mcp"
    }
  }
}

Remote endpoints

https://mcp.casuyi.com/mcpstreamable-http

What it can do

Tool inventory

Tools (4)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
⚪decode_barcode(image_base64, formats)

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.

Input Schema

{
  "type": "object",
  "properties": {
    "image_base64": {
      "type": "string",
      "description": "Base64-encoded image file bytes (no data: URI prefix)"
    },
    "formats": {
      "description": "Optional canonical format ids to keep, e.g. [\"qr\",\"ean13\"]",
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "image_base64"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢render_barcode(text, format, scale)

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.

Input Schema

{
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "description": "Payload to encode (digits for GTIN symbologies)"
    },
    "format": {
      "type": "string",
      "description": "Symbology id: qr, aztec, datamatrix, code128, code39, code93, ean13, ean8, upca, itf, pdf417"
    },
    "scale": {
      "description": "Rasterization scale, default 6",
      "type": "integer",
      "minimum": 2,
      "maximum": 12
    }
  },
  "required": [
    "text",
    "format"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢validate_gtin(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).

Input Schema

{
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "Candidate product code, digits only"
    }
  },
  "required": [
    "code"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢list_formats

Static table of supported barcode formats with render/decode support and notes.

Input Schema

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded4 tools
verifiedversion not recorded4 tools