- Home
- MCP servers
- Barcode Scanner
Barcode Scanner
- javascript
0
GitHub Stars
javascript
Language
4 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
This MCP server enables you to decode barcodes and QR codes from images, generate QR codes and barcodes in multiple formats, and verify printed barcodes by decoding them for downstream lookups. It exposes practical capabilities you can integrate into your workflows or Claude-based automation to handle barcode-related tasks.
How to use
You can run this MCP server either as a remote HTTP endpoint or as a local stdio service and connect to it from your MCP client. Use the HTTP method when you want to expose a URL that clients can call over the network. Use the stdio method when you prefer a local, in-process integration.
Key actions you can perform with this MCP server include decoding a barcode or QR code from an image, generating a QR code PNG from text or a URL, and producing barcodes in more than 25 formats such as Code 128, EAN-13, and UPC-A. You can then use the decoded text for lookups, or save and share generated barcode assets.
How to install
Prerequisites: you need Node.js and npm installed on your system.
Install and run the MCP server either as a local stdio service or expose it via HTTP. Use the exact commands shown here to ensure proper MCP integration.
# Install the MCP package if needed and run it directly with npx
# Start the server locally (stdio) using npx
npx -y barcode-scanner-mcp
# Alternatively, expose via HTTP transport on port 3000
MCP_TRANSPORT=http PORT=3000 npx -y barcode-scanner-mcp
# If you want to connect Claude to this HTTP endpoint
claude mcp add barcode-scanner-mcp http://localhost:3000/mcp
Additional notes
The server exposes three core tools you can invoke through your MCP client: decode_image to extract barcode or QR code data from an image, generate_qr to create a PNG QR code from text or a URL, and generate_barcode to produce barcodes in 25+ formats.
Available tools
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.).