Continue Barcode Scanner MCP Setup

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

Add qrscan in Continue YAML

Requires Node.js 22.19+ or 24+.

  1. 1

    Add the mcpServers item to ~/.continue/config.yaml for cn CLI, or save this file as .continue/mcpServers/qrscan.yaml in 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 in headless cn -p) and check that qrscan loads within the 60s timeout.

  3. 3

    Try it. Ask Continue:

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

Continue configures MCP servers only (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 a Continue task

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

Verify barcode labels in agent mode

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

CLI and workspace YAML paths

Put qrscan in ~/.continue/config.yaml for cn CLI or .continue/mcpServers/qrscan.yaml for IDE workspace configs.

Headless cn -p automation

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

Try a barcode image in Continue

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 Continue 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, Continue returns the exact identifier and its format rather than a guess.

Example result for barcode-reference.png.

Continue Barcode Scanner MCP Setup questions

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

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

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

The first npx launch downloads the MCP package and native decoder from npm, which can exceed Continue’s 20-second default. 60,000 ms gives initial start-up one 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, plus 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 database is queried.

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

Delete the qrscan entry from ~/.continue/config.yaml or remove .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 on npm, separate from QR Code AI paid plans.

Continue setup and Barcode Scanner references

Inspect the official Continue setup source and the MIT scanner adapter contract.