QR Code & Barcode Scanner

v0.3.5
io.github.qrcode-ai-com/qrcode-barcode-scanner Checked 49 minutes ago Published 3 hours ago

Local MCP server for QR and barcode image scanning, preserved payload bytes and QR diagnostics.

Choose an AI assistant to explain this destination using its public sources. Gemini opens gemini.google.com. Gemini, Copilot, DeepSeek, Meta AI and Qwen require pasting the prompt below; the other links include it in their URL. Sign-in or a manual paste may still be required. Check the answer against the documentation. Use the code block's copy control, or select its complete text, then paste it into your assistant. Open your editor to review the pinned MCP configuration before adding it. Node.js must already be installed; local file access remains disabled by default.

Summary extracted from the README.

QR Code & Barcode Scanner MCP

Ask AI

ChatGPT Claude Gemini Grok Perplexity Copilot DeepSeek Meta AI Qwen

Choose an AI assistant to explain this destination using its public sources. Gemini opens gemini.google.com. Gemini, Copilot, DeepSeek, Meta AI and Qwen require pasting the prompt below; the other links include it in their URL. Sign-in or a manual paste may still be required. Check the answer against the documentation.

Use the code block's copy control, or select its complete text, then paste it into your assistant.

Help me understand QR Code & Barcode Scanner MCP (integrations/mcp/README.md) for QR Code & Barcode Scanner, the open-source scanner. Source documentation; publication is not implied. Provided README context (verify against the sources): QR Code & Barcode Scanner MCP gives MCP clients a local tool for reading QR codes, product barcodes and supported matrix codes from images. It connects inventory workflows, label checks and QR design reviews to the same open-source scanner engine used by the project's native packages. The adapter returns the engine's structured JSON report, including exact encoded payload bytes, detected formats and QR scannability diagnostics when requested. No model API key or hosted scanner service is require Read the public documentation below. Explain what this destination does, its documented installation or access steps, a minimal example if supported, prerequisites, limitations and license. Distinguish published packages from working source and preparation. Cite your sources; if a page is unavailable or a fact cannot be checked, say so. Do not invent installation commands, benchmark results or comparisons. Answer in my language. Public sources: https://github.com/qrcode-ai-com/qrcode-barcode-scanner-rust/blob/main/integrations/mcp/README.md https://qrcode-ai.com/en-US/qr-code-scanner https://qrcode-ai.com/en-US/barcode-scanner https://qrcode-ai.com/en-US/qr-code-scanner/mcp https://qrcode-ai.com/en-US/barcode-scanner/mcp https://qrcode-ai.com/en-US/qr-code-generator https://qrcode-ai.com/en-US/barcode-generator

Add to Cursor Add to VS Code

Open your editor to review the pinned MCP configuration before adding it. Node.js must already be installed; local file access remains disabled by default.

QR Code & Barcode Scanner MCP gives MCP clients a local tool for reading QR codes, product barcodes and supported matrix codes from images. It connects inventory workflows, label checks and QR design reviews to the same open-source scanner engine used by the project's native packages. The adapter returns the engine's structured JSON report, including exact encoded payload bytes, detected formats and QR scannability diagnostics when requested. No model API key or hosted scanner service is required to run the adapter; your MCP host supplies its own assistant and user interface.

The project's browser entry points are the QR code scanner and barcode scanner. For this integration, the product documentation routes are the QR code scanner MCP guide and barcode scanner MCP guide. Related creation entry points are the QR code generator and barcode generator. If a product or guide page is unavailable, the installation, runnable example and tool reference below remain self-contained.

Use scan_image when your client already holds image bytes, and scan_file for regular image files inside directories explicitly allowed by the operator. File access is off by default. Both tools of adapter 0.3.5 use the published @qrcode-ai-com/qrcode-barcode-scanner 0.12.2 engine. The adapter and that engine are both under the MIT License. The adapter, engine and client bundles have independent versions; a change to this README does not publish a new package.

How it works · Install · Connect a client · First scan · Tools and reports · Formats · Profiles · Resources · Limits · Troubleshooting · Upgrading · License

