QR Reader MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOG_LEVEL | No | 日志级别:debug、info、warning、error | info |
| MAX_IMAGE_SIZE | No | 图片大小上限(字节,默认 10 MB) | 10485760 |
| READ_ONLY_MODE | No | 设为 true 禁用 enhance_and_decode(仅保留 decode_qrcode_full) | false |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| decode_qrcode_fullA | Scan the entire image for QR codes and decode them. Returns all detected codes with detailed diagnostics. Agent should decide next step based on result_code:SUCCESS → use content; SUCCESS_WITH_WARNING → check warnings;RETRYABLE → call enhance_and_decode;NO_QR_FOUND / QR_UNRECOVERABLE → inform user. |
| enhance_and_decodeA | Apply enhancement operations to a region of the image, then decode.Enhancement strategy is decided by the Agent based on decode_qrcode_full diagnostics.Supports upscale, sharpen, adjust_contrast, denoise — composable in any order. |
| auto_enhanceA | Automatically try enhancement strategies to decode a QR code in one call.Tries up to 7 strategies (upscale, sharpen, contrast, denoise, combos) in sequence — returns as soon as one succeeds.Ideal for RETRYABLE results from decode_qrcode_full:no manual bbox estimation or operation selection needed. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 3 tools
The tools are largely distinct: decode_qrcode_full performs initial scanning, enhance_and_decode allows manual enhancement of a region, and auto_enhance automatically tries strategies. The overlap between enhance_and_decode and auto_enhance is clear from descriptions, with one being manual and the other automatic.
Tool names follow no consistent pattern: 'decode_qrcode_full' is verb_noun_adjective, 'enhance_and_decode' is two verbs joined by 'and', and 'auto_enhance' is a prefixed verb. They are readable but structurally inconsistent.
Three tools is well-scoped for a QR reader server, covering the core decode step and two enhancement recovery approaches without unnecessary bloat. Each tool has a clear role in the workflow.
The surface covers initial decoding and recovery through enhancement, but lacks a direct 'decode region without enhancement' tool. This is a minor gap since the enhancement tools can also handle regions, but a simple region decode would be a natural addition.