Back to MCP directory
publicPublicdnsLocal runtime

qrcode-mcp

一个基于MCP协议的QR码生成服务器

article

README

🚀 QRCode_MCP

QRCode_MCP 是一个用于生成简单二维码的模型上下文协议(MCP)服务器,支持自定义二维码样式,让你轻松生成独具个性的二维码。

🚀 快速开始

QRCode_MCP 是一款便捷的二维码生成工具,支持自定义样式。以下为你介绍它的安装和使用方法。

✨ 主要特性

  • 自定义样式:支持个性化二维码外观设计,满足多样化需求。
  • 操作简便:易于使用和集成,降低使用门槛。

📦 安装指南

使用 Smithery 安装

通过 Smithery 可快速安装 QRCode_MCP,适用于 Claude Desktop:

npx -y @smithery/cli install @1595901624/qrcode-mcp --client claude

手动安装

  1. 克隆仓库:
git clone https://github.com/1595901624/qrcode-mcp.git
  1. 安装依赖项:
pnpm install
  1. 构建项目:
pnpm run build

🔧 技术细节

在您的 Cline MCP 设置文件中添加以下内容:

{
   "mcpServers": {
    "qrcode-mcp": {
      "command": "node",
      "args": ["path/to/qrcode-mcp/build/index.js"],
      "disabled": false,
      "autoApprove": []
    }
  }
}

💻 使用示例

可用工具

  • qrcode:生成二维码图像
    • 参数:
      • text:需要编码到二维码中的文本(必填)
      • size:二维码的大小(可选,默认为 256)
      • darkColor:深色模块的颜色(可选,默认为 #000000)
      • lightColor:浅色模块的颜色(可选,默认为 #ffffff)
      • errorCorrectionLevel:纠错等级(可选,默认为 M)
      • margin:二维码的边距(可选,默认为 4)

🛠️ 开发指南

# 安装依赖
npm install

# 构建项目
npm run build

# 开发模式(自动重建)
npm run watch

📄 许可证

本项目 licensed under the MIT License。详细信息请参阅 LICENSE 文件。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client