Utilities
Data source: barcodeapi.org
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"}}}'
REST API
API Root
https://context.gnist.ai/rest/barcode/
3 endpoints available:
GET /rest/barcode/generate_barcodeGET /rest/barcode/list_barcode_typesGET /rest/barcode/report_feedback
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())
Command Line
Command
gc barcode
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (3)
generate_barcodeGenerate a barcode image URL for the given data and type.
| 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. |
list_barcode_typesList supported barcode types with descriptions.
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |