عرض ZPL من مساعد الذكاء الاصطناعي الخاص بك
OpenZPL يتحدث بروتوكول سياق النموذج. اتصل بـ 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 مجهولة ومجانية، لذا يحمل كل منها صندوقًا صغيرًا openzpl.com · free plan في زاوية ويحسب ضد نفس المخصص اليومي مثل API، لكل عنوان IP. للحصول على عروض نظيفة وحدود أعلى، راجع pricing؛ خطة مدفوعة عبر MCP قادمة.
أسئلة
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.
هل تم حفظ ZPL الخاص بي؟
No. The label is rendered and returned; the server doesn't keep the ZPL.
راجع أيضًا HTTP API docs و comparison with mylabelmaker.