Blog

QR Code Generator in ChatGPT and Claude: What Actually Works

10 November 2026·9 min read
QR Code Generator in ChatGPT and Claude: What Actually Works

ChatGPT and Claude can create a QR code that scans, but only when they write and run code (for example Python with a QR code library) and hand you the image file. If an AI image model draws the QR code as a picture, it often won't scan at all. Even a working code made in the chat is static: you can't change the link after printing and you can't see how often it was scanned. For editable, trackable QR codes, connect a QR code generator to your assistant through an MCP server.

This guide covers both routes, explains why a QR code from ChatGPT sometimes doesn't work, and shows how to set up QR Cloud in Claude or ChatGPT with prompts you can copy.

Can ChatGPT or Claude generate a QR code on its own?

Yes, with one important condition: the assistant has to compute the code, not draw it.

A QR code is not an illustration. It is data encoded according to a standard, with error-correction blocks and format information that scanners check. A QR code library does that calculation correctly every time. An image generator only imitates what QR codes look like.

Both assistants have a way to run code:

  • ChatGPT writes and runs Python in a notebook environment for some tasks. OpenAI's help article on data analysis with ChatGPT describes this environment and advises you to review the generated code and outputs before relying on the result.
  • Claude can execute code and create downloadable files when "Code execution and file creation" is turned on in its settings (Anthropic describes this in its help centre).

So when you ask "make a QR code for https://example.com", the quality of the result depends on which tool the assistant picks. If you see a code block or an analysis step followed by a PNG file, it used a library. If an image appears straight away, perhaps in a stylised scene, it was most likely drawn.

A prompt that produces a scannable static code

To create a QR code with ChatGPT or Claude without any add-ons, be explicit:

"Write and run Python code that uses a QR code library to encode exactly this URL: https://example.com/menu. Use error correction level M and a white border of 4 modules. Give me the PNG as a download. Do not generate an image with the image model."

Then do three checks before you use the file:

  1. Read the URL inside the code. A single wrong character sends every scan to the wrong page.
  2. Scan the downloaded file with two different phones.
  3. Print a test copy at the final size and scan it from a realistic distance.

Why a QR code from ChatGPT is not working

If your AI-made QR code won't scan, the cause is usually one of these:

Problem What happened Fix
Nothing happens when scanning The code was drawn by an image model, not encoded Ask for a QR code library explicitly, or use a QR generator
Opens the wrong page Typo or shortened URL in the prompt or code Copy the exact URL into the prompt and check the code
Scans on screen, not on paper Printed too small, low contrast or border cropped Keep a white quiet zone, dark modules on a light background
Worked once, now leads to an error The target page moved or was deleted A static code can't be changed: reprint, or use a dynamic code next time

For more causes, from colour choices to damaged prints, see our checklist QR code won't scan? 13 possible reasons.

The limit of chat-made QR codes: static and untracked

Even when it scans perfectly, a QR code created in a chat has two built-in limits:

  • It is static. The URL is baked into the pattern. If your menu, booking page or offer link changes after printing, the code can't follow it.
  • It is untracked. Nobody counts the scans. You won't know whether the poster in the window or the flyer at the counter brings in more visitors.

For a one-off Wi-Fi sign at home, that's fine. For anything printed in quantity, used in marketing, or expected to last, you want a dynamic QR code: the code contains a short link, the short link forwards to your destination, and you can change that destination at any time while counting every scan. The difference is explained in detail in static and dynamic QR codes: which is better?

Better: connect a QR code generator to your AI via MCP

MCP (Model Context Protocol) is an open standard that lets AI assistants use tools from other services. Instead of the assistant improvising a QR code, it asks a real QR code service to create one in your account.

QR Cloud offers an MCP server at https://qr-cloud.com/mcp. Once connected, Claude, ChatGPT, Cursor or VS Code can work with your QR Cloud account directly from the chat. The available tools are:

  • get_account: your plan and limits
  • list_links, get_link: your short links and QR Pages
  • create_short_link, update_short_link, delete_link: manage short links (the dynamic part behind a QR code)
  • get_link_statistics: clicks per day, countries, devices, referrers and UTM parameters
  • list_qr_codes, create_qr_code, delete_qr_code: QR codes, returned with an image URL
  • list_qr_reviews, get_qr_review, create_qr_review, update_qr_review, delete_qr_review: set up and change QR Reviews, the star-rating pages that lead happy customers to your Google review form
  • get_qr_review_statistics: views, ratings, star distribution, private feedback and countries

Because the QR code is created by QR Cloud, it is encoded correctly, saved in your account, and if it points to a short link, you can change the destination later without reprinting. Scans are unlimited and the statistics are anonymised; QR Cloud is hosted in Germany.

What you need

  • A QR Cloud account on the Expert plan (API and MCP access are included there; see pricing).
  • An AI app that supports remote MCP servers with sign-in. Check your assistant's own requirements:
    • Claude: Anthropic says custom connectors using remote MCP are available on Free, Pro, Max, Team and Enterprise plans, with Free users limited to one custom connector (Claude Help Center).
    • ChatGPT: according to OpenAI, custom MCP server connections are currently available for ChatGPT Business and Enterprise/Edu on the web, and on Business workspaces only admins and owners can add them (OpenAI Help Center). On a personal Free or Plus account you may not see the option.

