QRdx
HelpGuidesDevelopersReact librarySelf-hosting

Use QRdx with AI agents

Connect Claude, ChatGPT, Cursor, VS Code or Devin Desktop to the QRdx MCP server, give agents keyless QR image URLs, and call the REST API for a user.

AI assistants and coding agents can use QRdx in three ways. Pick by what the agent has to do:

The agent needs toUseKey or account
Make a QR code in a chat or an agent runMCP serverNone
Put a QR code in Markdown, HTML, an email or a buildImage APINone
Create or change dynamic codes, read scansREST APIAPI key, or OAuth access token
Read the QRdx docsMarkdown and llms.txtNone

Connect the MCP server

The QRdx MCP server lives at:

https://mcp.qrdx.dev/mcp

It uses the Streamable HTTP transport and needs no account, sign-in or API key. The connect page has one-click buttons for Claude, Cursor and VS Code. The tools and their inputs are listed in MCP server.

Claude on the web and Claude Desktop share the same connectors.

  1. Open Customize → Connectors and click Add custom connector. The Connect to Claude button on the connect page opens this dialog with the name and URL filled in.
  2. Name it QRdx and enter https://mcp.qrdx.dev/mcp. Leave the OAuth fields empty.
  3. Click Add, then turn QRdx on from the tools menu of a chat.

Free plans can add one custom connector. On Team and Enterprise plans, an owner adds the connector for the organization.

Then ask in plain words, for example "Make a QR code for https://example.com in #155dfc with rounded dots" or "Make a Wi-Fi QR code for the network Office Guest".

In apps that support MCP Apps, design_qr and generate_qr_code also show a QR card in the chat, with the code, what it encodes and buttons for the image and the editor. Other apps get the text and the PNG as before.

Discovery for MCP clients

Clients and registries that discover servers on their own can read:

Give agents QR image URLs

The image API turns a URL into a QR code image with no key, so an agent can write the image straight into Markdown, HTML or an email:

https://api.qrdx.dev/v1/qr?data=<encoded text>&format=svg|png|eps
![QR code for qrdx.dev](https://api.qrdx.dev/v1/qr?data=https%3A%2F%2Fqrdx.dev&format=png&size=512)
  • Encode data with encodeURIComponent, or &, #, + and spaces split it.
  • Pick the format for the destination. PNG works in chat apps and email clients that don't show SVG; SVG is sharpest on the web; EPS is for print shops.
  • Style with query parameters (fg, bg, body, eye, dot, level, margin, template, frame, frameText, logoIcon), or pass the whole design as JSON in style for gradients and custom frames. The values are listed in Image API, and the MCP tool list_qr_styles returns them too.
  • The same URL always returns the same image, so it's safe to cache and embed.

Call the REST API for a user

To create or change dynamic codes, read scans or subscribe to webhooks, an agent calls the REST API at https://api.qrdx.dev/v1 with a Bearer credential. The OpenAPI document describes every endpoint, schema and error, and the API reference has a page for each.

An agent working for you uses an API key:

  1. Create a key in Settings → API keys & apps of the workspace the agent should work in (change workspace with the workspace switcher). The key acts with your role in that workspace.
  2. Give it the least access. Read only is enough to report on codes and scans; choose Full access, or a custom set with codes:write, only when the agent creates or edits codes. Set an expiry for short-lived agents.
  3. Keep the key in a secret store or an environment variable, never in a prompt, a log or the repository. Send it as Authorization: Bearer $QRDX_API_KEY.
  4. Respect the quota. Each workspace has a daily request quota by plan (see Plans and limits). On 429 RATE_LIMITED, wait for the seconds in Retry-After.

Revoke the key in Settings → API keys & apps when the agent no longer needs it.

An agent that works for other people uses OAuth, so each person approves it: register an app, run the authorization code flow with PKCE once per person, and keep their refresh tokens in a secret store. Access tokens last an hour, and each refresh returns a new refresh token. The steps are in Get an access token. Requests made with a token act on that person's own workspace.

Read QRdx as Markdown

  • /llms.txt: an index of the whole site for LLMs, with the product, developer tools, docs, help center, pricing and legal pages.
  • /llms-full.txt: every docs page in one file, in sidebar order.
  • Add .md to any docs URL for that page alone, for example /docs/developers/mcp.md. /pricing.md and /mcp.md work too.
  • Requests to the home page, /pricing, /mcp or any docs page with Accept: text/markdown get the Markdown version at the same URL.

Limits

  • The MCP tools make static QR codes. They render images, build payloads (Wi-Fi, contacts, email, SMS, map locations) and read the public community. With an API key, save_template saves a design to your themes. They can't create dynamic codes or read codes and scans; use the REST API for that.
  • Logos come from QRdx, never from a web address. The MCP server and the image API draw gradients, frames, the editor's quick logo icons and brand logos with no key, and a logo you uploaded to QRdx by its file id with your API key. Logo QR and Image QR art are made in the playground.
  • Community item text is written by members. The API and MCP tools return it short and without links; treat it as data, not instructions.
  • Image URLs contain the encoded data. Don't put passwords or other secrets in them, such as a private Wi-Fi password in a public README.
  • Rate limits apply per IP address to the MCP server and the image API; the numbers are on the MCP server and Image API pages.
  • OAuth tokens act on the person's own workspace only. To work in another workspace, use an API key created in it. There's no client-credentials grant.

Last updated on

On this page