ข้ามไปที่เนื้อหา

แสดง ZPL จากผู้ช่วย AI ของคุณ

OpenZPL ใช้โปรโตคอล Model Context. เชื่อมต่อ Claude, Cursor หรือไคลเอนต์ MCP ใด ๆ และสามารถแปลงป้าย ZPL เป็น PNG หรือ PDF — โดยตรงในแชท ไม่มีคีย์ ไม่มีบัญชี.

https://api.openzpl.com/mcp

เพิ่มไปยังผู้ช่วยของคุณ

เซิร์ฟเวอร์อยู่ระยะไกลและไม่มีสถานะ ผ่าน HTTP เพิ่มมันในแบบที่ไคลเอนต์ของคุณเพิ่มเซิร์ฟเวอร์ MCP ระยะไกล:

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

จากนั้นถามว่า: “แสดง ZPL นี้และแสดงป้ายให้ฉันดู”.

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

เพิ่มสิ่งนี้ไปยังการตั้งค่า MCP ของลูกค้า เช่น ~/.cursor/mcp.json ของ Cursor.

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

สำหรับไคลเอนต์ที่ทำงานเฉพาะเซิร์ฟเวอร์ท้องถิ่น (stdio) สะพานนี้เชื่อมต่อกับปลายทางระยะไกล.

สิ่งที่มันสามารถทำได้

เครื่องมือแสดงผลเท่านั้นสามตัว ที่มีพื้นฐานจากเครื่องยนต์เดียวกับ API และผู้ดู มันจะแสดง ZPL ที่คุณให้; มันไม่ออกแบบป้ายให้คุณ.

เครื่องมือทำหน้าที่อะไร
render_zplแสดงป้ายเป็นภาพ PNG และแสดงผล.
zpl_to_pdfแสดง ZPL เป็น PDF หนึ่งหน้า ต่อหนึ่งป้าย.
preview_urlสร้างลิงก์ที่แชร์ได้ซึ่งจะแสดงป้ายเมื่อเปิดในเบราว์เซอร์.

แต่ละเครื่องมือจะใช้ zpl และ dpmm (6, 8, 12 หรือ 24) ที่เลือกได้, width_in / height_in เป็นนิ้ว และ rotation.

ลองใช้กับ curl

ปลายทางเป็น JSON-RPC 2.0 ธรรมดา ดังนั้นคุณสามารถเรียกใช้งานได้โดยไม่มีผู้ช่วยเช่นกัน:

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

ทดลองฟรี

การเรนเดอร์ผ่าน MCP เป็นแบบไม่ระบุชื่อและฟรี และนับรวมกับการจำกัดเดียวกันกับ API ที่ไม่มีคีย์: 3 ป้ายต่อวันต่อที่อยู่ IP สำหรับขีดจำกัดที่สูงขึ้น ดูที่ pricing; แผนชำระเงินสำหรับ MCP กำลังมาถึง

คำถาม

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.

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.

ดูที่ HTTP API docs และ comparison with mylabelmaker ด้วย.

ข้อเสนอแนะแสดงความคิดเห็น