Continue QR Code Scanner MCP Setup

Give Continue a dedicated local QR decoder. It reads the image and returns the exact encoded URL or text without pixel-based guesswork.

Add 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 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 confirm qrscan loads within the 60s timeout.

  3. 3

    Test it out. Ask Continue:

    Read the QR code in qr-reference.png and return the exact URL.

Continue configures MCP servers only (no skill folder). connectionTimeout: 60000 gives the first npx download one 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 outputs 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 in Continue agent mode and confirm exact destination URLs before deployment.

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 confirmation.

Test a QR image in Continue

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

qr-reference.png

Create a text QR code that encodes 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 output · QR code
https://qrcode-ai.com/

With the scanner configured, 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 routes, image input, untrusted-data safety, troubleshooting and MIT licence.

No. Continue documents 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 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 startup 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; an image URL, never. Omit the env block to keep only scan_image (base64 bytes), or set QRSCAN_MCP_ALLOWED_DIRECTORIES to enable scan_file strictly inside 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 entry 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.