Gookit Barcode Tools
Free barcode, QR code, check digit and SKU generators for AI agents. No login.
Should I use this
Quality & Safety
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
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-tools": {
"url": "https://tools.gookit.co/mcp"
}
}
}Remote endpoints
https://tools.gookit.co/mcpstreamable-httpWhat it can do
Tool inventory
Tools (4)
π’generate_barcode(value, symbology, bar_width, height, show_text, ...)
Make one Code 128, UPC-A, EAN-13, Code 39 or ITF-14 barcode as a PNG image and/or SVG markup, with the same rules as gookit.co/barcode-generator. For UPC-A, EAN-13 and ITF-14, leave the check digit off and it is added; a wrong check digit is reported with the corrected number. One barcode per call; this tool doesn't make label sheets or PDFs.
Input Schema
{
"type": "object",
"properties": {
"value": {
"type": "string",
"minLength": 1,
"maxLength": 40,
"description": "Data to encode. Code 128: letters, numbers and keyboard symbols. Code 39: uppercase letters, numbers, space and - . $ / + %. UPC-A: 11 or 12 digits. EAN-13: 12 or 13 digits. ITF-14: 13 or 14 digits."
},
"symbology": {
"type": "string",
"enum": [
"code128",
"upc_a",
"ean13",
"code39",
"itf14"
],
"default": "code128"
},
"bar_width": {
"type": "integer",
"minimum": 1,
"maximum": 4,
"default": 2,
"description": "Width of the narrowest bar, in px at 1x."
},
"height": {
"type": "integer",
"minimum": 30,
"maximum": 160,
"multipleOf": 5,
"default": 90,
"description": "Bar height, in px at 1x."
},
"show_text": {
"type": "boolean",
"default": true,
"description": "Print the value under the bars."
},
"format": {
"type": "string",
"enum": [
"png",
"svg",
"both"
],
"default": "png",
"description": "png: an image, 4x the SVG size (smaller when that would pass 2048 px). svg: markup in structuredContent.svg. both: the two."
}
},
"required": [
"value"
],
"additionalProperties": false
}Output Schema
{
"type": "object",
"properties": {
"symbology": {
"type": "string"
},
"value": {
"type": "string",
"description": "What the barcode encodes, check digit included."
},
"check_digit_added": {
"type": "boolean"
},
"note": {
"type": "string"
},
"svg": {
"type": "string"
},
"svg_size": {
"type": "object",
"properties": {
"width": {
"type": "number"
},
"height": {
"type": "number"
}
}
},
"png": {
"type": "object",
"properties": {
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"scale": {
"type": "integer"
}
}
},
"next_step": {
"type": "string",
"description": "One line naming the Gookit product for the next step, such as printing labels. Not part of the result."
}
},
"required": [
"symbology",
"value",
"check_digit_added",
"svg_size"
]
}π’generate_qr(content, content_type, error_correction, size, color, ...)
Make one static QR code for a link or plain text, as a PNG image and/or SVG markup, with the same rules as gookit.co/qr-code-generator. The content goes straight into the code: no redirect, no tracking, no expiry. Up to 250 bytes of UTF-8; a 1024 px PNG needs content under 100 bytes. One code per call.
Input Schema
{
"type": "object",
"properties": {
"content": {
"type": "string",
"minLength": 1,
"maxLength": 250,
"description": "A link or plain text, up to 250 bytes as UTF-8."
},
"content_type": {
"type": "string",
"enum": [
"url",
"text"
],
"default": "url",
"description": "url: checked as a link; https:// is added when there is no scheme. text: encoded as is."
},
"error_correction": {
"type": "string",
"enum": [
"L",
"M",
"Q",
"H"
],
"default": "M",
"description": "L 7%, M 15%, Q 25%, H 30% of the code can be damaged and still scan. Higher makes a denser code."
},
"size": {
"type": "integer",
"enum": [
256,
512,
1024
],
"default": 512,
"description": "Approximate PNG width and height in px. 1024 only for content under 100 bytes; SVG scales to any size."
},
"color": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$",
"default": "#000000",
"description": "Colour of the dark modules, as #rrggbb. The background is white."
},
"format": {
"type": "string",
"enum": [
"png",
"svg",
"both"
],
"default": "png"
}
},
"required": [
"content"
],
"additionalProperties": false
}Output Schema
{
"type": "object",
"properties": {
"payload": {
"type": "string",
"description": "Exactly what the QR code encodes."
},
"note": {
"type": "string"
},
"error_correction": {
"type": "string"
},
"modules": {
"type": "integer",
"description": "Modules per side, without the quiet zone."
},
"color": {
"type": "string"
},
"contrast_warning": {
"type": "string"
},
"svg": {
"type": "string"
},
"png": {
"type": "object",
"properties": {
"width": {
"type": "integer"
},
"height": {
"type": "integer"
}
}
},
"next_step": {
"type": "string",
"description": "One line naming the Gookit product for the next step, such as printing labels. Not part of the result."
}
},
"required": [
"payload",
"error_correction",
"modules",
"color"
]
}π’validate_gtin(code, symbology)
Check the check digit of a UPC-A (12 digits), EAN-13 (13) or ITF-14 (14) number, or compute it for a number given without one (set symbology). Uses the GS1 mod-10 rule, as gookit.co/barcode-generator does. It checks the arithmetic only, not whether the number is registered with GS1.
Input Schema
{
"type": "object",
"properties": {
"code": {
"type": "string",
"minLength": 1,
"maxLength": 16,
"description": "Digits. Spaces are ignored."
},
"symbology": {
"type": "string",
"enum": [
"upc_a",
"ean13",
"itf14"
],
"description": "Needed to compute a missing check digit. Without it, the code is read as complete: 12 digits UPC-A, 13 EAN-13, 14 ITF-14."
}
},
"required": [
"code"
],
"additionalProperties": false
}Output Schema
{
"type": "object",
"properties": {
"symbology": {
"type": "string"
},
"mode": {
"type": "string",
"enum": [
"validated",
"computed"
]
},
"valid": {
"type": "boolean",
"description": "Only when mode is validated."
},
"input": {
"type": "string"
},
"check_digit_expected": {
"type": "integer"
},
"check_digit_found": {
"type": "integer"
},
"complete": {
"type": "string",
"description": "The number with the correct check digit."
},
"gtin14": {
"type": "string",
"description": "The complete number padded to 14 digits."
},
"note": {
"type": "string"
},
"next_step": {
"type": "string",
"description": "One line naming the Gookit product for the next step, such as printing labels. Not part of the result."
}
},
"required": [
"symbology",
"mode",
"input",
"check_digit_expected",
"complete",
"gtin14",
"note"
]
}π’generate_sku(rows, variants, parts, prefix, sequence_start, ...)
Build SKUs from category, product name and up to 3 attributes (size, colourβ¦), with the same rules as gookit.co/sku-generator: each part is shortened by its rule, parts are joined with a separator, and duplicates are flagged. Send `rows` (a list of products) or `variants` (one product and its attribute values; every combination becomes a row). Up to 50 rows per call. Nothing is saved.
Input Schema
{
"type": "object",
"properties": {
"rows": {
"type": "array",
"minItems": 1,
"maxItems": 50,
"description": "Products, one per row. Send this or `variants`.",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"maxLength": 100
},
"category": {
"type": "string",
"maxLength": 100
},
"attributes": {
"type": "array",
"maxItems": 3,
"items": {
"type": "string",
"maxLength": 50
}
},
"existing_sku": {
"type": "string",
"maxLength": 32,
"description": "Kept as is, and no new SKU may take it."
}
}
}
},
"variants": {
"type": "object",
"additionalProperties": false,
"required": [
"name"
],
"description": "One product and its attribute values. Send this or `rows`.",
"properties": {
"name": {
"type": "string",
"maxLength": 100
},
"category": {
"type": "string",
"maxLength": 100
},
"attributes": {
"type": "array",
"maxItems": 3,
"description": "Values per attribute, e.g. [[\"Small\",\"Medium\"],[\"Black\",\"White\"]].",
"items": {
"type": "array",
"maxItems": 25,
"items": {
"type": "string",
"maxLength": 50
}
}
}
}
},
"parts": {
"type": "array",
"minItems": 1,
"maxItems": 7,
"description": "The parts to use, in order. Default: category (first 3), name (initials), attr1βattr3 (first 3). Rules: first = first characters, initials = first letter of each word, consonants = drop vowels, full = whole value.",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"part"
],
"properties": {
"part": {
"type": "string",
"enum": [
"prefix",
"category",
"name",
"attr1",
"attr2",
"attr3",
"sequence"
]
},
"rule": {
"type": "string",
"enum": [
"first",
"initials",
"consonants",
"full"
]
},
"length": {
"type": "integer",
"minimum": 1,
"maximum": 10,
"description": "Characters kept by first and consonants."
}
}
}
},
"prefix": {
"type": "string",
"maxLength": 10,
"description": "Fixed text for the \"prefix\" part. Default \"GK\"."
},
"sequence_start": {
"type": "string",
"pattern": "^\\d{1,30}$",
"default": "1",
"description": "First number of the \"sequence\" part."
},
"sequence_padding": {
"type": "integer",
"minimum": 1,
"maximum": 10,
"default": 3,
"description": "Minimum digits; leading zeros fill the rest."
},
"separator": {
"type": "string",
"enum": [
"-",
"_",
".",
"",
" "
],
"default": "-"
},
"uppercase": {
"type": "boolean",
"default": true
},
"max_length": {
"type": "integer",
"minimum": 4,
"maximum": 64,
"default": 16,
"description": "Longer SKUs get a too-long warning."
},
"abbreviations": {
"type": "object",
"additionalProperties": false,
"description": "Codes used in place of a whole value, e.g. Small β S, Black β BLK. Checked before the part's rule.",
"properties": {
"mode": {
"type": "string",
"enum": [
"default",
"extend",
"replace",
"none"
],
"description": "default: the built-in sizes and colours. extend: built-in plus entries. replace: entries only. none: no table."
},
"entries": {
"type": "array",
"maxItems": 25,
"items": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": {
"type": "string",
"maxLength": 16
}
}
}
}
},
"number_duplicates": {
"type": "boolean",
"default": false,
"description": "Add -2, -3β¦ to a new SKU that repeats one already in the list."
}
},
"additionalProperties": false
}Output Schema
{
"type": "object",
"properties": {
"skus": {
"type": "array",
"items": {
"type": "object",
"properties": {
"row": {
"type": "integer"
},
"sku": {
"type": "string"
},
"existing": {
"type": "boolean"
},
"renumbered": {
"type": "boolean"
},
"duplicate_of": {
"type": "array",
"items": {
"type": "integer"
}
},
"warnings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"error": {
"type": "string"
}
}
}
},
"rows_in_input": {
"type": "integer"
},
"combinations_total": {
"type": "integer"
},
"truncated": {
"type": "boolean"
},
"duplicate_rows": {
"type": "integer"
},
"next_step": {
"type": "string",
"description": "One line naming the Gookit product for the next step, such as printing labels. Not part of the result."
}
},
"required": [
"skus",
"rows_in_input",
"truncated",
"duplicate_rows"
]
}Community
Evidence