Stop reprinting QR codes made in a chat. QR Cloud lets Claude or ChatGPT create dynamic QR codes, short links and QR Reviews in your account, and report their scans back to you.

Create your free account

How to connect QR Cloud to Claude or ChatGPT

Most apps connect with Sign in with QR Cloud (OAuth). You don't copy any key: you log in, see what the app is allowed to do, and click Allow. Menu names in AI apps change often, so if a label differs slightly, look for "Connectors", "Apps" or "custom MCP server".

Claude (web, desktop and mobile)

  1. Open Settings → Connectors and choose Add custom connector.
  2. Name it QR Cloud and enter the URL https://qr-cloud.com/mcp.
  3. Click Connect, sign in to QR Cloud and allow access.

ChatGPT (where your plan allows custom MCP servers)

  1. Open the area for apps/connectors or plugins and choose to create or add a custom MCP server.
  2. Enter https://qr-cloud.com/mcp and select OAuth as the authentication.
  3. Sign in to QR Cloud and allow access.

Claude Code

Run claude mcp add --transport http qr-cloud https://qr-cloud.com/mcp, then type /mcp in Claude Code and choose Authenticate.

Cursor or VS Code

Add the server URL https://qr-cloud.com/mcp. The editor opens the QR Cloud sign-in page for you.

For scripts or tools without OAuth support, you can use your personal API key instead. The exact steps are on the QR Cloud MCP server page. You can see and disconnect every connected app at any time in your QR Cloud account; a disconnected app loses access immediately.

Example prompts to try

Once QR Cloud is connected, describe what you want in plain language. Be specific about the destination and the name.

1. A dynamic QR code for a printed menu

"Create a short link called 'Lunch menu' that points to https://example.com/menu, then create a QR code for it and give me the image link."

When the menu moves to a new URL next season, follow up with: "Update the 'Lunch menu' short link so it points to https://example.com/menu-winter." The printed codes stay the same.

2. Scan statistics in plain English

"Show me the statistics for my 'Lunch menu' link for the last 30 days: clicks per day, top countries and the split between devices."

3. A QR Review for a café or shop

"Create a QR Review for my café 'Corner Coffee' that sends happy guests to our Google review page [paste your Google review link], and make a QR code for it."

Guests rate their visit with stars; 4–5 stars open the Google review form in one tap, and lower ratings can send private feedback to you by email. Guests can always choose to leave a public review. Later, ask: "How did the Corner Coffee QR Review perform this month? Show the star distribution and any private feedback." If you're new to this, read how to get more positive reviews with QR codes.

4. A quick account check before a campaign

"Which plan am I on and how many dynamic links do I have left? List my existing QR codes with their names."

A tip for safety: deleting through MCP is permanent. A well-behaved assistant asks before deleting, but it's worth saying "don't delete anything without asking me first" in your prompt.

Which route should you choose?

Need Chat on its own (code) QR Cloud via MCP
One QR code for a fixed URL Works, after checking and test-scanning Works
Change the link after printing Not possible Yes, update the short link
Scan statistics None Clicks per day, countries, devices, referrers
Review funnel for Google reviews Not possible QR Reviews with statistics
Codes saved and organised Files in your chat history In your QR Cloud account
Cost Your AI plan Expert plan plus an AI app with MCP support

If you only need one code for a link that will never change, a code made in the chat (or a free static code from the QR Cloud generator) is enough. If the code goes on menus, packaging, posters or review cards, use a dynamic code, and MCP saves you from switching between the chat and a dashboard.

You don't need an AI assistant for any of this, either. Everything the MCP tools do, you can also do by hand in the QR Cloud dashboard, including the free plan with 3 dynamic links, 1 QR Review and unlimited scans. The AI connection simply lets you do it in the conversation you already have open.

Frequently asked questions

Can ChatGPT create a QR code?

Yes, but only reliably when it writes and runs code, for example Python with a QR code library, and gives you the resulting image file. If it draws a QR code as a picture with its image model, the result usually only looks like a QR code and often will not scan. Either way, what you get is a static code with no scan statistics.

Why is the QR code from ChatGPT not working?

The most common reason is that the code was drawn by an image model instead of being encoded by a QR library, so the pattern does not contain valid data. Other causes are a typo in the URL, a missing white border, or too little contrast. Ask the assistant to use a QR code library explicitly, check the URL in the code, and test-scan the file before printing.

Can Claude make a QR code?

Claude can write and run code to create files when code execution is enabled in its settings, so it can produce a scannable static QR code image the same way. To create dynamic QR codes that you can edit and track, you connect Claude to a QR code service through a custom connector (MCP server).

What is a QR code MCP server?

MCP (Model Context Protocol) is an open standard that lets AI assistants call tools from other services. A QR code MCP server, such as QR Cloud's at https://qr-cloud.com/mcp, lets Claude, ChatGPT, Cursor or VS Code create short links, QR codes and QR Reviews in your account and read their statistics from the chat.

Which QR Cloud plan do I need to use QR Cloud in ChatGPT or Claude?

The MCP server and API are part of the Expert plan ($19.99 per month, billed annually), which includes 250 QR codes, 250 dynamic links and unlimited QR Reviews. You can start on the free plan without a credit card and upgrade when you want to connect your AI assistant.