OpenQR

uk.openqr由 openqr.uk 發布官方發布者v1.0.4更新於 Oct 24, 2026

Generate, edit and track dynamic (editable) QR codes with scan analytics. Hosted MCP and REST API.

已驗證Streamable HTTP可網頁執行效率與工作流資料與分析商業與電商

概覽

AI 產生的概覽

OpenQR 可產生靜態與可編輯的動態 QR 碼(含付款載荷),並透過託管 API 統計掃描資料。

可以做什麼
從文字或網址產生靜態 QR 碼,輸出 PNG 或 SVG,並可建構 PIX、EPC/SEPA 與 UPI 付款載荷,視需要轉成圖片。建立、修改、列出與刪除動態 QR 碼,列印後仍可更改目標網址,支援一次批次建立最多 200 個。讀取動態 QR 碼的掃描統計,並管理把連結點擊與掃描分開計算的連結別名。用資料夾和可重複使用的樣式主題整理 QR 碼,並可讀取內建樣式預設。管理帳戶的品牌子網域,包括申請、變更或釋放。
適用情境
當助理需要為連結、Wi-Fi、聯絡人名片或付款產生 QR 碼,或需要在聊天用戶端中管理可編輯 QR 碼、掃描統計與短連結時使用。
執行需求
可透過 Streamable HTTP 連線 openqr.uk 遠端端點,或在本地以 stdio 執行 npm 套件。所有工具都需要 OpenQR API 金鑰,透過 Authorization 的 bearer 標頭或 OPENQR_API_KEY 環境變數傳入;金鑰可在服務商的 API 頁面免費取得。需要能連線至託管服務的網路。
安裝前請注意
所有工具都需要 API 金鑰,金鑰會傳送到託管服務。動態 QR 碼、資料夾、主題與子網域都存放在你的帳戶中,刪除類工具會永久移除 QR 碼、資料夾或主題;刪除動態 QR 碼後其短連結將失效。部分功能受方案限制:免費帳戶只有一個可編輯 QR 碼且沒有連結別名,品牌子網域僅限 Pro。付費方案按月或按年收費。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 OpenQR,將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/uk.openqr%2Fqr/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "openqr": {
      "type": "http",
      "url": "https://openqr.uk/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

OpenQR

Free, open-source, watermark-free QR code generator. Runs entirely in your browser — no tracking, no sign-up, no limits.

[License: AGPL-3.0] [Next.js] [No watermark] [Listed on mcpservers.org]

Most online QR generators bait you with "free" and then add a watermark, cap your download size, hide vector export behind a paywall, or route your code through their servers so it dies when you stop paying. A QR code is just an open standard (ISO/IEC 18004) that costs nothing to generate. OpenQR keeps it that way.

This repository is the basic generator tool — the reference open-source implementation. It is deliberately small and easy to fork.

If OpenQR is useful to you, a star on the repository helps other people find it. That is the whole ask.

Hosted version: free API, MCP server and editable codes

Everything in this repo is and stays free, with no watermark and no expiry. The hosted build at openqr.uk adds an optional account layer for people who want editable codes and automation:

  • Dynamic / editable QR codes with scan analytics. Change the destination after you've printed it. 1 free on a free account (7 days of scans by country); 25 editable codes on Pro at £9/month or £90/year, which also unlocks a 90-day scan-analytics window plus town and region detail, device and referrer breakdowns with CSV export, a branded subdomain, and password-protected codes. Existing subscribers keep their current plan and price.
  • Free REST API. Generate codes and manage dynamic codes programmatically. OpenAPI spec at /openapi.json; interactive docs at openqr.uk/api.
  • Hosted MCP server at https://openqr.uk/mcp (Streamable HTTP). Generate and manage QR codes directly from Claude, Cursor or any MCP client. Listed in the official MCP Registry. Remote-capable clients connect to that URL directly; stdio-only clients can bridge to it with npx -y @open-qr/mcp and OPENQR_API_KEY set (details).

The static generator in this repository never calls any of that. It stays 100% client-side (see Privacy), and none of it is required to use or self-host the generator.

Connecting an MCP client

Get a free key at openqr.uk/api, then point your client at the server with the key as an auth header.

Claude Code:

bash
claude mcp add --transport http openqr https://openqr.uk/mcp \  --header "Authorization: Bearer oqr_YOUR_KEY"

Cursor (~/.cursor/mcp.json), and any other client that speaks Streamable HTTP:

json
{  "mcpServers": {    "openqr": {      "url": "https://openqr.uk/mcp",      "headers": {        "Authorization": "Bearer oqr_YOUR_KEY"      }    }  }}

Tools

The hosted MCP server at https://openqr.uk/mcp exposes these tools (run tools/list for the live set). Every tool requires a free API key — create one at openqr.uk/api and pass it as Authorization: Bearer oqr_... on the MCP connection.

ToolWhat it does
generate_qrGenerate a static QR code from any text or URL. Returns a PNG image or SVG markup.
create_dynamic_qrCreate an editable QR code whose destination you can change later without reprinting.
update_dynamic_qrChange a dynamic code's destination, label, custom short link, tags or folder.
get_dynamic_qrGet one code's full details: destination, short link, label, type, tags, folder, status, created date.
get_scansScan statistics for a dynamic code.
list_dynamic_qrList your dynamic codes with id, short URL, destination, label and status.
delete_dynamic_qrPermanently delete a dynamic code. Its short link stops working.
bulk_create_dynamic_qrCreate up to 200 dynamic codes at once.
list_foldersList your folders.
create_folderCreate a folder to organise codes.
delete_folderDelete a folder. Its codes are un-filed, not deleted.
list_themesList saved style themes. Apply one by passing its id or name as theme.
create_themeSave a reusable style theme (colours, dot and corner styles).
delete_themeDelete a saved theme. Codes already styled with it keep their look.
get_subdomainShow the branded subdomain on the account, and whether it is suspended.
set_subdomainClaim or change the branded subdomain so codes also resolve at {name}.oqr.to. Pro only.
clear_subdomainRelease the branded subdomain. Codes stay live on the plain short link.

It also exposes 5 resources and 4 prompts:

  • Resources are built-in QR style presets at openqr://preset/classic, /teal, /high-contrast, /dots and /classy. Read one and pass its style to create_theme.
  • Prompts are create_tracked_qr, bulk_qr_for_print, brand_a_qr and qr_scan_report.

Features

  • No watermarks, no size limits, no sign-up — every feature is free
  • Private by design — codes are generated entirely in your browser; the content never touches a server
  • Export anywhere — PNG / WebP up to 4096px, plus true-vector SVG and PDF
  • Full styling — colours, gradients, dot & corner styles, logo embedding, "Scan me" frames
  • Smart input — paste a link or text and the type is auto-detected
  • Rich payloads — URL, text, email, phone, SMS, WhatsApp, Wi-Fi, and a map-based location picker
  • One-click copy, shareable design links, light/dark, responsive, keyboard-accessible

Quick start

bash
pnpm installpnpm dev        # http://localhost:3011

Build & self-host

bash
pnpm buildpnpm start      # serves on :3011 (standalone output)

It's a standard Next.js app — host it anywhere (a VPS, a Raspberry Pi, Cloudflare, behind any reverse proxy). It needs no environment variables, no database, no secrets to run. The dev/start scripts above use port 3011; the Docker image below serves on 3000. The only configuration either way is PORT.

Deploy (Docker image)

A multi-arch image (linux/amd64, linux/arm64) is published to GHCR on every release tag:

bash
docker run -d --name openqr --restart unless-stopped -p 3000:3000 ghcr.io/open-qr/openqr:latest

Or with docker-compose.yml:

bash
docker compose up -d          # update later: docker compose pull && docker compose up -d

Pin a version tag in production (ghcr.io/open-qr/openqr:1.0.1); latest moves with every release. The container is a prebuilt, non-root standalone server with a healthcheck, and carries LICENSE and NOTICE inside the image.

One-click deploys

HostLinkNotes
DigitalOcean App Platform1-click buttonReads .do/deploy.template.yaml; smallest instance, port 3000
RenderBlueprint buttonReads render.yaml; assumes a paid instance (Render's free tier sleeps)
KoyebDeploys from the imageAny public ghcr.io/open-qr/openqr tag, no repo build

Deploying through any of these adds no terms beyond AGPL-3.0: the source is this repository, and the image carries the licence and third-party notices.

Embedding

The <Generator/> component is self-contained and configurable:

tsx
import { Generator } from "@/components/generator/generator";
// Full page (default OpenQR logo header):<Generator />
// Embedded widget, your own branding, no default header:<Generator embedded header={<MyLogo />} />
// Inject your own post-download call-to-action:<Generator renderSuccess={(variant) => <MySupportCluster variant={variant} />} />

The tool ships zero analytics. If you want anonymous UI events (e.g. which export format was used — never the QR content), inject a handler:

ts
import { setTrackHandler } from "@/lib/analytics";setTrackHandler((action, name, category) => myAnalytics.track(category, action, name));

Privacy

QR generation happens 100% in your browser. The only optional outbound calls are in the Location tool: map tiles from CARTO and address lookups via OpenStreetMap's Nominatim. Nothing else leaves the device.

Tech stack

Next.js 16 (App Router) · React 19 · TypeScript (strict) · Tailwind v4 · qr-code-styling · Leaflet · pnpm.

Contributing

See CONTRIBUTING.md. Keep it simple, accessible, client-side, and free — no feature should ever require payment to remove a watermark or unlock a format.

Licence

AGPL-3.0 © 2026 Sam Moreton.

You're free to use, study, modify, self-host, and redistribute OpenQR under the AGPL-3.0. If you run a modified version as a network service, the AGPL requires you to make your source available under the same licence. If that doesn't suit your use case, a commercial licence is available — see NOTICE.

來源:README.md,提交 dafdc07

工具

23

generate_qr

Generate a static QR code from any text/URL. Returns a PNG image (or SVG markup). Requires an OpenQR API key.

輸入參數data必填sizethemeformat

generate_pix_code

Build a static PIX (BR Code) payment payload for Brazil and optionally render it as a QR image. Returns the payload string by default (render it with generate_qr, or pass format). Static and untracked — nothing is saved to the library. Requires an OpenQR API key.

輸入參數key必填city必填name必填sizetxidforceamountformatsingleUsedescription

generate_epc_code

Build a static EPC/SEPA payment payload (EPC069-12, the GiroCode/BezahlCode European banks scan) and optionally render it as a QR image. Returns the payload string by default. Static and untracked — nothing is saved to the library. Requires an OpenQR API key.

輸入參數biciban必填name必填sizetextforceamountformatpurposereference

generate_upi_code

Build a static UPI (upi://pay) payment payload for India and optionally render it as a QR image. Returns the payload string by default. Static and untracked — nothing is saved to the library. Requires an OpenQR API key.

輸入參數vpa必填notesizeforceamountformatpayeeName必填

create_dynamic_qr

Create an editable (dynamic) QR code whose destination you can change later without reprinting. Requires an OpenQR API key.

輸入參數labelthemedestination必填

create_static_qr

Save a static QR code to your library from structured fields: wifi, contact (vCard), email, SMS, WhatsApp, location, text, phone or URL. Static codes bake the content into the code itself — no short link, no scan analytics, not editable later. Render the returned payload with generate_qr. Requires an OpenQR API key.

輸入參數type必填labelthemefields必填

update_dynamic_qr

Edit a dynamic QR code: change its destination, label, custom short link (slug), tags or folder. Pass only the fields you want to change. Requires an OpenQR API key.

輸入參數id必填pinslugtagslabelthemestatuspasswordfolder_idlock_hintdestinationpause_until另有 2 個

get_dynamic_qr

Get the full details of one of your QR codes by id: destination, short link, label, type, tags, folder, status and created date. Requires an OpenQR API key.

輸入參數id必填

get_scans

Get scan statistics for a dynamic QR code. Requires an OpenQR API key.

輸入參數id必填

list_dynamic_qr

List your dynamic (editable) QR codes — id, short URL, destination, label and status. Requires an OpenQR API key.

輸入參數limit

delete_dynamic_qr

Permanently delete a dynamic QR code. The short link stops working. Requires an OpenQR API key.

輸入參數id必填

bulk_create_dynamic_qr

Create up to 200 dynamic QR codes at once. Requires an OpenQR API key.

輸入參數codes必填theme

list_folders

List your folders (id and name). Requires an OpenQR API key.

無需輸入參數。

create_folder

Create a folder to organise codes. Requires an OpenQR API key.

輸入參數name必填

delete_folder

Delete a folder (its codes are un-filed, not deleted). Requires an OpenQR API key.

輸入參數id必填

list_themes

List your saved style themes (id, name) — apply one by passing its id or name as `theme` to generate/create/update tools. Requires an OpenQR API key.

無需輸入參數。

create_theme

Save a reusable style theme. `style` is a QR style object (fgColor, bgColor, dotType, cornerSquareType, etc.). Requires an OpenQR API key.

輸入參數name必填style必填

delete_theme

Delete a saved theme. Codes already styled with it keep their look. Requires an OpenQR API key.

輸入參數id必填

get_subdomain

Show the branded subdomain on this account ({name}.oqr.to). Reports whether it is currently suspended — a suspended subdomain redirects to the plain short link instead of serving, which happens when a Pro plan lapses. Requires an OpenQR API key.

無需輸入參數。

set_subdomain

Claim or change the branded subdomain so codes also resolve at {name}.oqr.to. Pro only. Codes keep working on the plain short link either way, so changing this never breaks anything already printed. Requires an OpenQR API key.

輸入參數subdomain必填

clear_subdomain

Release the branded subdomain. Codes stay live on the plain short link; only the {name}.oqr.to form stops resolving. The name becomes claimable by someone else. Requires an OpenQR API key.

無需輸入參數。

版本歷史

1
  1. v1.0.4最新Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分