Goose Barcode Scanner Plugin & MCP

Equip Goose with a real local barcode decoder. It reads 16 1D and 2D barcode formats and returns exact identifiers with leading zeros intact.

Install the Goose plugin

Requires Node.js 22.19+ or 24+.

  1. 1

    Run goose plugin install to clone the default branch into ~/.agents/plugins/qrcode-barcode-scanner with the skill and scan_image.

    Shell
    goose plugin install https://github.com/qrcode-ai-com/qrcode-barcode-scanner-plugin.git
  2. 2

    Verify the cloned commit via git -C ~/.agents/plugins/qrcode-barcode-scanner rev-parse HEAD and launch Goose.

  3. 3

    Try it out. Ask Goose:

    Decode the Code 128 barcode in barcode-reference.png and return the exact value with leading zeros intact.

Goose waits roughly 10s for an MCP server’s first reply. If the initial npx download times out, pre-install with npm and launch directly via node.

View plugin on GitHub

Use a decoded barcode in your Goose workflow

Barcode Scanner returns exact identifiers and symbologies so Goose can verify labels without guessing digits.

Decode barcode labels in Goose

Decode Code 128, EAN-13, UPC-A and 2D fixtures locally inside Goose with exact digits and leading zeros preserved.

Clear the 10-second handshake

Pre-install @qrcode-ai-com/qrcode-barcode-scanner-mcp locally and launch via node if the first npx download exceeds ~10s.

No shell needed, zero lookups

Keep Goose’s developer extension disabled for MCP-only runs, and leave retail or inventory lookups to external systems.

Test a barcode image in Goose

Prepare the test image, copy the prompt and compare the returned output.

barcode-reference.png

Generate a Code 128 barcode encoding STOCK-4827 and save it as barcode-reference.png.

Ask Goose to decode it

Text
Read barcode-reference.png with Barcode Scanner.
Return the complete identifier as text and its format.
Preserve leading zeros. Do not run external lookups.
If the tool is unavailable or detects nothing, report that
instead of guessing.
Expected output · Code 128
STOCK-4827

With the scanner active, Goose returns the exact identifier and its format instead of guessing.

Sample output for barcode-reference.png.

Goose Barcode Scanner Plugin & MCP questions

Setup options, barcode formats, leading zeros, local privacy and MIT licence.

Run goose plugin install https://github.com/qrcode-ai-com/qrcode-barcode-scanner-plugin.git for the skill and scan_image server, or copy goose/qrscan-extension.yaml under extensions: in ~/.config/goose/config.yaml with QRSCAN_MCP_ALLOWED_DIRECTORIES to enable scan_file.

Goose waits about 10 seconds for an MCP server’s first reply (timeout: 300 does not extend that initial window). Pre-install @qrcode-ai-com/qrcode-barcode-scanner-mcp locally with npm and launch it via node for instant startup.

It supports 16 barcode symbologies: Code 128, Code 39, Code 93, EAN-13 (including ISBN), EAN-8, UPC-A, UPC-E, ITF, Codabar, Telepen, GS1 DataBar, GS1 DataBar Expanded, Data Matrix, PDF417, Aztec and MaxiCode, alongside QR codes.

Yes. content.text is always returned as a verbatim string so leading zeros stay intact, and EAN-13 reports also parse the 14-digit GS1 GTIN. No external retail, pricing or ISBN catalogue is queried.

Yes for MCP. Set enabled: false under developer in ~/.config/goose/config.yaml since the MCP server requires no shell access. Only scripts/scan.mjs needs a shell.

Move ~/.agents/plugins/qrcode-barcode-scanner out of ~/.agents/plugins/, remove its entry under plugins: in ~/.config/goose/config.yaml and delete any custom extensions: entry.

Decoding runs locally on Node.js 22.19+ or 24+ (Goose sends conversation text to your configured LLM). Current plugin, skill, MCP server and engine releases are free and MIT-licensed, separate from QR Code AI paid plans.

Goose setup and Barcode Scanner references

Review the official Goose setup documentation and the MIT scanner adapter contract.