Data source: barcodeapi.org
https://context.gnist.ai/mcp/barcode/
AuthenticationAll requests require a Gnist-API-Key header (or api_key query parameter).
Free tier: 100 calls/day. Get your API key.
Tools (3)
generate_barcodeGenerate 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
barcode_type | string | required | Barcode type: code128, code39, ean13, ean8, upc-a, qr. |
data | string | required | The data to encode in the barcode. |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "generate_barcode",
"arguments": {
"barcode_type": "example",
"data": "example"
}
}
}list_barcode_typesList supported barcode types with descriptions.
Returns the available barcode types including name, description, and expected data format.
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "list_barcode_types",
"arguments": {}
}
}report_feedbackReport 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'.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "report_feedback",
"arguments": {
"feedback": "example"
}
}
}Quick Start
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"}}}'
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())