Component Version License Purpose
MCP adapter 0.3.5 MIT Local stdio transport, tool validation and read-only resources
Scanner engine 0.12.2 MIT Native QR, barcode and matrix-code decoding and QR diagnostics
Report Pipeline 5 · score contract 6 MIT The unchanged engine report and packaged JSON schema

How it works

The picture shows the three steps of the agent route. With this adapter, your MCP host starts the server and discovers its tools, sends image bytes to scan_image or an allowed path to scan_file, and you review the JSON report the engine returns. The installation, a first scan and the tool contract follow.

Install

Use Node.js 22.19+ on the 22 line, or 24+. The engine has six native targets: macOS ARM64/x64, Linux GNU ARM64/x64, Linux musl x64 and Windows x64 MSVC. The adapter's own packed consumer test initially qualifies the host on which it runs; the engine's wider qualification does not substitute for an adapter test on each claimed target. ARMv7 and musl ARM64 are unsupported.

The release workflow installs each version in a clean project, before and after its upload, and runs modern and legacy official SDK clients against it on Linux x64 with Node.js 22 and 24. See the 0.3.5 release for provenance and verification. Product-client integrations have separate installed-consumer checks.

Install the exact adapter version from the public npm registry:

npm install --prefix ./qrscan-mcp-install --save-exact --ignore-scripts @qrcode-ai-com/qrcode-barcode-scanner-mcp@0.3.5

Version 0.3.5 moves the adapter to the MIT engine 0.12.2, which spends fewer CPU cycles on a scan and returns the same reports as 0.12.1, durations aside (what changes). Its tools, arguments, resources, limits, default profile and score contract 6 are those of 0.3.4. If you are reading this file in the repository source rather than in the installed package, check the exact npm version before using its installation command. A checked-in manifest, server.json or successful build does not establish that a version has been published.

The package installs its declared dependencies explicitly. Starting the server does not run a package manager or download missing dependencies. For a reviewed offline archive, replace the package spec above with its absolute .tgz path; installing that archive alone is not proof of registry availability.

Connect a client

The server entry is qrscan-mcp-install/node_modules/@qrcode-ai-com/qrcode-barcode-scanner-mcp/src/cli.mjs. Use its absolute path and your absolute Node executable in a client config:

{
  "mcpServers": {
    "qrscan": {
      "command": "/absolute/path/to/node",
      "args": ["/absolute/path/to/qrscan-mcp-install/node_modules/@qrcode-ai-com/qrcode-barcode-scanner-mcp/src/cli.mjs"]
    }
  }
}

The mcpServers shape is a common client convention. Use your client's current configuration location and check that it discovers scan_image, qrscan://scan-report-schema and qrscan://limits. The installed executable also appears as qrscan-mcp; the explicit Node and script paths above make the selected runtime and installed copy unambiguous.

Start it with npx

Start the published adapter with npx, an exact version and no install script:

{
  "mcpServers": {
    "qrscan": {
      "command": "npx",
      "args": ["--yes", "--ignore-scripts", "@qrcode-ai-com/qrcode-barcode-scanner-mcp@0.3.5"]
    }
  }
}
  • An exact version, never a range or latest. The client runs the version that was qualified, and a newer one reaches it only when this entry changes.
  • The first start downloads the adapter and its dependencies from npm into npm's cache, then runs it. Later starts reuse that copy. As with any npm install without a lock file, what the adapter's three pinned dependencies depend on is resolved when that copy is made.
  • --ignore-scripts keeps npm from running any install script on the way.
  • To run a reviewed copy that never contacts npm at start, use the installed form above, with absolute paths.
  • To remove it, delete the entry from the client. The files npx kept are under _npx in npm's cache (npm config get cache).

The repository's Destination acceptance workflow starts the published 0.3.4 through these npx options in an empty home, on Linux with Node.js 22 and 24 and on macOS with Node.js 24. It reads the QR code and the Code 128 through scan_image in the three profiles; its three receipts for 0.3.4, with engine 0.12.1 and score contract 6, passed on 27 November 2026 in run 46020527990, as those for 0.3.3 did on 25 November in run 45610855025. Windows is not checked: a client there may need to start npx through cmd. That job moves to 0.3.5 once 0.3.5 is public on npm; until its receipts exist, this check covers 0.3.4 only.

