HTTP API
Send a JSON object with a url field to POST /api/v1/scan from your server.
curl -fsS https://the-qr-scanner.com/api/v1/scan \
-H 'Content-Type: application/json' \
--data '{"url":"https://the-qr-scanner.com/qr-link-extractor/sample.png"}'A successful response describes the first QR code found in the image.
{
"code": "https://example.com/trail-map",
"type": "url",
"rect": {
"x": 246,
"y": 148,
"width": 229,
"height": 229
}
}Link safety checks are off by default. Include "checkLinkSafety": true in the JSON body to check the link decoded from the QR code.
codeis the exact content of the QR code, with whitespace preserved.typedescribes the content, such asurl,wifi,vcard, ortext.rectis the bounding rectangle in the unscaled decoded image’s pixels.xandymark the rectangle’s upper-left corner, measured from the upper left of the image.widthandheightmeasure the rectangle. The field isnullwhen there is no reliable location.linkSafety.statusappears forurlresults when you request a check.clearmeans the check found no known threat,unsafemeans it detected a known threat, andunavailablemeans the check could not be completed.
Errors include an HTTP status and a JSON error object with code and message fields.
400 INVALID_INPUTfor a missing or invalid public image URL, or a non-booleancheckLinkSafety.413 LIMIT_EXCEEDEDor415 UNSUPPORTED_MEDIA_TYPEfor size or format errors.422 UNREADABLE_QRwhen the image yields no readable QR code.429 RATE_LIMITEDwhen the scanner is busy or a rate limit is reached.502 IMAGE_PROCESSING_FAILED,503 SCANNER_UNAVAILABLE, or504 REQUEST_TIMEOUTfor service or image download errors.
Remote MCP server
Use The QR Scanner as the display name and https://the-qr-scanner.com/mcp as the server URL. Choose Streamable HTTP and No authentication when your client asks.
ChatGPT
- Open Plugins in ChatGPT on the web. Select +, then Add custom MCP server.
- Enter the name and server URL above, choose No authentication, and create the plugin.
- In a chat, select The QR Scanner from the composer’s plugin menu or mention it with
@.
Custom MCP access depends on your plan and workspace permissions. ChatGPT setup guide
Codex
In the desktop app, open Settings → MCP servers → Add server, choose Streamable HTTP, enter the server URL, then save and restart. Run these commands in the CLI.
codex mcp add the-qr-scanner --url https://the-qr-scanner.com/mcp
codex mcp list Use /mcp in a Codex session to check the connection. Codex MCP guide
Claude and Claude Code
In Claude on the web or desktop, open Customize → Connectors → Add custom connector. Enter the server URL, select No sign in, and enable the connector from the chat’s + menu. On managed accounts, an owner may need to add it first. Claude connectors guide
In Claude Code, add the server in the terminal, then open Claude Code and check /mcp.
claude mcp add --transport http the-qr-scanner --scope user https://the-qr-scanner.com/mcp Google Gemini
In Gemini CLI, add the server and check that it appears in the list.
gemini mcp add --transport http the-qr-scanner https://the-qr-scanner.com/mcp
gemini mcp list In Google Antigravity, add the entry below to ~/.gemini/config/mcp_config.json. In the IDE, open MCP Servers → Manage MCP Servers → View raw config to reach the file. Keep any existing server entries.
{
"mcpServers": {
"the-qr-scanner": {
"serverUrl": "https://the-qr-scanner.com/mcp"
}
}
}Grok
Open Grok Connectors, choose New Connector → Custom, and enter the server URL. Once Grok discovers the tool, use it in a conversation. Grok connectors guide
DeepSeek and Qwen in Cherry Studio
Choose a DeepSeek or Qwen model that supports tool calling. In Cherry Studio, open Settings → MCP → MCP Servers → Add, choose Streamable HTTP, paste the server URL, and enable the server. Then open your agent’s Edit → MCP menu and enable The QR Scanner for that agent. Cherry Studio MCP guide
Cursor
Add the entry to ~/.cursor/mcp.json for personal use or .cursor/mcp.json for the current project. Keep any existing entries, then enable the server and check that scan_qr_code appears in Agent’s available tools.
{
"mcpServers": {
"the-qr-scanner": {
"url": "https://the-qr-scanner.com/mcp"
}
}
}VS Code with GitHub Copilot
Add the entry to .mcp.json at the workspace root for the Copilot agent. You can also add it through Chat: Open Customizations → MCP Servers and choose HTTP. Review any trust prompt, then use the tool in Copilot Chat.
{
"mcpServers": {
"the-qr-scanner": {
"type": "http",
"url": "https://the-qr-scanner.com/mcp",
"tools": [
"scan_qr_code"
]
}
}
}Try your connection
Send this prompt to your connected client.
Use The QR Scanner's scan_qr_code tool to read the QR code in this image. Return the exact decoded text.
https://the-qr-scanner.com/qr-link-extractor/sample.pngThe tool call should return https://example.com/trail-map. The MCP tool returns structuredContent with the same fields as the HTTP API, including linkSafety for URL results when requested. To enable it, ask your client to check the decoded link’s safety or set checkLinkSafety: true in the tool arguments. If the client skips the tool, check that scan_qr_code is enabled for the current conversation.
Limits and privacy
Use a direct public HTTP or HTTPS link to a PNG, JPEG, WebP, or GIF image. The maximum is 5 MiB and 2 megapixels per image. GIF scans use the first frame. Both integrations share a total of 100 scans per minute and an allowance of 10 scans per IP per minute across all server-side scans.
We fetch the image for that request, return the decoded text to your caller, and discard the image. We discard the decoded text after returning it. When you request a link safety check, SupaQR Web checks the reputation of the decoded HTTP or HTTPS destination through Google Web Risk without visiting it. See the Privacy Policy.