Generates QR codes on demand via a remote API endpoint. You pass in text or a URL through the MCP tool interface, and it returns a base64-encoded PNG you can display or save. Runs as a hosted service at qr-code.api.klymax402.com with server-sent events transport, so there's nothing to install locally. Uses x402 micropayments, meaning you'll need credits to generate codes. The repository itself is pretty bare, just the integration layer without much documentation visible. Reach for this when you need programmatic QR code generation in a Claude workflow without spinning up your own encoding library, though you'll want to check pricing and rate limits before committing to it for high-volume use cases.
Public tool metadata for what this MCP can expose to an agent.
utility_generate_qr_codeUse this when you need to generate a QR code from text, a URL, or any string data. Returns base64 image data in JSON. Returns: 1. image (base64-encoded PNG) 2. width and height in pixels 3. data (the2 paramsUse this when you need to generate a QR code from text, a URL, or any string data. Returns base64 image data in JSON. Returns: 1. image (base64-encoded PNG) 2. width and height in pixels 3. data (the
datastringsizenumberGenerate QR codes from text or URLs -- base64 PNG output, configurable size. Fast and lightweight. Pay-per-call via x402 (USDC on Base L2) -- no API key, no signup, no rate-limit wall.
Part of the klymax402 marketplace -- 100 x402 micropayment APIs for AI agents, one wallet, USDC on Base.
Add to your MCP client config (Claude Desktop, Cursor, ElizaOS, etc.):
{
"mcpServers": {
"qr-code": {
"url": "https://qr-code.api.klymax402.com/mcp"
}
}
}
curl -X POST "https://qr-code.api.klymax402.com/api/qr" \
-H "Content-Type: application/json" \
-d '{"data":"..."}'
# -> 402 Payment Required, with an x402 payment challenge in the response body
Any x402-aware client (@x402/fetch, x402-agent-tools, ATXP) handles the 402 -> sign -> retry cycle automatically.
| Tool | Method | Path | Price | Description |
|---|---|---|---|---|
utility_generate_qr_code | POST | /api/qr | $0.001 | Generate a QR code image from text or URL |
utility_generate_qr_codeUse this when you need to generate a QR code from text, a URL, or any string data. Returns base64 image data in JSON.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
data | string | yes | The text or URL to encode in the QR code |
size | number | no | QR code size in modules (default: 21 for version 1) |
Example response:
{"data":"https://example.com","image":"iVBORw0KGgo...","width":210,"height":210,"format":"png"}
When to use: generating shareable links, payment QR codes, Wi-Fi connection codes, vCard contact sharing, and event ticket barcodes.
Not for: screenshots (use capture_screenshot), PDFs (use document_generate_pdf).
eip155:8453)100 x402 micropayment APIs for AI agents -- one wallet, USDC on Base, zero signup.
MIT