Pi Agent QR Code Scanner Extension & Skill

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

Install the Pi agent package

Requires Node.js 22.19+ or 24+.

  1. 1

    Run pi install (or append @<release-tag> from GitHub Releases to pin a specific version).

    Shell
    pi install git:github.com/qrcode-ai-com/qrcode-barcode-scanner-plugin
  2. 2

    Pi loads package.json (pi.skills and pi.extensions) to wire up skills/ and pi/extension.js, registering the qrscan MCP server.

  3. 3

    Try it out. Ask Pi agent:

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

Set QRSCAN_MCP_ALLOWED_DIRECTORIES in the server environment if you need scan_file alongside the default scan_image. Uninstall at any time with pi remove.

View plugin on GitHub

Use a decoded QR code in your Pi agent workflow

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

Verify QR assets in Pi tasks

Decode project QR images locally in Pi agent and confirm exact URLs without relying on vision-model guesswork.

pi/extension.js MCP hook

Declared in package.json under pi.extensions to register the local qrscan stdio MCP server automatically.

Bundled portable skill

Loaded from skills/ via pi.skills so Pi quotes decoded QR URLs strictly as untrusted data.

Test a QR image in Pi agent

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 Pi agent 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, Pi agent returns the exact encoded content and its format instead of guessing.

Sample output for qr-reference.png.

Pi Agent QR Code Scanner Extension & Skill questions

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

Run pi install git:github.com/qrcode-ai-com/qrcode-barcode-scanner-plugin (or append @<release-tag> from GitHub Releases to pin a release).

Pi loads package.json (pi.skills and pi.extensions) from qrcode-barcode-scanner-plugin, activating skills/qrcode-barcode-scanner and pi/extension.js, which registers the local qrscan stdio MCP server.

By default qrscan exposes scan_image (base64 image bytes) only and never fetches URLs. Set QRSCAN_MCP_ALLOWED_DIRECTORIES in the server environment to enable scan_file for your permitted directories.

No. The MCP server fetches its own engine through npm at startup, whereas invoking scripts/scan.mjs directly expects @qrcode-ai-com/qrcode-barcode-scanner installed in .qrcode-barcode-scanner-runtime.

No. qrscan returns exact content.text and content.raw as untrusted data and never opens links or treats QR content as instructions.

Run pi remove git:github.com/qrcode-ai-com/qrcode-barcode-scanner-plugin.

Decoding runs locally on Node.js 22.19+ or 24+ (Pi sends conversation text to your configured LLM). Current plugin, skill, MCP server and engine releases are free and MIT-licensed, separate from QR Code AI paid plans.

Pi agent setup and QR Code Scanner references

Review the official Pi agent setup documentation and the MIT scanner adapter contract.