Barcode Tools (decode, render, GTIN validate)
Decode, render, validate barcodes: QR, DataMatrix, EAN, UPC, PDF417. All tools free, no auth.
使うべきか
品質と安全性
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `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"
}コミュニティ
エビデンス