Skip to main content
Glama
Br0ski777

barcode-generator

by Br0ski777

Barcode Generator API

MCP Server x402 License: MIT

生成条形码 —— EAN-13、UPC-A、Code128、Code39。Base64 SVG 输出,可自定义宽度和高度。通过 x402 按次付费(Base L2 上的 USDC)—— 无需 API 密钥、无需注册、无速率限制。

隶属于 klymax402 市场 —— 面向 AI 智能体的 100 个 x402 微支付 API,一个钱包,USDC on Base。

快速入门 —— MCP

在你的 MCP 客户端配置中添加以下内容(Claude Desktop、Cursor、ElizaOS 等):

{
  "mcpServers": {
    "barcode-generator": {
      "url": "https://barcode-generator.api.klymax402.com/mcp"
    }
  }
}

Related MCP server: QR Code Generator

快速入门 —— HTTP(x402)

curl -X POST "https://barcode-generator.api.klymax402.com/api/barcode" \
  -H "Content-Type: application/json" \
  -d '{"data":"..."}'
# -> 402 Payment Required, with an x402 payment challenge in the response body

任何兼容 x402 的客户端(@x402/fetchx402-agent-tools、ATXP)都会自动处理“402 -> 签名 -> 重试”的完整循环。

工具

工具

方法

路径

价格

说明

utility_generate_barcode

POST

/api/barcode

$0.003

从文本或数字生成条形码

utility_generate_barcode

当你需要从文本或数字生成条形码时,请使用此工具。它返回 JSON 中 Base64 编码的 SVG 图像。

参数

名称

类型

必填

描述

data

string

要在条形码中编码的数据

format

string

条形码格式:code128、code39、ean13、upca(默认:code128)

width

number

条宽(单位:像素)(默认:2)

height

number

条形码高度(单位:像素)(默认:100)

示例响应:

{"data":"5901234123457","format":"ean13","image":"PHN2ZyB4bWxu...","width":264,"height":142}

** 适用场景**:产品标签、库存管理、发货标签、零售 POS 系统,以及资产跟踪条形码。

** 不适用场景**:二维码(使用 utility_generate_qr_code)、图像缩放(使用 media_resize_image)、PDF 生成(使用 document_generate_pdf)。

示例智能体提示词

  • “从文本或数字生成一个条形码”

支付

  • 协议:x402 —— HTTP 原生按次付费,无需注册、无需 API 密钥

  • 网络:Base L2(eip155:8453

  • 资产:USDC

  • 服务商:Coinbase CDP(主要)、PayAI(备用)

  • 也可通过 ATXP 访问(OAuth 封装的 x402,RFC 9728 受保护资源元数据)

属于 klymax402

面向 AI 智能体的 100 个 x402 微支付 API —— 一个钱包、Base 上的 USDC、零注册。

许可证

MIT

A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    MCP server to generate QR codes from text or URLs, returning base64 PNG images, with pay-per-call via x402 micropayments (USDC on Base L2).
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to query the largest CC0 database for provenance, license verification, and market data, and generate CC0 images, all via pay-per-call x402 micropayments.

View all related MCP servers

Related MCP Connectors

  • 63 pay-per-call tools for agents: vision, text, data, web, blockchain. USDC on Base via x402.

  • x402-paid agent tools: 18 over HTTP, 14 over stdio. USDC per call, no API key.

  • 30 pay-per-call APIs for AI agents: compliance, trade, safety, web, data. USDC on Base via x402.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Br0ski777/barcode-generator-x402'

If you have feedback or need assistance with the MCP directory API, please join our Discord server