
Barcode Scanner
io.github.domdomegg由 GitHub 账号 domdomegg 发布v1.2.0更新于 Nov 3, 2026
Scan and generate barcodes and QR codes.
概览
本地 MCP 服务器,让助手从图片中解码条形码和二维码,并生成二维码或条形码 PNG 图片。
- 可以做什么
- 从图片文件或 base64 数据中解码条形码或二维码,返回解码文本与识别出的格式
- 根据文本或网址生成二维码 PNG,可配置纠错级别
- 生成 25 种以上格式的条形码 PNG,如 Code 128、EAN-13、UPC-A
- 适用场景
- 适合让助手读取照片中的条形码或二维码、为链接生成二维码、为运单或追踪号生成条形码图片,或在查询前核验已打印的条码。
- 运行要求
- 通过 npx 以本地进程方式运行 npm 包 barcode-scanner-mcp,使用 stdio 传输;需要设置环境变量 MCP_TRANSPORT。未声明任何认证。仅支持桌面端,不提供网页可执行版本。
安装
在 SourceWeft 中
- 打开 控制台中的 Barcode Scanner,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
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
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.
来源:README.md,提交 7470365
工具
0版本历史
1- v1.2.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分