Barcode Tools (decode, render, GTIN validate)

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

我該用這個嗎

品質與安全性

A
說明品質
100%
結構描述完整度
83%
命名品質
95%
汙染風險
100%
權限相符程度
100%
協定合規性
100%

根據工具定義與協定合規性的自動化分析。

上下文成本

~585Token(工具定義)
~803 B典型回應大小
極小的注意力影響(128k 上下文的 0.46%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

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

遠端端點

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

它能做什麼

工具清單

工具(4)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
⚪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.

輸入結構描述

{
  "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.

輸入結構描述

{
  "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).

輸入結構描述

{
  "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.

輸入結構描述

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

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本4 個工具
已驗證未記錄版本4 個工具
已驗證未記錄版本4 個工具