GnistAI GnistAI
Log in

Barcode Generation

Generate barcode image URLs for Code 128, Code 39, EAN-13, EAN-8, UPC-A, and QR formats with data validation.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 3 tools tools 3 3 Utilities

Data source: barcodeapi.org

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/barcode/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-barcode": {
      "url": "https://context.gnist.ai/mcp/barcode/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/barcode/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "generate_barcode", "arguments": {"barcode_type": "example", "data": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/barcode/

3 endpoints available:

Shell
curl "https://context.gnist.ai/rest/barcode/generate_barcode?barcode_type=example&data=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/barcode/generate_barcode",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "barcode_type": "example",
        "data": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc barcode

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (3)

generate_barcode
Generate a barcode image URL for the given data and type.
ParameterTypeRequiredDescription
barcode_typestringrequiredBarcode type: code128, code39, ean13, ean8, upc-a, qr.
datastringrequiredThe data to encode in the barcode.
list_barcode_types
List supported barcode types with descriptions.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related