The 0.3.4 release workflow qualified its packed archive, published it through GitHub Trusted Publishing on its tag agents-v0.3.4, then installed and tested the public npm version on Linux x64 with Node.js 22 and 24. The 0.3.3 release workflow, the 0.3.2 release workflow and the 0.3.1 release workflow did the same for 0.3.3, 0.3.2 and 0.3.1. The same workflow runs for 0.3.5 on its tag agents-v0.3.5; this README was packed before that run, so the 0.3.5 release page records its outcome. Bundles keep their own versions until their installed-client checks pass.

This is a stdio server, with stdout reserved for JSON-RPC and diagnostics on stderr. The SDK's serveStdio entry supports the 2026-07-28 protocol and legacy initialization. No HTTP service or hosted MCP endpoint is included. The Official MCP Registry lists version 0.3.4 under io.github.qrcode-ai-com/qrcode-barcode-scanner as its latest version since 27 November 2026, beside 0.3.3, 0.3.2 and 0.3.1; a later version joins that listing only after its own npm publication. The entry points to the same npm package and stdio transport described here. For a specific product client, verify tool discovery and a fixture call after installation.

First scan from Node.js

An MCP host can call the tools directly; you do not need an LLM to test the adapter. This example uses the pinned official TypeScript SDK from JavaScript and the exact package installed above. From the directory in which you ran the installation command, enter the new consumer project and add the client:

cd qrscan-mcp-install
npm install --save-exact --ignore-scripts @modelcontextprotocol/client@2.3.1

Download the versioned mixed QR/Code 128 test image, or use an image of your own. This command is for a POSIX shell; in PowerShell, use curl.exe in place of curl:

curl --fail --location --output mixed-code128-qr.png https://raw.githubusercontent.com/qrcode-ai-com/qrcode-barcode-scanner-rust/agents-v0.3.2/fixtures/symbology/mixed-code128-qr.png

Save the following as scan.mjs in qrscan-mcp-install. It reads one image in the client process, sends its bytes to scan_image, prints the full report, reports tool errors and closes the child server. It grants the server no additional image directories.

import { readFile } from "node:fs/promises";
import { fileURLToPath } from "node:url";
import { Client } from "@modelcontextprotocol/client";
import { StdioClientTransport } from "@modelcontextprotocol/client/stdio";

const imagePath = process.argv[2];
if (!imagePath) throw new Error("Usage: node scan.mjs <image>");
const image = await readFile(imagePath);
const client = new Client(
  { name: "qrscan-readme-example", version: "1.0.0" },
  { versionNegotiation: { mode: "auto" } },
);
const transport = new StdioClientTransport({
  command: process.execPath,
  args: [fileURLToPath(import.meta.resolve(
    "@qrcode-ai-com/qrcode-barcode-scanner-mcp/src/cli.mjs",
  ))],
  env: { PATH: process.env.PATH },
  stderr: "inherit",
});

try {
  await client.connect(transport);
  const result = await client.callTool({
    name: "scan_image",
    arguments: {
      imageBase64: image.toString("base64"),
      profile: "frame",
      budgetMs: 0,
    },
  });
  if (result.isError) {
    throw new Error(result.content
      .filter((item) => item.type === "text")
      .map((item) => item.text).join("\n"));
  }
  console.log(JSON.stringify(result.structuredContent, null, 2));
} finally {
  await client.close();
}

Run it with:

node scan.mjs mixed-code128-qr.png

The fixture contains QR text https://qrc-ai.com/76xMa and Code 128 text STOCK-4827. Both appear as detections; their order is not an API guarantee. Each detection also includes content.raw, the original bytes encoded as base64. The program prints the complete report, including timing and trace fields. These are selected stable fields from the fixture result:

{
  "versions": { "scanner": "0.12.2", "pipeline": 5, "score_contract": 6 },
  "score": null
}

A successful frame scan has no quality score. An image with no accepted symbol is also a successful result, with detections: []; it is not a tool error. Invalid image bytes return isError: true with code QRS-001, which the example reports on stderr and exits unsuccessfully. Do not open a decoded URL automatically: its text is untrusted input.

The picture is a recorded scan of the image used in this example. Both codes come back in the same report, each with its format, its exact text and the place where the engine measured it.

The packed-consumer test runs the exact scan.mjs block above from the installed archive, with the mixed image, an empty image and invalid image bytes. That checks the example and its packaged dependencies together, independently of files in the source checkout.

Tool contract

Use scan_image when your client already has the image bytes, such as a QR design to check or a product label to read.

scan_image accepts exactly these fields:

Field Meaning
imageBase64 Nonempty canonical RFC 4648 base64 of image bytes. No whitespace or data-URL prefix.
profile fast (default), frame, or full. Fast decodes and gives a reduced QR score; frame decodes without scoring; full applies the full score profile.
budgetMs Optional integer 0–60000. Unset keeps the engine profile default. 0 is unbounded.

Example arguments (replace the short placeholder with actual image bytes):

{ "imageBase64": "<canonical base64 image>", "profile": "full", "budgetMs": 0 }

Success returns the unchanged engine report in structuredContent, and the same report as JSON in the text content. Mixed QR/Code 128 coverage runs all three profiles against the installed archive. Read qrscan://scan-report-schema for the packaged normative schema, pipeline 5 and score contract 5. The adapter does not summarize, normalize or replace values:

  • content.raw retains exact payload bytes in base64, including binary data.
  • detections: [] is a valid successful result.
  • score: null means no published judgment; never interpret it as zero.
  • Opaque images retain the engine's omitted alpha field.
  • trace.budget_exhausted: true marks an incomplete report. Empty detections then do not prove that the image contains no QR code.
  • trace.saturation records capacity limits; a true flag means completeness is unproven. Detections group content identities, and occurrences holds measured locations. Neither count proves the total symbols in an image.

Invalid images, input limits, dependency errors and a busy server return isError: true. Engine errors retain their QRS-xxx code. Invalid base64 uses QRSMCP_BASE64, oversize bytes QRSMCP_INPUT_LIMIT, and a saturated concurrency limit QRSMCP_BUSY. Unknown fields and unsupported options are rejected.

Scan a file by path: scan_file

An agent rarely holds image bytes: it holds a path, and a real image is too long to write out as a base64 argument. scan_file reads the file itself. It ships since adapter 0.3.1; the 0.2.1 package has scan_image only.

The tool is off by default. It exists only when the operator who starts the server names the directories it may read:

{
  "mcpServers": {
    "qrscan": {
      "command": "/absolute/path/to/node",
      "args": ["/absolute/path/to/qrscan-mcp-install/node_modules/@qrcode-ai-com/qrcode-barcode-scanner-mcp/src/cli.mjs"],
      "env": { "QRSCAN_MCP_ALLOWED_DIRECTORIES": "/absolute/path/to/images" }
    }
  }
}

Several directories are separated like PATH: : on macOS and Linux, ; on Windows. With the variable unset, a client sees the same bytes-only server as before, and scan_file is not listed.

Field Meaning
path Absolute path of one image file inside an allowed directory, at most 4096 characters.
profile Same as scan_image.
budgetMs Same as scan_image.
{ "path": "/absolute/path/to/images/label.png", "profile": "full", "budgetMs": 0 }

The result is the same unchanged engine report as scan_image gives for the same bytes. Both tools share the byte, pixel and concurrency limits. A refusal returns isError: true with one of these codes:

Code When
QRSMCP_PATH The path is relative, holds a NUL character or is too long.
QRSMCP_PATH_DENIED The path does not lead inside an allowed directory. The answer is the same whether the file exists or not.
QRSMCP_FILE Inside an allowed directory, but missing, empty, a directory, a pipe or another non-regular file, or changed while it was read.
QRSMCP_INPUT_LIMIT The file is larger than the byte limit.

What it reads

The adapter holds no decoder: both tools hand the image to the engine, so they read what engine 0.12.2 reads. Codes of different formats in the same image come back in one report.

Family Formats
QR QR Code, Micro QR, rectangular Micro QR (rMQR)
Matrix and stacked Data Matrix, Aztec, PDF417, MaxiCode
Retail EAN-13, EAN-8, UPC-A, UPC-E
Other linear Code 128, Code 39, Code 93, Codabar, ITF, GS1 DataBar, GS1 DataBar Expanded, Telepen

The engine's supported formats section states the known limits.

Choose a profile

