QR code generator API and MCP for AI agents
TollNode gives Claude, Cursor or any AI agent a QR code for any URL or text, returned as SVG markup and a PNG in one call, with your choice of error correction, from $0.002 per code.
Ask in plain words, like 'make a QR code for tollnode.com that survives a logo on top', and get both files.
No subscription · Sign-up optional · From $0.002 per call · Charged only when it works · No account needed
Make a QR code for https://tollnode.com/nodes/linkedin
TollNode · qr-code$0.002 · 1 code · 1 s
| Field | Value |
|---|---|
| Formats | SVG and PNG |
| Version | 3 |
| Modules | 29 x 29 |
| Error correction | M |
Real result.
What your agent gets from a QR call
The code
QR code generator API
SVG for print, PNG for the web.
- Text
- https://tollnode.com/nodes/linkedin
- SVG
- markup, scales without blur
- PNG
- 2,955 bytes, data URL
You get
- svg: the code as SVG markup
- png: the code as a PNG data URL
- text: what is encoded
- PNG size: bytes in the PNG
- scale: PNG pixels per module
Options
How much damage the code can survive.
- Error correction
- M (default)
- Version
- 3
- Modules
- 29
You get
- ecc: error correction: L, M, Q or H
- version: the QR version used
- modules: the grid size
- scale: PNG pixels per module, default 10
- limits: plain black and white, no logos
Every result is structured JSON your agent can sort, filter, summarize or turn into a spreadsheet.
What people ask their AI to do with it
Marketers
Print codes on flyers
“Make a QR code for our spring sale page, high error correction”
1 call
Cost today$0.002
Restaurant owners
Table menus
“Generate a QR code that opens our menu PDF”
1 call
Cost today$0.002
Event organizers
Tickets and check-in links
“Make QR codes for these 5 registration links”
5 calls
Cost today$0.010
Developers
Add codes to an app
“Return a QR PNG for each order confirmation link”
3 calls
Cost today$0.006
Designers
A vector for print
“Give me the SVG for this URL so I can place it in a poster”
1 call
Cost today$0.002
Teachers
Link worksheets
“Make a QR code that opens today's worksheet”
1 call
Cost today$0.002
Use it as a QR code generator MCP server in Claude, Cursor or Codex
Connect once. Then just ask.
Paste this into Claude Code, Cursor or Codex. It connects TollNode and gives your agent a small wallet. Add a few dollars of USDC and you're done.
npx agentcash add https://tollnode.comCopy for your AI agent
Paste this into your agent so it knows what this node does and how to call it.
You can use TollNode's QR code generator node. Call POST https://tollnode.com/api/v1/nodes/qr-code with ecc (optional), text (required), scale (optional). The price is one flat price per call, charged only when it returns a result. Over MCP, call the "qr-code" tool; use list_models to see prices. Return results as tables when I ask for lists.Price
$0.002
per QR code
Charged only when a call returns a result. Failed or empty calls cost $0.
QR code generator without running your own tools
No subscription, no credit packs
Pay per code: $0.002 for every call, with nothing to choose.
No QR service account, no watermark, no subscription
Your agent calls TollNode. You never set up billing or request access with anyone else.
Only charged when it works
If a call returns nothing or fails, it costs nothing.
One connection, much more
The same setup also gives your agent Google search, YouTube, Maps, images and video, so one prompt can chain them.
FAQ
- Is there an official QR code API?
- QR codes are an open standard, so there is no single official service. TollNode generates the code itself and returns it as SVG and PNG.
- Can I use it as a QR code generator MCP server in Claude?
- Yes. Add https://tollnode.com/mcp in Claude Code, Claude Desktop or Cursor, and the "qr-code" tool appears with its fields and price.
- Can it add colors or a logo?
- No. It returns plain black and white codes. Use the highest error correction (H) if you plan to overlay a logo yourself.
- What do I send?
- The URL or text to encode. Optionally ecc (L, M, Q or H, default M) and scale (PNG pixels per module, default 10).
- Can it read a QR code?
- No. It only creates them.
- Do I need an account with another service?
- No. Your agent calls TollNode, and you never log in to another service or share cookies.
- What if nothing comes back?
- You're not charged. TollNode only collects payment when a usable result is returned, and your agent can try a different input.
Works well with
- Webpage screenshot: full-page PNGCapture the page the code points to$0.008
- Domain lookup: DNS, SSL, registration and email securityCheck the domain before you print itfrom $0.003
- URL to MarkdownRead the page the code points to$0.006
- Nano Banana Pro image generationPlace the code into a designed posterfrom $0.204
Ready in a minute
Connect your AIFor developers: endpoint, inputs and an example response
POST https://tollnode.com/api/v1/nodes/qr-code
Input
| Field | Type | Notes |
|---|---|---|
| ecc | enum | Error correction: L (most data) to H (survives damage or a logo). Default M (L, M, Q, H) |
| text* | string | The URL or text to encode |
| scale | integer | PNG pixels per module, default 10 |
Example response
{
"ecc": "M",
"png": "data:image/png;base64,…",
"svg": "<svg …>",
"text": "https://tollnode.com",
"modules": 25,
"version": 2,
"pngBytes": 2400
}Also described in the OpenAPI file and llms.txt. Setup for every app: Agents & MCP.