Pi Agent QR Code Scanner Extension & Skill

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

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 release).

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

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

  3. 3

    Try it. Ask Pi agent:

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

Set QRSCAN_MCP_ALLOWED_DIRECTORIES in the server env if you need scan_file alongside default scan_image. Remove it at any time with pi remove.

View plugin on GitHub

Use a decoded QR code in a Pi agent task

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

Verify QR assets in Pi tasks

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

pi/extension.js MCP hook

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

Portable skill bundled

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

Try a QR image in Pi agent

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 Pi agent 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, Pi agent returns the exact encoded content and its format rather than a guess.

Example result for qr-reference.png.

Pi Agent QR Code Scanner Extension & Skill questions

Setup routes, 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 reads package.json (pi.skills and pi.extensions) from qrcode-barcode-scanner-plugin on GitHub, loading 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 allowed directories.

No. The MCP server downloads its own engine via npm when started, whereas running 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

Inspect the official Pi agent setup source and the MIT scanner adapter contract.