Saltar al contenido

Renderiza ZPL desde tu asistente de IA

OpenZPL habla el Protocolo de Contexto del Modelo. Conecta Claude, Cursor o cualquier cliente MCP y puede convertir una etiqueta ZPL en un PNG o un PDF, directamente en el chat. Sin clave, sin cuenta.

https://api.openzpl.com/mcp

Añádelo a tu asistente

El servidor es remoto y sin estado, a través de HTTP. Añádelo como tu cliente añade un servidor MCP remoto:

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

Entonces pregunta: “renderiza este ZPL y muéstrame la etiqueta”.

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

Añade esto a la configuración MCP de tu cliente, como el de Cursor ~/.cursor/mcp.json.

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

Para un cliente que solo ejecuta servidores locales (stdio), este puente lo conecta al punto final remoto.

Lo que puede hacer

Tres herramientas de solo renderización, soportadas por el mismo motor que la API y el visor. Renderiza el ZPL que le das; no diseña la etiqueta por ti.

HerramientaQué hace
render_zplRenderiza una etiqueta a una imagen PNG y la muestra.
zpl_to_pdfRenderiza el ZPL a un PDF, una página por etiqueta.
preview_urlCrea un enlace compartible que renderiza la etiqueta al abrirla en un navegador.

Cada herramienta recibe el zpl y opcionalmente dpmm (6, 8, 12 o 24), width_in / height_in en pulgadas y rotation.

Inténtalo con cURL

El punto final es JSON-RPC 2.0, por lo que también puedes llamarlo sin un asistente:

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"}}}'

Gratis, con una marca de agua

Las renderizaciones sobre MCP son anónimas y gratuitas, por lo que cada una lleva una pequeña caja openzpl.com · free plan en una esquina y cuenta contra la misma asignación diaria que la API, por dirección IP. Para renderizaciones limpias y límites más altos, consulta pricing; un plan de pago sobre MCP está en camino.

Preguntas

Do I need an API key or an account?

No. The MCP server is free and needs no account. Renders use the free plan, so they carry a small openzpl.com mark and count against the same daily allowance as the API, 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á mi ZPL almacenado?

No. The label is rendered and returned; the server doesn't keep the ZPL.

Consulta también el HTTP API docs y comparison with mylabelmaker.

Comentarios