GitHub Copilot Barcode Scanner Plugin

Give GitHub Copilot a dedicated 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 verify that qrscan lists scan_image. Set QRSCAN_MCP_ALLOWED_DIRECTORIES in the server env to enable scan_file.

  3. 3

    Test it out. Ask GitHub Copilot:

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

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

View plugin on GitHub

Use a decoded barcode in a GitHub Copilot task

Barcode Scanner outputs exact identifiers and symbologies so GitHub Copilot can verify 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 strictly inside QRSCAN_MCP_ALLOWED_DIRECTORIES.

Skill guardrails, zero lookups

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

Test a barcode image in GitHub Copilot

Provide the image, copy the prompt and verify the returned output.

barcode-reference.png

Create a Code 128 barcode that encodes 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 output · Code 128
STOCK-4827

With the scanner configured, GitHub Copilot returns the exact identifier and its format instead of guessing.

Sample output 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 catalogue 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 allow scan_file for your specified directories.

Both detections arrive in one JSON report, each labelled with its symbology and exact content.text. Inspect each detection’s symbology instead of 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.