Barcode Scanner

Scan and generate barcodes and QR codes.

OtherTypeScriptv1.2.0

barcode-scanner-mcp

MCP server for scanning and generating barcodes and QR codes.

Use Cases

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.

Setup

Follow the instructions on install-mcp, which generates the right config for your MCP client (Claude Code, Claude Desktop, Cursor, Cline, VS Code, and more).

Tools

ToolDescription
decode_imageDecode a barcode or QR code from an image file or base64 data
generate_qrGenerate a QR code PNG from text or a URL
generate_barcodeGenerate a barcode PNG in 25+ formats (Code 128, EAN-13, UPC-A, etc.)

Contributing

Pull requests are welcomed on GitHub! To get started:

  1. Install Git and Node.js
  2. Clone the repository
  3. Install dependencies with npm install
  4. Run npm run test to run tests
  5. Build with npm run build

Releases

Versions follow the semantic versioning spec.

To release:

  1. Use npm version <major | minor | patch> to bump the version
  2. Run git push --follow-tags to push with tags
  3. Wait for GitHub Actions to publish to the NPM registry.

Installation

Source-derived launch command. Check the maintainer’s required arguments and credentials before running:

bash
npx -y barcode-scanner-mcp

Set up in your AI client

Merge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.

json
{
  "mcpServers": {
    "io-github-domdomegg-barcode-scanner-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "barcode-scanner-mcp"
      ]
    }
  }
}

Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.

Claude Desktop setup reference

Package

barcode-scanner-mcpnpm

Compatible MCP Clients

Barcode Scanner works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.

  • Claude Desktop~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.
  • Cursor~/.cursor/mcp.jsonRestart Cursor for changes to take effect.
  • VS Code.vscode/mcp.jsonReload VS Code window for changes to take effect.
  • Windsurf~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect.
  • Claude Code.mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.

Learn More