MCP QR Code MCP Tool

generate_qr_code(data, style?) — ask an AI assistant to generate a QR code SVG for any text or URL, in one of four style presets.

generate_qr_code(data, style?)

Generates a QR code as SVG for any text or URL, up to 2048 characters, in one of four visual style presets.

Requires a Pingfloat API key. See MCP Server setup if you don't have one yet.

Try it

Generate a QR code for https://example.com

The assistant calls generate_qr_code and returns the SVG directly in the conversation — nothing to download or paste. It calls the same endpoint as the Free QR Code API.

Parameters

ParameterTypeDescription
datastring, requiredThe text or URL to encode (max 2048 characters).
stylestring, optionalclassic (default), sunset, ocean, or midnight.

Style presets

StyleLook
classicBlack on white
sunsetOrange tones
oceanTeal tones
midnightWhite on dark

Want more colors, a logo, or a managed short link with click tracking? Use the QR Code Generator web tool directly — it supports the full style set and, with a free account, editable destinations.

Frequently asked questions

Is there a limit on how many times I can call it?

10 per hour on a free account, 50 per hour on Free+ or paid — shared with the check tools, tracked per API key.

Can I get a PNG instead of SVG?

The MCP tool returns SVG only. For PNG or other formats, use the QR Code Generator web tool, which supports exporting to multiple formats.

Is there an HTTP endpoint I can call directly, without MCP?

Yes — see the Free QR Code API, which the MCP tool itself calls under the hood, using the same API key.