GitHub Copilot Barcode Scanner Plugin

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

Install the GitHub Copilot CLI plugin

Requires Node.js 22.19+ or 24+.

  1. 1

    Run both commands in GitHub Copilot CLI (append #<release-tag> to the first command to pin a tag from GitHub Releases).

    Shell
    copilot plugin marketplace add qrcode-ai-com/qrcode-barcode-scanner-plugin
    copilot plugin install qrcode-barcode-scanner@qrcode-ai-com
  2. 2

    Start a session and check that qrscan lists scan_image. Set QRSCAN_MCP_ALLOWED_DIRECTORIES in the server env for scan_file.

  3. 3

    Try it. Ask GitHub Copilot:

    Read the Code 128 barcode in barcode-reference.png and give me the exact value with leading zeros preserved.

Installs both the qrcode-barcode-scanner skill and local stdio MCP server. Remove with copilot plugin uninstall qrcode-barcode-scanner.

View plugin on GitHub

Use a decoded barcode in a GitHub Copilot task

Barcode Scanner returns exact identifiers and symbologies so GitHub Copilot can check labels without guessing digits.

Verify barcode labels in Copilot CLI

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

Stdio MCP with opt-in scan_file

Exposes scan_image (bytes) by default and enables scan_file only inside QRSCAN_MCP_ALLOWED_DIRECTORIES.

Skill guardrails, zero lookups

Pairs MCP with SKILL.md so identifiers stay verbatim strings without external retail or stock API calls.

Try a barcode image in GitHub Copilot

Supply the image, copy the request and compare the returned content.

barcode-reference.png

Create a Code 128 barcode containing STOCK-4827 and save it as barcode-reference.png.

Ask GitHub Copilot to read 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 result · Code 128
STOCK-4827

With the scanner, GitHub Copilot returns the exact identifier and its format rather than a guess.

Example result for barcode-reference.png.

GitHub Copilot Barcode Scanner Plugin questions

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

Run copilot plugin marketplace add qrcode-ai-com/qrcode-barcode-scanner-plugin followed by copilot plugin install qrcode-barcode-scanner@qrcode-ai-com.

It reads 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, plus 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 database is queried.

By default qrscan exposes scan_image (base64 bytes) only. Set QRSCAN_MCP_ALLOWED_DIRECTORIES in the server env and restart Copilot CLI to enable scan_file for your allowed directories.

Both detections come back in one JSON report, each labelled with its symbology and exact content.text. Check each detection’s symbology rather than assuming index 0 is the barcode.

Run copilot plugin uninstall qrcode-barcode-scanner followed by copilot plugin marketplace remove qrcode-ai-com.

Decoding runs locally on Node.js 22.19+ or 24+ (Copilot sends conversation text to your configured model). Current releases of qrcode-barcode-scanner-plugin on GitHub and its engine are free and MIT-licensed.

GitHub Copilot setup and Barcode Scanner references

Inspect the official GitHub Copilot setup source and the MIT scanner adapter contract.