Cursor QR Code Scanner MCP & Plugin

Add a proper local QR decoder to Cursor. It reads the image and returns the exact encoded URL or text instead of guessing from pixels.

Connect the scanner with mcp.json

Requires Node.js 22.19+ or 24+.

  1. 1

    Paste this entry into your Cursor mcp.json (or open Cursor's official MCP install link below and approve the command).

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

    Reload Cursor and check that qrscan lists scan_image. Add env.QRSCAN_MCP_ALLOWED_DIRECTORIES if you want scan_file as well.

  3. 3

    Test it out. Ask Cursor:

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

The first run pulls the MIT MCP server and native engine from npm. Later starts reuse npm's local cache.

Open Cursor MCP install link

Use a decoded QR code in a Cursor task

QR Code Scanner hands back exact URLs or text so Cursor can verify links, inspect assets or run repeatable checks.

Verify QR assets in your repo

Decode exported QR images straight inside Cursor and check the exact destination URL before pushing code or docs.

Scoped file access via scan_file

Keep scan_image bytes-only by default, or opt into 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 right beside the qrscan MCP server.

Test a QR image in Cursor

Provide the image, copy the prompt and check the decoded content against the original.

qr-reference.png

Create a text QR code holding 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/

Using the scanner, Cursor outputs the exact encoded content and symbology instead of guessing.

Sample output for qr-reference.png.

Cursor QR Code Scanner MCP & Plugin questions

Setup routes, image inputs, untrusted-data guardrails, troubleshooting and MIT licence.

Add the mcpServers.qrscan JSON block to your Cursor mcp.json file, or open Cursor's official MCP install link from the setup panel above to review and approve the npx command straight inside Cursor.

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

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

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

No. The MCP server pulls its engine via npm on startup, whereas calling scripts/scan.mjs directly expects @qrcode-ai-com/qrcode-barcode-scanner 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.

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

Cursor setup and QR Code Scanner references

Check the official Cursor setup source and the MIT scanner adapter specification.