在 AI 助手中生成二维码
MCP(Model Context Protocol)是让 AI 助手使用外部工具的开放标准。只需连接一次 QRdx,用日常的话说出想要的二维码,图片就会直接返回到聊天中。
在 Claude 中用 QRdx 制作二维码
点击一次即可打开 Claude 的“添加连接器”对话框,QRdx 和服务器 URL 已预先填好。点击“添加”,然后让它生成二维码。
https://mcp.qrdx.dev/mcp如何连接?
- 1点击“连接到 Claude”。Claude 会打开“自定义 → 连接器”,并在“添加自定义连接器”对话框中预先填好名称 QRdx 和服务器 URL。
- 2核对信息,并将高级(OAuth)字段留空:该服务器无需登录。如果字段为空,请粘贴 URL(已在你的剪贴板中),并将其命名为 QRdx。
- 3点击“添加”,然后在对话的工具菜单中开启 QRdx。
- 4让它生成二维码。Claude 免费版可添加一个自定义连接器;Team 和 Enterprise 套餐则由所有者为整个组织添加。
在 ChatGPT 中用 QRdx 制作二维码
点击一次即可复制服务器 URL 并打开 ChatGPT 的“插件”页面,你可以在那里将 QRdx 添加为自定义 MCP 服务器。
https://mcp.qrdx.dev/mcp如何连接?
- 1点击“连接到 ChatGPT”。服务器 URL 会被复制,ChatGPT 随即打开“插件”页面。
- 2点击 +,选择“添加自定义 MCP 服务器”。将其命名为 QRdx,并在“连接”下粘贴 URL。
- 3选择无身份验证,接受警告并创建。
- 4在新对话中输入 @,选择 QRdx,然后让它生成二维码。是否允许使用自定义 MCP 服务器,取决于你的 ChatGPT 套餐和工作区设置。
在 Claude Code 中用 QRdx 制作二维码
在终端中运行一条命令,之后每个 Claude Code 会话都可以使用该服务器。
https://mcp.qrdx.dev/mcp$ claude mcp add --transport http qrdx https://mcp.qrdx.dev/mcp如何连接?
- 1点击“复制安装命令”,然后在终端中运行。
- 2启动 Claude Code 并运行 /mcp,检查 qrdx 是否已连接。
- 3请求生成二维码。Claude Code 还可以把图片或 SVG 保存到你的项目中。
在 Cursor 中用 QRdx 制作二维码
点击一下即可打开 Cursor,QRdx 服务器已准备好安装。
https://mcp.qrdx.dev/mcp{
"mcpServers": {
"qrdx": {
"url": "https://mcp.qrdx.dev/mcp"
}
}
}如何连接?
- 1点击“添加到 Cursor”,并允许浏览器打开 Cursor。
- 2Cursor 会显示 qrdx 服务器:点击“安装”。
- 3在 Cursor Settings → MCP 中确认它已开启,然后让智能体生成二维码。
- 4更喜欢使用配置文件?把上方的代码片段添加到 ~/.cursor/mcp.json(适用于所有项目),或添加到 .cursor/mcp.json(仅适用于一个项目)。
在 VS Code 中用 QRdx 制作二维码
点击一下即可打开 VS Code 中 QRdx 服务器的安装页面。可在智能体模式下通过 Copilot Chat 使用。
https://mcp.qrdx.dev/mcp{
"servers": {
"qrdx": {
"type": "http",
"url": "https://mcp.qrdx.dev/mcp"
}
}
}如何连接?
- 1点击“在 VS Code 中安装”。页面会跳转到 VS Code,并显示 qrdx 服务器。
- 2点击“安装”。
- 3在 Copilot Chat 中切换到智能体模式,打开工具选择器,确认 qrdx 已开启,然后请求生成二维码。
- 4更喜欢使用配置文件?把上方的代码片段添加到工作区的 .vscode/mcp.json 中。
在 Windsurf 中用 QRdx 制作二维码
Windsurf 现已更名为 Devin Desktop。把配置复制到其 MCP 设置中,智能体就可以调用 QRdx 工具。
https://mcp.qrdx.dev/mcp{
"mcpServers": {
"qrdx": {
"url": "https://mcp.qrdx.dev/mcp"
}
}
}如何连接?
- 1点击“复制 Windsurf 配置”。
- 2在 Devin Desktop 中,把它粘贴到 ~/.config/devin/mcp_config.json(若仅用于一个项目,则粘贴到 .devin/mcp_config.json)。如果已有服务器,请将其合并到 mcpServers 中。
- 3较旧的 Windsurf 版本读取 ~/.codeium/windsurf/mcp_config.json,并要求用 serverUrl 代替 url。
- 4刷新 MCP 服务器,确认 qrdx 已开启,然后让智能体生成二维码。
试一试
从这些提示词开始
每条提示词都基于 QRdx 工具的实际功能:颜色与形状、Wi-Fi、联系人、电子邮件、短信和地图内容,以及 SVG、PNG、WebP 或 EPS 链接。可以在你的助手中打开,也可以复制。
名片
“用我们的品牌蓝 #155dfc,为 Example Inc 的 CTO Ada Lovelace 制作一个联系人二维码,电话 +1 555 0100,邮箱 ada@example.com。”
根据列表批量生成
“为下面每个链接各制作一个二维码,并给我一个 Markdown 表格,每行附上对应的图片:https://example.com/a、https://example.com/b、https://example.com/c。”
使用方式
三步设置,之后只管提问
你的助手会替你调用 QRdx 工具,你无需接触任何 API。
- 1
添加服务器
在 Claude、Cursor、VS Code 或任何其他 MCP 应用中,只需一条命令或几行配置。无需账号或 API 密钥。
- 2
向助手提出需求
用日常的话描述:要编码的链接或信息、颜色和形状。助手会选择合适的 QRdx 工具。
- 3
获得二维码
A PNG image in the chat, plus SVG, PNG, WebP, TIFF and EPS links ready for Markdown, HTML or print. Apps that support MCP Apps also show the code as a card you can save or open in the editor.
Make a QR code for https://example.com in our brand blue, #155dfc, with rounded modules.
Here's your QR code: 512×512 px, error correction Q, with links you can paste into Markdown or HTML.
- SVG
- qrdx.dev/api/v1/qr?data=https%3A%2F%2Fexample.com&fg=155dfc&body=rounded
- PNG
- qrdx.dev/api/v1/qr?data=https%3A%2F%2Fexample.com&format=png&fg=155dfc&body=rounded
- WebP
- qrdx.dev/api/v1/qr?data=https%3A%2F%2Fexample.com&format=webp&fg=155dfc&body=rounded
- EPS
- qrdx.dev/api/v1/qr?data=https%3A%2F%2Fexample.com&format=eps&fg=155dfc&body=rounded
设置
将 QRdx 添加到你的应用
Claude 和 ChatGPT 将服务器 URL 作为自定义连接器使用。Claude Code、Cursor 和 VS Code 只需一条命令或几行配置。仅支持运行本地服务器的应用可通过 mcp-remote 连接。
https://mcp.qrdx.dev/mcpclaude mcp add --transport http qrdx https://mcp.qrdx.dev/mcp{
"mcpServers": {
"qrdx": {
"url": "https://mcp.qrdx.dev/mcp"
}
}
}{
"servers": {
"qrdx": {
"type": "http",
"url": "https://mcp.qrdx.dev/mcp"
}
}
}{
"mcpServers": {
"qrdx": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.qrdx.dev/mcp"
]
}
}
}工具
你的助手可以调用什么
共 23 个工具。大多数为只读,无需账户或密钥:它们生成图片、格式化文本并读取公开社区内容。四个动态二维码工具会请你登录 QRdx,而 save_template、save_barcode 和 generate_ai_art 会在连接设置了 API 密钥后列出。完整参数见 MCP 服务器文档。
设计二维码
design_qr无需密钥支持任何内容类型(链接、Wi-Fi、联系人、支付、社交等),样式由助手选择:颜色和渐变、形状、带文字的边框或社区边框、描边、Logo 图标。可以从内置主题或社区项目开始。像编辑器一样校验内容,检查扫描评分,并修复样式直到评分为 Great。返回评分、改动内容、样式 JSON、Playground 链接、一张 PNG 和 SVG。
列出设计选项
list_options无需密钥design_qr 接受的所有取值:内容类型及其字段、形状、边框、描边、Logo 图标、内置主题、纠错等级和限制。
生成二维码
generate_qr_code无需密钥Renders the code and returns a PNG image plus public SVG, PNG, WebP, TIFF and EPS image URLs ready for Markdown, HTML or print. Takes the image API options: colors or gradients, body, eye and dot shapes, error correction, margin, a border, a frame and a logo icon, or a whole style from design_qr. Set include_svg for the SVG markup.
Create a dynamic code
create_dynamic_code需要登录A dynamic QR code in your QRdx workspace: it holds a short link, so where it goes can change after printing, and its scans are counted. Returns the short link, the code as a PNG and a link to it in your dashboard. Your app asks you to sign in to QRdx the first time; plan limits apply as in the dashboard.
Change where a code goes
update_code_destination需要登录Points one of your dynamic codes at a new address. The printed code stays the same. The new address is checked like a new code's.
Scan stats
get_code_stats需要登录Scans and unique visitors for one of your dynamic codes over a range your plan keeps, with the top countries, devices and scans per day. Never single scans or precise locations.
List your codes
list_codes需要登录Your dynamic codes with their short links, destinations, status and scan counts, to find one by name or link.
搜索社区
search_community无需密钥按关键词、类型或标签查找社区边框和主题,均以 CC0 免费提供。项目文字由成员撰写,返回时会被精简,且不含链接。
获取社区项目
get_community_item无需密钥一个边框或主题及其应用的样式,可直接传给 design_qr 或 generate_qr_code。
保存为主题
save_template需要 API 密钥将设计作为主题保存到你的工作区,数量受当前套餐的主题保存上限限制。连接带有 QRdx API key 后才会列出。
生成条形码
generate_barcode无需密钥支持 EAN-13、UPC-A、UPC-E、EAN-8、ISBN、ISSN、ISMN、ITF-14、GS1-128、GS1 DataBar、GS1 DataBar Expanded、Code 128、Code 39、Code 93、Codabar、USPS Intelligent Mail、Data Matrix、PDF417、Aztec、rMQR、MaxiCode 或 DotCode。会检查内容(校验位、长度、字符),并返回一张 PNG 图片,以及可公开访问的 SVG、PNG、PDF 等图片链接。
保存条形码
save_barcode需要 API 密钥将条形码保存在你工作区的“条形码”中,方便之后编辑和下载。连接带有 QRdx API key 后才会列出。
生成 AI 艺术二维码
generate_ai_art需要 API 密钥根据你的描述、某个场景或你的照片,把二维码绘入 AI 艺术图中,并检查它是否可以扫描。每张图片会占用你工作区每月 AI 艺术图额度中的一张,最长需要一分钟。连接带有 QRdx API key 后才会列出。
搜索文档
search_docs无需密钥根据问题查找 QRdx 文档页面,例如功能的工作方式、API 端点和字段、限制与方案、React 库。返回标题、链接和匹配的片段,最相关的排在前面。
阅读文档页面
read_docs_page无需密钥以 Markdown 格式返回一个文档页面,可通过 search_docs 返回的路径或页面 URL 获取。过长的页面会被截断,并附上指向其余内容的链接。
列出样式
list_qr_styles无需密钥主体图案、角码眼和码眼圆点形状、内置边框、纠错等级、默认值和限制。
Wi-Fi 网络
qr_payload_wifi无需密钥WIFI: 载荷(WPA、WEP 或开放网络,可选隐藏),并对特殊字符进行转义。
联系名片
qr_payload_vcard无需密钥vCard 3.0 联系人:姓名、单位、职位、电话、邮箱、网站、地址和备注。
联系人名片(MeCard)
qr_payload_mecard无需密钥MeCard 联系人:基本信息与 vCard 相同,但字符更少,因此二维码更小。
电子邮件
qr_payload_email无需密钥mailto: 链接,可选抄送、密送、主题和正文。
短信
qr_payload_sms无需密钥sms: 链接,可附带消息,也可使用较旧的 SMSTO: 格式。
地图位置
qr_payload_geo无需密钥根据纬度和经度生成 geo: 位置。
付款
qr_payload_payment无需密钥Pix、SEPA、Swiss QR-bill、QR Platba、Swish、PayNow、PromptPay、VietQR 或 KHQR 付款码,或 Lightning、XRP、Cardano、Tron、TON 或 Stellar 收款请求,校验方式与 Playground 的表单一致。
MCP 服务器常见问题
Claude 能生成二维码吗?
可以,前提是已连接 QRdx MCP 服务器。语言模型无法在“脑中”推算出二维码的图案,所以它自己画出的二维码很少能被扫描。连接 QRdx 后,Claude 会调用一个工具,渲染出真实、标准的二维码,并显示在对话中。在 Claude 中把服务器 URL 添加为自定义连接器,或在 Claude Code 中运行 claude mcp add 命令即可;ChatGPT、Cursor 和 VS Code 的连接方式相同。
QRdx MCP 服务器免费吗?
Yes. It's free and open source, and designing, rendering and checking codes needs no account. Those codes are static, so they never expire and have no scan limits. Dynamic codes live in a QRdx account, so making one asks you to sign in (or sign up) first; the plan's limits apply as in the dashboard.
需要 API 密钥吗?
No, for designing and rendering codes and browsing the community: the QRdx MCP server is public and free, and it keeps no session state. The dynamic-code tools need you signed in to QRdx instead, which your app asks for the first time you use one. Saving a design to your themes (save_template), saving a barcode (save_barcode), making AI art (generate_ai_art) and using a logo you uploaded need a QRdx API key, sent as Authorization: Bearer qrdx_… in your app's settings for the server. Your app sees those three tools once the key is set.
它支持哪些 AI 工具?
任何支持通过 Streamable HTTP 连接远程服务器的 MCP 应用都可以使用,例如 Claude、ChatGPT(作为自定义 MCP 服务器,需所在套餐支持)、Claude Code、Cursor、VS Code、Devin Desktop(原 Windsurf)、Gemini CLI 和 Codex。只能运行本地 stdio 服务器的应用,可以通过 mcp-remote 桥接连接。
可以添加 Logo 或渐变吗?
可以。线性渐变和径向渐变、边框和外框无需密钥即可使用,快捷 Logo 图标(Wi-Fi、链接、电话等)也一样。你上传到 QRdx 的 Logo,可凭文件 ID 配合你的 API 密钥使用。QRdx 绝不会从网址获取 Logo。Logo QR 和 Image QR 艺术码需在 Playground 中制作。
可以创建动态二维码吗?
Yes, once you sign in. create_dynamic_code makes a dynamic code in your QRdx workspace: the code holds a short link, so you can point it somewhere else later (update_code_destination) and see how often it's scanned (get_code_stats). The first time, your app asks you to sign in to QRdx, where new accounts sign up too.
二维码会显示在聊天中吗?
design_qr 和 generate_qr_code 会以 PNG 图片返回二维码,所以支持显示图片的应用会直接在聊天中展示。支持 MCP Apps 的应用还会显示二维码卡片:二维码、其编码内容(Wi-Fi 只显示网络名称,绝不显示密码)、尺寸或扫描评分、“在编辑器中打开”按钮,以及应用可保存或打开时的 PNG 和 SVG 按钮。不支持 MCP Apps 的应用,则和之前一样显示文字和图片。
QRdx 会保存我生成的二维码吗?
Not the static ones. The tools render images, format text and read the public community. Only these write anything: create_dynamic_code and update_code_destination (the dynamic code you ask for, in your workspace), and save_template and save_barcode (the theme or barcode you ask them to save, in the API key's workspace). generate_ai_art uses one of the workspace's monthly AI art images but keeps neither the image nor a photo you send. The image URLs the tools return contain the encoded data, so don't share them if the data is private, such as a Wi-Fi password.
有使用限制吗?
每个 IP 地址每分钟最多 120 次请求,其中 design_qr 最多 20 次。使用 API 密钥的调用,也会计入工作区的每日 API 配额。过长的数据可能无法放进二维码;此时工具会返回错误,并建议降低纠错级别。
它已收录在 MCP Registry 中吗?
已收录。托管服务器已在官方 MCP Registry 中以 dev.qrdx/qrdx 的名称上架,因此读取该注册表的应用和目录都能在其中找到它。
我可以自己部署吗?
可以。MCP 服务器是 QRdx 网页应用的一部分,因此自托管的实例会在你自己域名下的 /api/mcp 提供该服务。