Installation
Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).
barcode-scanner-mcpclaude mcp add barcode-scanner -- npx -y barcode-scanner-mcp@1.2.0
{
"mcpServers": {
"barcode-scanner": {
"command": "npx",
"args": [
"-y",
"barcode-scanner-mcp@1.2.0"
]
}
}
}
barcode-scanner-mcpclaude mcp add barcode-scanner -e 'MCP_TRANSPORT=<MCP_TRANSPORT>' -- npx -y barcode-scanner-mcp@1.2.0
{
"mcpServers": {
"barcode-scanner": {
"command": "npx",
"args": [
"-y",
"barcode-scanner-mcp@1.2.0"
],
"env": {
"MCP_TRANSPORT": "<MCP_TRANSPORT>"
}
}
}
}
Variables d'environnement
MCP_TRANSPORTobligatoire Transport type.
Documentation
Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.
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
| 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.) |
Contributing
Pull requests are welcomed on GitHub! To get started:
- Install Git and Node.js
- Clone the repository
- Install dependencies with
npm install - Run
npm run testto run tests - Build with
npm run build
Releases
Versions follow the semantic versioning spec.
To release:
- Use
npm version <major | minor | patch>to bump the version - Run
git push --follow-tagsto push with tags - Wait for GitHub Actions to publish to the NPM registry.
Questions fréquentes
Qu'est-ce que Barcode Scanner ?
Scan and generate barcodes and QR codes.
Comment installer Barcode Scanner ?
Il s'exécute sur votre machine. Dans Claude Code : claude mcp add barcode-scanner -- npx -y barcode-scanner-mcp@1.2.0. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.
Faut-il une clé API pour Barcode Scanner ?
Oui. Il attend MCP_TRANSPORT, à renseigner dans sa configuration.
Barcode Scanner est-il open source ?
Oui. Son code est sur GitHub sous licence MIT.
Qui maintient Barcode Scanner ?
Il est publié par domdomegg. AI.tn le référence sans le maintenir ni le recommander.
Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.