mcp-scan-qr
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-scan-qrExtract the data from this QR code image: https://example.com/code.png"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-scan-qr
这是一个基于 FastMCP 框架构建的 MCP (Model Context Protocol) 工具包,用于从图像中扫描二维码。
功能
当前实现了以下二维码扫描工具:
scanQRCode: 从单个图片URL扫描二维码scanQRCodeBatch: 从多个图片URL批量扫描二维码
Related MCP server: EasyOCR MCP Server
安装依赖
bun install运行项目
bun run dev调试项目
bun run inspect构建项目
bun run build部署 MCP
{
"mcpServers": {
"mcp-scan-qr": {
"args": ["-y","@pidanmoe/mcp-scan-qr"],
"command": "npx",
"env": {
// 环境变量
}
}
}
}项目结构
src/index.ts: 主入口文件,初始化并启动 FastMCP 服务器
src/tools/scanQRCode.ts: 实现了
scanQRCode工具,支持从单个图片URL扫描二维码src/tools/scanQRCodeBatch.ts: 实现了
scanQRCodeBatch工具,支持从多个图片URL批量扫描二维码src/utils/logger.ts: 日志工具模块
使用说明
该工具包提供了两个MCP工具:
scanQRCode
从单个HTTPS图片URL扫描二维码:
{
"name": "scanQRCode",
"arguments": {
"imageUrl": "https://example.com/qrcode.png"
}
}scanQRCodeBatch
从多个HTTPS图片URL批量扫描二维码(最多10个):
{
"name": "scanQRCodeBatch",
"arguments": {
"imageUrls": [
"https://example.com/qrcode1.png",
"https://example.com/qrcode2.png"
]
}
}两个工具都会返回包含扫描结果的JSON字符串。成功时返回二维码内容,失败时返回错误信息。
技术栈
Bun - JavaScript/TypeScript 运行时
FastMCP - MCP 框架
Zod - TypeScript-first schema declaration and validation library
jsQR - JavaScript QR code reader
Sharp - High performance Node.js image processing
Axios - Promise based HTTP client
此项目使用 bun v1.2.19 创建。Bun 是一个快速的一体化 JavaScript 运行时。
This server cannot be deployed
Maintenance
Related MCP Connectors
qart.uk MCP server: resolve scanned codes, browse the free pool, and buy QR artwork.
MCP server for ScanMalware.com URL scanning, malware detection, and analysis.
Generate QR codes and create, edit and track dynamic (editable) QR codes with scan analytics, over a hosted MCP server plus a free REST API. Free, no watermark, no expiry. Every tool takes a free API key from https://openqr.uk/api.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceConverts URLs into scannable QR codes with customizable options like error correction levels and image sizes. Provides downloadable links for generated QR codes through a simple MCP tool interface.7 npm4Apache 2.0
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides OCR capabilities using the EasyOCR library, supporting over 80 languages and GPU acceleration. It enables processing images from base64 strings, local files, or URLs with options for text-only or detailed coordinate and confidence output.2Apache 2.0
- FlicenseNot gradedqualityDmaintenanceAn advanced MCP server for generating styled QR codes with logos, batch processing, and specialized formats like WiFi or vCards. It also provides tools to decode existing QR code images and analyze their quality or content.-
- FlicenseNot gradedqualityDmaintenanceMCP server for creating and managing trackable QR codes. 6 tools, 12 QR types, scan analytics.-