Utilities
Data source: goqr.me (api.qrserver.com)
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/qr-code/
claude_desktop_config.json
{
"mcpServers": {
"gnist-qr-code": {
"url": "https://context.gnist.ai/mcp/qr-code/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/qr-code/" \
-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_qr_code", "arguments": {"data": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/qr-code/
4 endpoints available:
GET /rest/qr-code/generate_qr_codeGET /rest/qr-code/list_qr_formatsGET /rest/qr-code/list_qr_error_correction_levelsGET /rest/qr-code/report_feedback
Shell
curl "https://context.gnist.ai/rest/qr-code/generate_qr_code?data=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/qr-code/generate_qr_code",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"data": "example"
},
)
print(resp.json())
Command Line
Command
gc qr-code
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (4)
generate_qr_codeGenerate a QR code URL for the given text or URL.
| Parameter | Type | Required | Description |
|---|---|---|---|
data | string | required | The text or URL to encode in the QR code. |
size | integer | optional | Image size in pixels (10-1000). (default: 200) |
format | string | optional | Image format: png, gif, jpeg, svg, eps. (default: "png") |
error_correction | string | optional | Error correction level: L, M, Q, H. (default: "M") |
color | string | optional | QR code color as hex (e.g. 000000 for black). (default: "000000") |
bg_color | string | optional | Background color as hex (e.g. ffffff for white). (default: "ffffff") |
list_qr_formatsList supported QR code image formats.
list_qr_error_correction_levelsList available QR code error correction levels.
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") |