Profile Use Reading the result
fast The adapter default since 0.3.3. Decode with the engine's reduced QR assessment, under an 800 ms default budget. Read the returned score and trace; a score may remain unmeasured.
frame Decode without the QR scoring pass, under the 80 ms default budget of a camera frame. score is null.
full Request the full QR assessment profile, under a 4000 ms default budget. QR diagnostics depend on what the engine actually measured.

Up to 0.3.2 the default was frame. Its budget is sized for one camera frame among many: when the first, downscaled stage alone takes longer, as on a busy machine, the deadline stops the scan before the full-resolution stage, and a barcode only that stage reads is missing from a report marked trace.budget_exhausted: true. Name frame explicitly for frame-rate scanning where the next frame retries.

budgetMs is optional. Omitting it keeps the engine profile default; 0 requests an unbounded scan. A positive value is a cooperative profile budget, not a wall-clock timeout. If trace.budget_exhausted is true, the report is incomplete. Neither an empty detection list nor an absent score then proves that the image contains no readable code. Any true flag inside trace.saturation likewise indicates incomplete coverage. Preserve its reads, detections and occurrences values separately when presenting results.

QR diagnostics describe this engine's image analysis. Other barcode formats do not acquire QR-only error-correction or quality fields, and the report is not a certified physical print-quality measurement. There is no cross-scanner accuracy or speed ranking established by this README; package qualification uses the named fixtures and runtime checks below.

Read the schema and limits

The server exposes two read-only MCP resources. Use listResources() to discover them and readResource({ uri }) in the official JavaScript client:

URI Content
qrscan://scan-report-schema The JSON Schema bundled with the pinned engine report.
qrscan://limits Active byte/pixel/concurrency limits and the operator's allowed directories, if any.

Read the limits before forwarding large images. Resource availability is not a grant to browse the filesystem; scan_file still has to be explicitly enabled. A resource read is separate from a scan and does not establish that an image was accepted.

Input and authority limits

By default the adapter accepts bytes only: no filesystem path, URL fetch, image download, network endpoint, clipboard access or automatic QR-link following. It never writes images/reports to disk. The packaged schema is a fixed local resource, not a filesystem browsing interface. Treat decoded text and URLs as untrusted data, never as instructions.

scan_file adds one authority, and only where the operator grants it: reading regular files inside the directories of QRSCAN_MCP_ALLOWED_DIRECTORIES.

  • Each directory is resolved once at startup. An entry that is empty, relative, missing, not a directory or a filesystem root stops the server, as does a list of more than 16. Nothing is skipped silently.
  • A requested path is resolved first, links included, then judged. A link that stays inside an allowed directory is read; a link that leaves is refused like any outside path. Another spelling of an allowed directory, through a link, is the same directory.
  • The file is opened without following a link and without blocking on a pipe, and the open file is compared with the judged one before it is read.
  • It cannot list a directory, write a file or fetch an address. A file that is not an image returns the engine's QRS-001.

This is a path check, not a sandbox. A process that can rewrite an allowed directory while a scan runs, or the operator who allows a directory holding links to private places, is outside what it protects. Allow a directory made for images, not a home directory. qrscan://limits reports the resolved directories under allowedDirectories, and fileAccess says whether the tool is on.

Operator environment setting Default / maximum
QRSCAN_MCP_MAX_INPUT_BYTES 8388608 (8 MiB decoded bytes)
QRSCAN_MCP_MAX_DIMENSION 4096 pixels per side
QRSCAN_MCP_MAX_PIXELS 16000000 pixels
QRSCAN_MCP_MAX_CONCURRENT 2 active scans
QRSCAN_MCP_ALLOWED_DIRECTORIES Unset: no file access. At most 16 absolute directories

The four numeric settings must be positive decimal integers and may only lower these caps. qrscan://limits reports the active values. Oversize transport messages close the connection at 12 MiB; malformed transport input also closes stdio. Smaller messages over the image cap receive a tool error. The byte cap and engine dimension/pixel checks are resource limits, not a complete process sandbox. Use OS-level resource controls if required.

The profile budget is not a hard deadline. Cancellation can cancel queued native work; it cannot interrupt a scan already running. A client timeout does not establish that native work stopped. Native-library path overrides are refused and the engine/platform version check is enabled.

