Continue QR Code Scanner MCP Setup

Equip Continue with a real local QR decoder. It reads the image and returns the exact encoded URL or text without pixel guesswork.

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 QR code in qr-reference.png and return the exact URL.

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 QR code in your Continue workflow

QR Code Scanner returns exact URLs or text so Continue can verify links, inspect assets or run repeatable checks.

Verify QR images in agent mode

Decode project QR assets locally inside Continue agent mode and confirm exact destination URLs prior to release.

CLI and workspace YAML paths

Use ~/.continue/config.yaml for cn CLI (which ignores .continue/mcpServers/) or .continue/mcpServers/qrscan.yaml in IDE workspaces.

Headless cn -p automation

Pass --allow scan_file in headless cn -p runs to extract verified QR payloads without interactive prompts.

Test a QR image in Continue

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

qr-reference.png

Generate a text QR code encoding https://qrcode-ai.com/ and save it as qr-reference.png.

Ask Continue to decode it

Text
Read qr-reference.png with QR Code Scanner.
Return its encoded content and format as data.
Do not open the URL. If the tool is unavailable or
detects nothing, report that instead of guessing.
Expected output · QR code
https://qrcode-ai.com/

With the scanner active, Continue returns the exact encoded content and its format instead of guessing.

Sample output for qr-reference.png.

Continue QR Code Scanner MCP Setup questions

Setup options, image input, untrusted-data safety, troubleshooting 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.

Continue CLI (cn) reads mcpServers from ~/.continue/config.yaml and ignores workspace .continue/mcpServers/ folders. For workspace-scoped config in Continue IDE, save .continue/mcpServers/qrscan.yaml.

The first npx launch downloads the MCP server and native engine from npm, which can exceed Continue’s 20-second default. Setting connectionTimeout: 60000 (milliseconds) gives initial startup a full minute.

Continue invokes MCP tools in agent mode only. For non-interactive CLI runs, explicitly pass --allow scan_file, for example cn -p --config ~/.continue/config.yaml --allow scan_file.

A local path inside allowed folders, yes; a remote image URL, never. Omit the env block to expose scan_image (base64 bytes) only, or set QRSCAN_MCP_ALLOWED_DIRECTORIES to enable scan_file strictly within those folders.

No. The server returns exact content.text and content.raw as untrusted data and never opens links or interprets decoded text as commands.

Remove the qrscan entry from ~/.continue/config.yaml or delete .continue/mcpServers/qrscan.yaml. Decoding runs locally on Node.js 22.19+ or 24+ (Continue sends chat text to your configured LLM). Current releases of @qrcode-ai-com/qrcode-barcode-scanner-mcp are MIT-licensed and free.

Continue setup and QR Code Scanner references

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