A ready-to-display PNG or SVG QR code is returned directly in the tool result.
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.
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.
| Parameter | Accepted values | Default |
|---|---|---|
content | Exact text, URL, Wi-Fi, email, or other QR payload | Required |
foreground_color | #RRGGBB or #RRGGBBAA | #10241f |
background_color | #RRGGBB or #RRGGBBAA | #ffffff |
size | 128–2048 pixels | 768 |
margin | 0–10 QR modules | 2 |
error_correction | L, M, Q, or H | H |
format | PNG or SVG | PNG |
Useful output in every client
Colors, dimensions, correction level, file name, and MIME type are returned as data.
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.