Runtime scanning makes no network calls. Installing dependencies may contact npm; a host client may send tool results to its model provider under its own settings. This package does not control that host behavior.

Troubleshooting

Symptom Check
The client does not discover scan_file. It is absent by default. Set QRSCAN_MCP_ALLOWED_DIRECTORIES in the server process configuration, then restart that process.
QRSMCP_PATH_DENIED The resolved image path must be inside an explicitly allowed directory. The refusal does not reveal whether an outside file exists.
QRSMCP_BASE64 Send canonical base64 bytes only, without whitespace or a data: prefix. Prefer scan_file when the operator has enabled it.
QRS-001 The supplied bytes are not an image the pinned engine can read. Check the file before encoding it.
QRSMCP_INPUT_LIMIT or an MCP transport closure Check qrscan://limits. Base64 expands the input and the framing ceiling is independent of the decoded-image ceiling.
QRSMCP_BUSY Wait for the active scan and retry; scan_image and scan_file share the same concurrency limit.
Native dependency cannot load Check the selected Node runtime, operating system, CPU and libc against the engine targets above. Preserve npm's optional native dependencies. Do not override the native-library path.
The host times out A host timeout does not interrupt an already-running native scan. Choose a smaller input or a measured profile/budget appropriate to that host.

A protocol connection, a listed tool and a successful scan are three different checks. After changing a client configuration, list the tools and run a known image; do not infer a working scanner from the configuration screen alone.

Upgrading

From 0.3.4

Adapter 0.3.5 changes its engine dependency from 0.12.1 to 0.12.2. A report's versions now read "scanner": "0.12.2"; the pipeline stays 5 and the score contract 6. Engine 0.12.2 reads the same codes and returns the same reports as 0.12.1, durations aside: a scan no longer reads the same image twice, and three of its pixel loops take fewer cycles. The engine's 0.12.2 changelog gives the measures. qrscan://scan-report-schema serves the 0.12.2 schema, byte for byte the one of 0.12.1. The tools, their arguments, the resources, the limits and the default profile do not change.

From 0.3.3

Adapter 0.3.4 changes its engine dependency from 0.12.0 to 0.12.1. A report's versions now read "scanner": "0.12.1" and "score_contract": 6: a client that pins the contract number must accept 6. Decoded contents do not change, but some scores do. The correction margin of a QR code is now measured in the image: a QR code that only the rxing decoder read can gain score.uec, a margin can lower a score where real damage was not counted before, and a clean QR code no longer pays a margin cap it did not earn. A linear barcode in a wide frame is judged at its own width, so its score can move. The engine's 0.12.1 changelog lists the measured fixtures. qrscan://scan-report-schema serves the 0.12.1 schema, which adds the optional trace.formats; the adapter passes no formats option, so its reports never carry that key. The tools, their arguments, the resources, the limits and the default profile do not change. Going on to 0.3.5 also brings engine 0.12.2, above.

From 0.3.2

Adapter 0.3.3 changes the default profile of scan_image and scan_file from frame to fast; qrscan://limits reports "defaultProfile": "fast". A call that names its profile is unchanged. A call that names none can now reach the enhance stage that frame skips, returns a reduced QR score where the engine measured one instead of score: null, and may use the fast profile's 800 ms default budget instead of 80 ms. On 25 November 2026, two default 0.3.2 calls on a busy Mac returned only the QR code of the mixed QR/Code 128 image used above, with trace.budget_exhausted: true after 86 and 188 ms. The engine 0.12.0, the arguments, the resources, the limits and the report contract do not change. To keep the former behavior, pass "profile": "frame". Going on to 0.3.4 and 0.3.5 also brings engines 0.12.1 and 0.12.2 and score contract 6, above.

From 0.3.1

Adapter 0.3.2 changes its engine dependency from 0.11.0 to 0.12.0, and with it the license of what you install: adapter 0.3.2 and engine 0.12.0 are under the MIT License, while the published adapter 0.3.1 and engine 0.11.0 keep the AGPL-3.0-or-later license they were released with. The tools, their arguments, the resources, the limits and the report contract do not change; a report's versions.scanner reads 0.12.0. Going on to 0.3.3, 0.3.4 and 0.3.5 also brings the default profile and engine changes above. Update the exact version in your client configuration, or rerun the install command above in an installed project.

