Salta al contingut

Renderitza ZPL des del teu assistent d'IA

OpenZPL parla el Protocol de Context Model. Connecta Claude, Cursor o qualsevol client MCP i pot convertir una etiqueta ZPL en un PNG o un PDF — directament al xat. Sense clau, sense compte.

https://api.openzpl.com/mcp

Afegeix-ho al teu assistent

El servidor és remot i sense estat, per HTTP. Afegeix-ho com el teu client afegeix un servidor MCP remot:

claude mcp add --transport http openzpl https://api.openzpl.com/mcp

Després pregunta: “renderitza aquest ZPL i mostra'm l'etiqueta”.

{
  "mcpServers": {
    "openzpl": { "url": "https://api.openzpl.com/mcp" }
  }
}

Afegeix això a la configuració MCP del teu client, com ara el de Cursor ~/.cursor/mcp.json.

npx -y mcp-remote https://api.openzpl.com/mcp

Per a un client que només executa servidors locals (stdio), aquest pont el connecta al punt final remot.

El que pot fer

Tres eines només de renderització, basades en el mateix motor que l'API i el visualitzador. Renderitza el ZPL que li dones; no dissenya l'etiqueta per tu.

EinaEl que fa
render_zplRenderitza una etiqueta a una imatge PNG i la mostra.
zpl_to_pdfRenderitza el ZPL a un PDF, una pàgina per etiqueta.
preview_urlCrea un enllaç compartible que renderitza l'etiqueta quan s'obre en un navegador.

Cada eina accepta el zpl, i opcionalment dpmm (6, 8, 12 o 24), width_in / height_in en polzades i rotation.

Prova-ho amb curl

El punt final és JSON-RPC 2.0 senzill, així que pots cridar-lo sense un assistent també:

curl -s https://api.openzpl.com/mcp -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
       "params":{"name":"render_zpl",
                 "arguments":{"zpl":"^XA^FO50,50^ADN,36,20^FDHi^FS^XZ"}}}'

Gratuït per provar

Les impressions sobre MCP són anònimes i gratuïtes, i compten contra la mateixa dotació que l'API sense clau: 3 etiquetes al dia per adreça IP. Per límits més alts, consulta pricing; un pla de pagament sobre MCP està en camí.

Preguntes

Do I need an API key or an account?

No. The MCP server is free and needs no account. Renders count against the API's allowance without a key: 3 labels a day per IP address.

Which assistants can use it?

Any client that speaks the Model Context Protocol over HTTP, such as Claude or Cursor. Point it at https://api.openzpl.com/mcp; for a client that only runs local servers, bridge it with npx mcp-remote https://api.openzpl.com/mcp.

What can it do?

Three tools: render a label to a PNG image, render it to a PDF, or build a shareable preview link. It renders the ZPL you give it; it doesn't design the label for you.

Està emmagatzemat el meu ZPL?

The label is rendered and returned. As with any render without a paid plan, we may keep failed renders and a small sample of the others for up to 24 hours to find rendering bugs, then they are deleted.

Vegeu també el HTTP API docs i el comparison with mylabelmaker.

Comentaris