Continue QR Code Scanner MCP Setup

Give Continue a real local QR decoder. It reads the image and returns the exact encoded URL or text rather than guessing from pixels.

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

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 QR code in a Continue task

QR Code Scanner returns exact URLs or text so Continue can check links, verify assets or repeat reviews.

Check QR images in agent mode

Decode project QR assets locally in Continue agent mode and verify exact destination URLs before 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 scripts to extract verified QR payloads without interactive prompts.

Try a QR image in Continue

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

qr-reference.png

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

Ask Continue to read 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 result · QR code
https://qrcode-ai.com/

With the scanner, Continue returns the exact encoded content and its format rather than a guess.

Example result for qr-reference.png.

Continue QR Code Scanner MCP Setup questions

Setup routes, image input, untrusted-data safety, troubleshooting and MIT licence.

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

Continue CLI (cn) reads mcpServers from ~/.continue/config.yaml and does not read workspace .continue/mcpServers/ folders. For workspace configuration 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 start-up a full minute.

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

A local path inside allowed folders, yes; a URL, never. Omit the env block to keep only scan_image (base64 bytes), 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 treats decoded text as commands.

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

Continue setup and QR Code Scanner references

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