From 0.2.1

Adapter 0.3.x keeps the byte-based scan_image entry of 0.2.1 and adds scan_file; going straight to 0.3.5 also brings the engine and license change of 0.3.2, the default profile of 0.3.3, the engine 0.12.1 of 0.3.4 and the engine 0.12.2 of 0.3.5, described above. To use scan_file, update the pinned adapter version and explicitly allow the intended image directories. With that setting absent, file access remains disabled. Client bundles and the Official MCP Registry keep their own publication and installed-consumer checks.

The next engine release is prepared separately. Do not substitute an unpublished engine or adapter version into these installation examples merely because repository source has changed. Check the exact registry version and its release evidence before updating a host configuration.

The same engine in other runtimes

Runtime Package How it scans
Rust qrcode-barcode-scanner on crates.io In process
Node.js @qrcode-ai-com/qrcode-barcode-scanner on npm In process, native; the engine this adapter installs
Browser @qrcode-ai-com/qrcode-barcode-scanner-wasm on npm In the page, WebAssembly
Python qrcode-barcode-scanner on PyPI In process
Go qrcode-barcode-scanner-go Through the installed qrscan
PHP qrcode-barcode-scanner-php Through the installed qrscan
Command line qrscan One command, one JSON report

The Rust, Node.js, browser and Python packages hold the engine. The Go and PHP packages hold no decoder: each one starts qrscan and hands you its report. An agent host that loads skills rather than MCP servers can use the portable skill, which runs the same Node.js engine.

Language and platform names belong to their owners. They identify a runtime and imply no endorsement.

Development and qualification

From this directory:

npm ci --ignore-scripts
npm test

The test packs this allowlisted directory, installs its archive into a new directory outside the checkout, and drives the installed stdio entry with pinned official SDK clients. It checks modern discovery and legacy handshake, exact pristine Full score 100, Frame null score, the advertised fast default of both tools and its report, binary payload bytes, valid empty detection, invalid image/base64/unsupported options and operator limits, unchanged report parity, clean shutdown and the package file inventory. For scan_file it checks that the tool is absent by default, the three profiles on the mixed QR/Code 128 file with report parity, the refusals above with links that stay and links that leave, a named pipe, the byte ceiling, the capacity shared with scan_image, and that a wrong directory setting stops the server. Links and the pipe are checked on macOS and Linux only. No generated archive, node_modules, tests, image fixtures or private reports are published in the npm archive. The source, runtime entry, schema and version-specific license are included.

Adapter source: integrations/mcp. Source engine: v0.12.2. The adapter is versioned separately from the engine. A local packed-consumer pass qualifies the tested archive and host; public registry installation and additional platforms retain separate checks.

SDK API sources: official TypeScript SDK, stdio server guidance, server metadata specification.

License and maintainers

Created and maintained by Thibaut Mélen & Nicolas Cella for QR Code AI, a product of SuperNovae Studio. Adapter 0.3.5 is distributed under the MIT License; see LICENSE. It installs the scanner engine @qrcode-ai-com/qrcode-barcode-scanner 0.12.2 as a separate npm dependency; that engine is MIT too and ships its own LICENSE. The MCP server SDK (Apache-2.0) and zod (MIT) keep their own license notices.

Earlier archives keep the license they were published with. Adapter 0.3.1 and the engine 0.11.0 it installs were released under AGPL-3.0-or-later, and those published versions keep it. Review the packaged license files of the exact versions you install for your intended distribution and deployment.

Source license

Project-authored scanner code and documentation in this checkout are available under the MIT License. You may use, modify and redistribute this source in open-source or proprietary applications, including commercial products, while preserving the copyright and permission notice. Thibaut Mélen & Nicolas Cella develop QR Code AI at SuperNovae Studio.

Retained third-party code, dependencies, artwork and test data keep their own licenses and notices. The licensing guide explains these component boundaries; the project license does not assign a license to an unrelated platform or service.

Published archives retain the license shipped with their version. A pinned engine, adapter or bundle may therefore have different terms from this working source. Read its packaged license and the license history before reuse. The source change does not replace an archive or publish a new version.