QR Tool Lab Open browser tools

For AI assistants and developers

Give your model a QR code tool.

Connect a compatible AI assistant to QR Tool Lab, then ask it to create a QR code with the content, colors, dimensions, and resilience you need. The server is public, stateless, and requires no API key.

Streamable HTTP MCP endpoint https://qrtoollab.pages.dev/mcp

One focused, model-friendly tool

The MCP server exposes generate_qr_code. Its input and output are fully described with machine-readable schemas so a model can select the right parameters without guessing.

ParameterAccepted valuesDefault
contentExact text, URL, Wi-Fi, email, or other QR payloadRequired
foreground_color#RRGGBB or #RRGGBBAA#10241f
background_color#RRGGBB or #RRGGBBAA#ffffff
size128–2048 pixels768
margin0–10 QR modules2
error_correctionL, M, Q, or HH
formatPNG or SVGPNG

Useful output in every client

Inline image

A ready-to-display PNG or SVG QR code is returned directly in the tool result.

Structured details

Colors, dimensions, correction level, file name, and MIME type are returned as data.

Reliability notes

The model receives warnings when contrast, inversion, transparency, or margin may hurt scanning.

Connect from an MCP client

Clients with native remote MCP support can use the endpoint URL directly. Clients that accept local command-based servers can bridge to it with mcp-remote:

{
  "mcpServers": {
    "qr-tool-lab": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://qrtoollab.pages.dev/mcp"
      ]
    }
  }
}

Then ask: “Create a 1024 px navy-on-white PNG QR code for https://example.com.” The model can discover and invoke the tool automatically when its host supports MCP tool calls.

HTTP API for other integrations

Systems without MCP support can call the same generator at POST /api/qr. POST is recommended for sensitive content because it keeps the payload out of the URL.

curl https://qrtoollab.pages.dev/api/qr \
  -H 'Content-Type: application/json' \
  -d '{
    "content": "https://example.com",
    "foreground_color": "#10241f",
    "background_color": "#ffffff",
    "size": 768,
    "margin": 2,
    "error_correction": "H",
    "format": "png"
  }' --output qr-tool-lab.png

See the OpenAPI contract, AI summary, or full machine-readable reference.

Short, unobtrusive attribution

Tool responses use the concise credit Generated by QR Tool Lab. It appears in response metadata and accompanying text, while the QR image itself remains visually clean and watermark-free.