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
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.
OpenQR 可生成静态与可编辑的动态二维码(含支付载荷),并通过托管 API 统计扫码数据。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/uk.openqr%2Fqr/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"openqr": {
"type": "http",
"url": "https://openqr.uk/mcp",
"headers": {
"Authorization": "Bearer <YOUR_TOKEN>"
}
}
}
}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.
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:
/openapi.json; interactive docs
at openqr.uk/api.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.
Get a free key at openqr.uk/api, then point your client at the server with the key as an auth header.
Claude Code:
Cursor (~/.cursor/mcp.json), and any other client that speaks Streamable HTTP:
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.
It also exposes 5 resources and 4 prompts:
openqr://preset/classic, /teal,
/high-contrast, /dots and /classy. Read one and pass its style to create_theme.create_tracked_qr, bulk_qr_for_print, brand_a_qr and qr_scan_report.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.
A multi-arch image (linux/amd64, linux/arm64) is published to GHCR on every
release tag:
Or with docker-compose.yml:
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.
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.
The <Generator/> component is self-contained and configurable:
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:
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.
Next.js 16 (App Router) · React 19 · TypeScript (strict) · Tailwind v4 ·
qr-code-styling · Leaflet · pnpm.
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.
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
Generate a static QR code from any text/URL. Returns a PNG image (or SVG markup). Requires an OpenQR API key.
data必填sizethemeformatBuild 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必填sizetxidforceamountformatsingleUsedescriptionBuild 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必填sizetextforceamountformatpurposereferenceBuild 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 an editable (dynamic) QR code whose destination you can change later without reprinting. Requires an OpenQR API key.
labelthemedestination必填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必填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 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 scan statistics for a dynamic QR code. Requires an OpenQR API key.
id必填Create an extra short link (link alias) that resolves where one of your dynamic codes points: share a different slug per channel while the QR keeps its own slug, so QR scans and link clicks are counted separately. Free accounts have no alias allowance; Pro includes 10. Requires an OpenQR API key.
id必填slugList the link aliases of one dynamic code. Requires an OpenQR API key.
id必填List your dynamic (editable) QR codes — id, short URL, destination, label and status. Requires an OpenQR API key.
limitPermanently delete a dynamic QR code. The short link stops working. Requires an OpenQR API key.
id必填Create up to 200 dynamic QR codes at once. Requires an OpenQR API key.
codes必填themeList your folders (id and name). Requires an OpenQR API key.
无需输入参数。
Create a folder to organise codes. Requires an OpenQR API key.
name必填Delete a folder (its codes are un-filed, not deleted). Requires an OpenQR API key.
id必填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.
无需输入参数。
Save a reusable style theme. `style` is a QR style object (fgColor, bgColor, dotType, cornerSquareType, etc.). Requires an OpenQR API key.
name必填style必填Delete a saved theme. Codes already styled with it keep their look. Requires an OpenQR API key.
id必填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.
无需输入参数。
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必填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.
无需输入参数。
已满足适用检查项的 100%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
claude mcp add --transport http openqr https://openqr.uk/mcp \ --header "Authorization: Bearer oqr_YOUR_KEY"{ "mcpServers": { "openqr": { "url": "https://openqr.uk/mcp", "headers": { "Authorization": "Bearer oqr_YOUR_KEY" } } }}pnpm installpnpm dev # http://localhost:3011pnpm buildpnpm start # serves on :3011 (standalone output)docker run -d --name openqr --restart unless-stopped -p 3000:3000 ghcr.io/open-qr/openqr:latestdocker compose up -d # update later: docker compose pull && docker compose up -dimport { 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} />} />import { setTrackHandler } from "@/lib/analytics";setTrackHandler((action, name, category) => myAnalytics.track(category, action, name));