Cursor QR Code Scanner MCP & Plugin

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

Connect the scanner with mcp.json

Requires Node.js 22.19+ or 24+.

  1. 1

    Add this entry to your Cursor mcp.json file (or open Cursor's official MCP install link below and confirm the command).

    JSON
    {
      "mcpServers": {
        "qrscan": {
          "command": "npx",
          "args": ["--yes", "--ignore-scripts", "@qrcode-ai-com/qrcode-barcode-scanner-mcp"]
        }
      }
    }
  2. 2

    Reload Cursor and confirm qrscan lists scan_image. Add env.QRSCAN_MCP_ALLOWED_DIRECTORIES if you also want scan_file.

  3. 3

    Try a quick check. Ask Cursor:

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

The first run downloads the MIT MCP server and native engine from npm. Subsequent launches reuse npm's local cache.

Open Cursor MCP install link

Use a decoded QR code in a Cursor task

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

Verify QR assets in your repo

Decode exported QR images directly in Cursor and confirm the exact URL before releasing code or docs.

Scoped file access via scan_file

Keep scan_image bytes-only by default, or enable scan_file strictly for directories listed in QRSCAN_MCP_ALLOWED_DIRECTORIES.

Rule, skill and MCP together

Clone the local plugin bundle when you want Cursor's rule and SKILL.md guardrails alongside the qrscan MCP server.

Try a QR image in Cursor

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

Example output for qr-reference.png.

Cursor QR Code Scanner MCP & Plugin questions

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

Paste the mcpServers.qrscan JSON entry into your Cursor mcp.json file, or open Cursor's official MCP install link from the setup workbench to review and confirm the npx command directly inside Cursor.

Cloning qrcode-barcode-scanner-plugin into ~/.cursor/plugins/local/qrcode-barcode-scanner equips Cursor with the plugin rule, the qrcode-barcode-scanner skill and mcp.json together once you reload the window.

By default qrscan exposes only scan_image (base64 image bytes) and never fetches URLs. Add "env": { "QRSCAN_MCP_ALLOWED_DIRECTORIES": "/absolute/path/to/images" } to the qrscan entry and reload Cursor to enable scan_file.

Vision models guess characters from pixels and often corrupt long URLs or short paths. qrscan runs a native decoder locally and returns exact content.text, original bytes in content.raw and optional QR scannability guidance.

No. The MCP server downloads its engine via npm when started, whereas calling scripts/scan.mjs directly expects @qrcode-ai-com/qrcode-barcode-scanner to be installed once inside .qrcode-barcode-scanner-runtime.

No. Decoding returns untrusted data only. Neither the MCP server nor the plugin opens URLs or treats text inside a QR code as instructions.

Remove the qrscan entry from mcp.json (and delete ~/.cursor/plugins/local/qrcode-barcode-scanner then reload if you cloned the plugin). Current releases are free and open-source under the MIT licence, separate from QR Code AI paid plans; Cursor sends chat context to your chosen model.

Cursor setup and QR Code Scanner references

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