FreeQrly 讲 HTTP 和 MCP。从任何智能体、脚本或工作流生成静态二维码——不用密钥,不用注册,不过期。能发请求,就能做二维码。
Add https://freeqrly.com/mcp to your MCP client. generate_qr needs no auth; dynamic_qr_* tools manage your editable dynamic codes with an API token. Works with Claude Code, Cursor, and anything speaking Streamable HTTP.
一个返回 SVG 的普通 GET 接口。CORS 完全开放,浏览器、curl 和无服务器函数都能直接调用。 Authenticated endpoints manage dynamic codes with a Bearer token.
一个带载荷配方的 SKILL.md 放在仓库的 skills/qr-generator/。把你的智能体指向它,剩下的它都知道。
/llms.txt 给爬虫和助手描述整个网站——接口、载荷格式和页面地图,都在一个文件里。
返回 image/svg+xml。只有 data 是必填的;其他都有合理的默认值。错误以 JSON 返回,带一个 error 字段。
curl "https://freeqrly.com/api/qr?data=https://example.com&size=1024" \ -o qr.svg # WiFi QR code for guests curl "https://freeqrly.com/api/qr?data=WIFI:T:WPA;S:CafeNet;P:s3cret;;" \ -o wifi.svg
#(默认 2F4A62 / ffffff)。L、M、Q、H(默认 M)。打印或加 Logo 时用 Q/H。动态码打印后仍可编辑,并可追踪扫码——与你在控制台中管理的是同一批码,额度相同(免费 20 个——当前限时优惠期间所有人不限量)。在控制台的 API Tokens 下创建令牌(仅显示一次),然后将其作为 Bearer 令牌传入:
export FQ_TOKEN="fqly_..." # from your dashboard
# create (same validation + quota as the dashboard UI)
curl -X POST https://freeqrly.com/api/codes \
-H "Authorization: Bearer $FQ_TOKEN" -H "Content-Type: application/json" \
-d '{"type":"url","payload":"https://example.com/menu"}'
# → {"code":"aB3x9Qz","shortUrl":"https://freeqrly.com/q/aB3x9Qz"}
# list (with quota) · stats · edit · delete
curl https://freeqrly.com/api/me/codes -H "Authorization: Bearer $FQ_TOKEN"
curl https://freeqrly.com/api/codes/aB3x9Qz/stats -H "Authorization: Bearer $FQ_TOKEN"
curl -X PATCH https://freeqrly.com/api/codes/aB3x9Qz \
-H "Authorization: Bearer $FQ_TOKEN" -H "Content-Type: application/json" \
-d '{"type":"url","payload":"https://example.com/new-menu"}'
curl -X DELETE https://freeqrly.com/api/codes/aB3x9Qz \
-H "Authorization: Bearer $FQ_TOKEN"
Tokens are per-user, revocable anytime from the dashboard, and deleted with your account. A token can never create or revoke other tokens — that requires a login session. Without a token these endpoints return 401; over quota returns 403 quota_exceeded.
Standard Streamable HTTP: initialize, then tools/list / tools/call. The generate_qr tool takes data, size, color, bgcolor, ecc and returns a ready-to-download SVG URL — no auth needed.
{
"jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": {
"name": "generate_qr",
"arguments": { "data": "https://example.com", "size": 1024 }
}
}
With an Authorization: Bearer <api_token> header, five more tools appear: dynamic_qr_create, dynamic_qr_list, dynamic_qr_update, dynamic_qr_delete, dynamic_qr_stats — your editable dynamic codes, same quota as the dashboard.
curl -X POST https://freeqrly.com/mcp \
-H "Authorization: Bearer $FQ_TOKEN" -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call",
"params":{"name":"dynamic_qr_create",
"arguments":{"type":"url","payload":"https://example.com/menu"}}}'
Website : https://example.com/menu WiFi : WIFI:T:WPA;S:CafeNet;P:s3cret;; Contact : BEGIN:VCARD\nVERSION:3.0\nN:Ada Lovelace\nTEL:+15550100\nEND:VCARD Place : geo:37.7749,-122.4194 SMS : sms:+15550100?body=Hello
免费,但请善待它:缓存结果,不要重复请求同一个码;自动化流量保持合理。每个 IP 有速率限制。静态码是确定性的——同样的输入永远得到同样的输出,所以缓存很简单。