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   |   REST API   |   OpenAPI   |   CLI   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 3 tools tools 3 3 type: api wrapper type type api wrapper api wrapper lifecycle: maintained lifecycle lifecycle maintained maintained Utilities

Data source: barcodeapi.org

MCP Endpoint (Streamable HTTP) https://context.gnist.ai/mcp/barcode/
Authentication

All requests require a Gnist-API-Key header (or api_key query parameter).

Free tier: 100 calls/day. Get your API key.

Tools (3)

generate_barcode

Generate a barcode image URL for the given data and type.

Returns a URL that renders a barcode image. The URL can be used directly in an <img> tag
or opened in a browser. No image data is returned — only the URL.
Supported types: code128, code39, ean13, ean8, upc-a, qr.

ParameterTypeRequiredDescription
barcode_typestringrequiredBarcode type: code128, code39, ean13, ean8, upc-a, qr.
datastringrequiredThe data to encode in the barcode.
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "generate_barcode",
    "arguments": {
      "barcode_type": "example",
      "data": "example"
    }
  }
}
list_barcode_types

List supported barcode types with descriptions.

Returns the available barcode types including name, description, and expected data format.

JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "list_barcode_types",
    "arguments": {}
  }
}
report_feedback

Report a bug, feature request, or general feedback for this data source.

Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.

Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "report_feedback",
    "arguments": {
      "feedback": "example"
    }
  }
}

Quick Start

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"}}}'
Python
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/barcode/",
    headers={"Gnist-API-Key": "YOUR_API_KEY", "Content-Type": "application/json"},
    json={
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "generate_barcode",
    "arguments": {
      "barcode_type": "example",
      "data": "example"
    }
  }
},
)
print(resp.json())

Related Toolkits (Utilities)

Resources