Continue Barcode Scanner MCP Setup

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

Configure qrscan in Continue YAML

Requires Node.js 22.19+ or 24+.

  1. 1

    Add the mcpServers entry to ~/.continue/config.yaml for cn CLI, or save this file as .continue/mcpServers/qrscan.yaml inside your workspace.

    Text
    name: QR Code and Barcode Scanner
    version: 0.3.5
    schema: v1
    mcpServers:
      - name: qrscan
        type: stdio
        command: npx
        args:
          - --yes
          - --ignore-scripts
          - "@qrcode-ai-com/qrcode-barcode-scanner-mcp"
        env:
          QRSCAN_MCP_ALLOWED_DIRECTORIES: /absolute/path/to/images
        connectionTimeout: 60000
  2. 2

    Switch Continue to agent mode (or pass --allow scan_file for headless cn -p) and confirm qrscan initialises within the 60s timeout.

  3. 3

    Try it out. Ask Continue:

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

Continue configures MCP servers only (with no skill folder). connectionTimeout: 60000 gives the first npx download a full minute instead of Continue’s 20s default.

View MCP package on npm

Use a decoded barcode in your Continue workflow

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

Verify barcode labels in agent mode

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

CLI and workspace YAML paths

Place qrscan in ~/.continue/config.yaml for cn CLI or .continue/mcpServers/qrscan.yaml for IDE workspace setups.

Headless cn -p automation

Use cn -p with --allow scan_file for repeatable label checks while keeping product lookups in external systems.

Test a barcode image in Continue

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 Continue 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, Continue returns the exact identifier and its format instead of guessing.

Sample output for barcode-reference.png.

Continue Barcode Scanner MCP Setup questions

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

No. Continue supports MCP servers without a skill folder, so you configure only the stdio MCP server (@qrcode-ai-com/qrcode-barcode-scanner-mcp) in YAML.

cn CLI loads mcpServers from ~/.continue/config.yaml and ignores workspace .continue/mcpServers/ files. IDE workspaces can store the configuration at .continue/mcpServers/qrscan.yaml.

The first npx launch fetches the MCP package and native decoder from npm, which can exceed Continue’s 20-second default. Setting 60,000 ms gives initial startup a full minute.

It decodes 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 with leading zeros preserved, and EAN-13 reports also parse the 14-digit GS1 GTIN. No external retail, pricing or ISBN catalogue is queried.

Continue invokes MCP tools in agent mode only. For headless cn -p commands, explicitly authorise the tool with --allow scan_file alongside --config ~/.continue/config.yaml.

Remove the qrscan entry from ~/.continue/config.yaml or delete .continue/mcpServers/qrscan.yaml. Decoding runs locally on Node.js 22.19+ or 24+ under the MIT licence via @qrcode-ai-com/qrcode-barcode-scanner-mcp, separate from QR Code AI paid plans.

Continue setup and Barcode Scanner references

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