barcode-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@barcode-mcpvalidate GTIN 042100005264"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
barcode-mcp
Stateless barcode tools for LLM agents, exposed via the Model Context Protocol (protocol 2025-11-25 via SDK 1.30.0, negotiable down to 2024-10-07).
Extracted from the engines proven in the QR Saver PWA: one WASM engine (zxing-cpp via zxing-wasm) does both render and decode — no DOM, no browser, fully headless.
Tools
Tool | Input | Output |
|
|
|
|
| base64 PNG + |
|
|
|
| — | format table with capabilities |
render_barcode decodes its own output before returning; failures come back with warning, never silently.
Related MCP server: QR Reader MCP Server
Connect (hosted, no install)
Live endpoint, no API key — registered in the official MCP Registry as io.github.appvantagelabs2-a11y/barcode.
list_formats and validate_gtin are free. decode_barcode and render_barcode cost fractions of a cent per call, two ways:
x402 (permissionless) — unpaid calls return HTTP
402with USDC payment instructions; an x402-capable client pays and retries automatically.GET /healthshows the current price.Trial key — send
X-API-Key: <key>for a free quota of 50 decode/render calls per key. Responses carryX-Trial-Remaining: N; when exhausted the call falls back to x402. Ask for a trial key via a GitHub issue.
Claude Code
claude mcp add barcode --transport http https://mcp.casuyi.com/mcpCursor / VS Code (Copilot) / Windsurf / any mcpServers JSON client
{
"mcpServers": {
"barcode": { "type": "http", "url": "https://mcp.casuyi.com/mcp" }
}
}Claude Desktop — Settings → Connectors → Add custom connector → URL above.
Programmatic (JSON-RPC) — MCP 2025-11-25, Streamable HTTP:
curl -X POST https://mcp.casuyi.com/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Examples and clients
examples/curl.md— raw JSON-RPC: tools/list, free validation call, render (x402)examples/claude-code.md— connect from Claude Code / Desktop / Cursor / any MCP clientclients/python.py— minimal Python client (stdlib only)
Run (self-host)
npm install
node test/run.mjs # 24 tests: round-trips, GTIN, small-image, MCP smoke
node index.js # stdio MCP serverRegister the stdio variant in an MCP client:
{
"mcpServers": {
"barcode": { "command": "node", "args": ["/path/to/barcode-mcp/index.js"] }
}
}Known behaviors
UPC-A verifies as zero-padded EAN-13 (
042100005264→0042100005264) — inherent to the GTIN family, reported inwarning.Heavy resampling of a large render (non-integer downscale with lanczos) can alias modules below zxing's detection floor — same in native zxing-cpp. Real camera captures (native small sizes) decode fine, including a nearest-upscale retry inside
decode().WASM loading in Node requires the
wasmBinaryoverride (seelib/decoder.js); the browser-stylelocateFilepath fails in Node.
Roadmap (agent-commerce)
HTTP transport + x402 pay-per-call for agent marketplaces (Agentic.Market, MCP registries)
Migration to spec
2026-07-28(stateless core,Mcp-Method/Mcp-Nameheaders) once the SDK line ships it — the HTTP/gateway mode is exactly what a public paid endpoint wants.
This server cannot be deployed
Maintenance
Related MCP Connectors
Decode, render, validate barcodes: QR, DataMatrix, EAN, UPC. Free tools + x402 paid GTIN checks.
41Hosted MCP for e-commerce: live product catalog, stock, and pricing for AI agents.
Render, validate and convert Zebra ZPL label code from AI assistants: PNG preview, lint, barcodes.
Generate QR codes for URLs, PIX, Wi-Fi, vCards, WhatsApp and more. For AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides image analysis, inspection, cropping, OCR, and comparison capabilities via the Model Context Protocol, allowing AI agents to process and manipulate images using vision models.2MIT
- AlicenseAqualityAmaintenanceEnables AI assistants to decode QR codes from images, with tools for scanning full images and enhancing blurry or reflective regions before decoding, plus quality diagnostics to guide retry strategies.3MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to generate barcodes in Code128, Code39, EAN-13, or UPC-A formats via x402 micropayments, returning base64-encoded SVG images with customizable width and height.MIT
- AlicenseAqualityBmaintenanceEnables LLM agents to analyze retail shelf photos via computer vision, including product counting, gap detection, price tag reading, and planogram compliance checking.7MIT