Cursor QR Code Scanner MCP & Plugin

Add a proper local QR decoder to Cursor so it reads images directly and returns exact URLs or text rather than guessing from pixels.

Connect the scanner via mcp.json

Needs Node.js 22.19+ or 24+.

  1. 1

    Paste this block into your Cursor mcp.json file (or launch 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 exposes scan_image. Include env.QRSCAN_MCP_ALLOWED_DIRECTORIES if you want scan_file as well.

  3. 3

    Give it a test run. Ask Cursor:

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

The first launch downloads the MIT MCP server and native engine from npm. Future sessions reuse npm's local cache.

Open Cursor MCP install link

Use a decoded QR code in a Cursor task

QR Code Scanner outputs exact URLs or strings so Cursor can verify links, check assets or repeat QA reviews reliably.

Verify QR assets in your repo

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

Scoped file access via scan_file

Leave scan_image bytes-only by default, or allow scan_file strictly inside folders listed under QRSCAN_MCP_ALLOWED_DIRECTORIES.

Rule, skill and MCP together

Clone the local plugin bundle whenever you want Cursor's rule and SKILL.md safeguards running alongside the qrscan MCP server.

Test a QR image in Cursor

Provide the reference image, copy the prompt and verify the decoded output.

qr-reference.png

Create a text QR code encoding 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 value and symbology rather than guessing.

Sample result for qr-reference.png.

Cursor QR Code Scanner MCP & Plugin questions

Install paths, image inputs, untrusted-data safeguards, troubleshooting and MIT licence.

Add the mcpServers.qrscan JSON block into your Cursor mcp.json file, or click Cursor's official MCP install link in the setup panel to inspect and approve the npx command straight inside Cursor.

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

Out of the box, qrscan exposes only scan_image (base64 image bytes) and never fetches URLs. Add "env": { "QRSCAN_MCP_ALLOWED_DIRECTORIES": "/absolute/path/to/images" } inside the qrscan config and reload Cursor to turn on scan_file.

Vision models try to guess characters from pixels and frequently distort long URLs or short paths. qrscan executes a native decoder locally and returns exact content.text, original bytes inside content.raw and optional QR scannability diagnostics.

No. The MCP server pulls its engine via npm on startup, whereas running scripts/scan.mjs directly requires @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 decoded URLs or follows text inside a QR code as instructions.

Delete the qrscan block from mcp.json (and remove ~/.cursor/plugins/local/qrcode-barcode-scanner followed by a 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 configured LLM.

Cursor setup and QR Code Scanner references

Review the official Cursor setup repository and the MIT scanner adapter specification.