Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
QRMCP_LOG_LEVELNoLogging verbosity.
QRMCP_HTTP_TOKENNoBearer token for HTTP / SSE.
QRMCP_OUTPUT_DIRNoDirectory for generated images. Defaults to ./out../out
QRMCP_ALLOW_REMOTENoAllow fetching images over http(s).
QRMCP_OCR_PRIORITYNoOCR backend order, e.g. rapid,windows.
QRMCP_ALLOW_PRIVATENoAllow private / loopback hosts.
QRMCP_TESSERACT_CMDNoPath to the Tesseract binary.
QRMCP_URL_ALLOWLISTNoComma-separated allowed hosts for qr_open. Wildcards such as *.example.com are supported.
QRMCP_MAX_IMAGE_BYTESNoInput image size cap in bytes.
QRMCP_DECODE_BUDGET_MSNoDecode time budget in milliseconds.
QRMCP_MAX_IMAGE_PIXELSNoInput image pixel count cap.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Local QR/Image toolbox. Use qr_decode for normal images, qr_repair for glare-damaged or low-resolution QR codes, qr_generate to create codes, qr_parse to interpret payloads, ocr_image for text. qr_open never opens a link without confirm=true and always requires a human-visible URL check.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
qr_batchA

Scan many images in one call. Accepts an explicit list of sources or a directory plus glob pattern; optionally runs OCR on every image too. Returns per-file results and aggregate counts.

qr_parseA

Interpret a decoded QR payload. Detects URL/WiFi/vCard/phone/email/payment/text, splits URL query parameters, extracts embedded links and flags phishing-style risks.

qr_decodeA

Decode one or more QR/2D codes from an image. Tries zxing-cpp (multiple binarizers), OpenCV, ZBar and preprocessing variants; if all fail it automatically falls back to qr_repair for glare/blur/low-resolution damage. Returns text, symbology, EC level, corner points, confidence and a parsed payload with URL risk flags.

qr_detectA

Locate QR symbols in an image without decoding. Returns bounding boxes and corner points, useful for cropping before qr_repair. Deduplicates results across engines.

qr_generateB

Generate a QR code. Supports error-correction level, fixed version/mask, scale, quiet zone, colors and PNG/SVG/ASCII output. Optionally saves to the sandbox output directory.

server_healthA

Report server version, supported MCP protocol versions, transports, registered tools, available OCR backends and the active safety configuration.

ocr_imageA

Recognize text in an image with pluggable OCR backends. backend=auto tries Windows built-in OCR, then RapidOCR, then Tesseract. Returns full text, per-line boxes/confidence and word boxes when available.

qr_openA

Validate and optionally open a QR-code URL in the system browser. IMPORTANT: show the URL and its risk flags to the user before calling with confirm=true. Without confirm=true this tool only validates and reports; it never opens anything. Blocks file/javascript/data schemes, private/loopback hosts (SSRF) and hosts outside QRMCP_URL_ALLOWLIST.

qr_repairA

Recover a damaged QR code (glare, blur, low resolution, partial occlusion). Fits the module grid from the finder patterns, decodes format information via BCH, then applies Reed-Solomon erasure/Chase correction. Returns the recovered text, a verification score and a rebuilt clean QR image. Supports QR versions 1-4; larger versions are reported as unsupported. hint= accepts a suspected full text to verify against the damaged modules.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 9 tools

Disambiguation4/5

Most tools have clearly distinct roles: generate, decode, detect, parse, repair, batch scan, OCR, open URL, and health reporting. The only mild overlap is between qr_decode and qr_batch, since both decode images, but qr_batch is clearly framed as a multi-file/directory orchestration tool whereas qr_decode handles individual decode attempts with fallback repair.

Naming Consistency5/5

All tool names use consistent snake_case and follow predictable prefix_action conventions. QR-related operations consistently use the qr_ prefix, while ocr_image and server_health are clearly named support tools.

Tool Count5/5

Nine tools is well-scoped for a QR/OCR utility server. Each tool covers a distinct operation, and there are no redundant or filler tools.

Completeness4/5

The surface covers generation, decoding, detection, parsing, repair, batch processing, OCR, opening URLs, and health checks, which is strong lifecycle coverage for this domain. Minor gaps exist around higher-level payload creation helpers or batch generation, but normal workflows can be handled via qr_generate.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues