This server wraps barcode and QR code operations into three MCP tools. You can decode barcodes from images or base64 data, generate QR codes as PNGs with configurable error correction, and create barcodes in over 25 formats including Code 128, EAN-13, and UPC-A. It's useful when you need Claude to read barcodes from photos users send, generate QR codes for links or data on the fly, or create shipping labels with tracking numbers. Setup works over stdio with npx or you can run it as an HTTP server. The typical flow is asking Claude to scan a barcode image or requesting a QR code for a URL, and it handles the encoding and decoding behind the scenes.
MCP server for scanning and generating barcodes and QR codes.
Decode a barcode from a photo: "What does this barcode say?" → reads the image, detects the barcode format, and returns the decoded text.
Generate a QR code: "Create a QR code for https://example.com" → generates a PNG QR code image with configurable error correction.
Create shipping labels: "Generate a Code 128 barcode for tracking number 1Z999AA10123456784" → produces a barcode image in the specified format.
Verify printed barcodes: "Scan this product barcode and look up the item" → decodes the barcode and returns the text for further lookup.
claude mcp add barcode-scanner-mcp -- npx -y barcode-scanner-mcp
Or with HTTP transport:
# Start the server
MCP_TRANSPORT=http PORT=3000 npx -y barcode-scanner-mcp
# Add to Claude
claude mcp add --transport http barcode-scanner-mcp http://localhost:3000/mcp
| Tool | Description |
|---|---|
decode_image | Decode a barcode or QR code from an image file or base64 data |
generate_qr | Generate a QR code PNG from text or a URL |
generate_barcode | Generate a barcode PNG in 25+ formats (Code 128, EAN-13, UPC-A, etc.) |
Pull requests are welcomed on GitHub! To get started:
npm installnpm run test to run testsnpm run buildVersions follow the semantic versioning spec.
To release:
npm version <major | minor | patch> to bump the versiongit push --follow-tags to push with tagsMCP_TRANSPORT*Transport type.