AIアシスタントから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の~/.cursor/mcp.jsonのように。
npx -y mcp-remote https://api.openzpl.com/mcp
ローカル(stdio)サーバーのみを実行するクライアントの場合、このブリッジはリモートエンドポイントに接続します。
何ができるか
APIおよびビューワーと同じエンジンを使用した3つのレンダー専用ツールです。指定したZPLをレンダリングしますが、ラベルをデザインすることはありません。
| ツール | それが何をするか |
|---|---|
render_zpl | ラベルをPNG画像としてレンダリングし、それを表示します。 |
zpl_to_pdf | ZPLをPDFにレンダリングし、1ラベルごとに1ページを作成します。 |
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ボックスが隅に含まれ、IPアドレスごとにAPIの同じ日次制限にカウントされます。クリーンなレンダリングと高い制限については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もご覧ください。