MCP Server
zplflow provides an official Model Context Protocol (MCP) server, allowing AI agents (such as Claude, Cursor, Goose, and custom autonomous agents) to interact with your label infrastructure directly in natural language.
MCP Endpoint: https://mcp.zplflow.io/v1/mcp/
Protocol Transport: Streamable HTTP (MCP specification, stateless mode)
Overview
The zplflow MCP server is a dedicated microservice that gives AI agents the ability to:
- Check token balances and reserved allowances.
- Inspect and query conversion jobs.
- Convert PDF to ZPL, ZPL to PDF, EPL2, Datamax DPL, Intermec IPL, TSPL, and SATO SBPL.
- Estimate token costs prior to running conversions.
- Inspect, create, and apply programmable ZPL pipelines.
The transport uses modern Streamable HTTP rather than legacy SSE, offering native compatibility with standard MCP clients, sub-15ms overhead, and full multi-tenant isolation.
Authentication
Every request to the MCP server must include your zplflow API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
All MCP tools enforce the exact same per-key scopes as the REST API. See Authentication & Scopes for details.
Available Tools (30)
| Tool | Required Scope | Tenant Feature | Description |
|---|---|---|---|
getAccountBalance |
account:read |
— | Returns available token balance and reserved tokens in flight. |
estimateCost |
convert:estimate |
— | Computes exact token cost for conversions prior to execution. |
listJobs |
jobs:read |
async_engine |
Returns recent conversion jobs for your tenant. Accepts limit. |
getJob |
jobs:read |
async_engine |
Returns full status and presigned URLs for a specific job_id. |
cancelJob |
jobs:write |
async_engine |
Cancels a queued job and returns reserved tokens. |
getStorageUploadURL |
jobs:create |
async_engine |
Generates a presigned S3 URL to upload files for async conversion. |
submitConversion |
jobs:create |
async_engine |
Initiates an asynchronous conversion job and reserves tokens. |
startJob |
jobs:write |
async_engine |
Starts processing on an uploaded conversion job. |
convertPDFToZPL |
convert:pdf_to_zpl |
— | Synchronous PDF to ZPL conversion (inline base64 or download URL). |
convertZPLToPDF |
convert:zpl_to_pdf |
— | Synchronous ZPL to PDF conversion (inline base64 or download URL). |
convertEPLToZPL |
convert:epl_to_zpl |
— | Synchronous EPL2 to ZPL II conversion (inline base64 or download URL). |
convertEPLToPDF |
convert:epl_to_pdf |
— | Synchronous EPL2 to PDF conversion (inline base64 or download URL). |
convertZPLToEPL |
convert:zpl_to_epl |
— | Synchronous ZPL II to EPL2 conversion via 203 DPI GW rasterization. |
convertDPLToZPL |
convert:dpl_to_zpl |
— | Synchronous Datamax DPL to ZPL II conversion (inline base64 or download URL). |
convertDPLToPDF |
convert:dpl_to_pdf |
— | Synchronous Datamax DPL to PDF conversion (inline base64 or download URL). |
convertZPLToDPL |
convert:zpl_to_dpl |
— | Synchronous ZPL II to Datamax DPL conversion via 203 DPI monochrome rasterization. |
convertIPLToZPL |
convert:ipl_to_zpl |
— | Synchronous Intermec IPL to ZPL II conversion (inline base64 or download URL). |
convertIPLToPDF |
convert:ipl_to_pdf |
— | Synchronous Intermec IPL to PDF conversion (inline base64 or download URL). |
convertZPLToIPL |
convert:zpl_to_ipl |
— | Synchronous ZPL II to Intermec IPL conversion via 203 DPI rasterization. |
convertTSPLToZPL |
convert:tspl_to_zpl |
— | Synchronous TSPL / TSPL2 → ZPL II transpilation (1 token). |
convertTSPLToPDF |
convert:tspl_to_pdf |
— | Synchronous TSPL / TSPL2 → PDF rendering (1 token). |
convertZPLToTSPL |
convert:zpl_to_tspl |
— | Synchronous ZPL II → TSPL raster conversion (4 tokens). |
convertSBPLToZPL |
convert:sbpl_to_zpl |
— | Synchronous SATO SBPL → ZPL conversion (1 token). |
convertSBPLToPDF |
convert:sbpl_to_pdf |
— | Synchronous SATO SBPL → PDF conversion (1 token). |
convertZPLToSBPL |
convert:zpl_to_sbpl |
— | Synchronous ZPL → SATO SBPL raster conversion (4 tokens). |
listPipelines |
pipelines:read |
pipelines |
Lists all pre-configured and custom ZPL transformation pipelines. |
getPipeline |
pipelines:read |
pipelines |
Retrieves the step configuration for a specific pipeline_id. |
createPipeline |
pipelines:write |
pipelines |
Creates a new reusable ZPL transformation pipeline template. |
deletePipeline |
pipelines:write |
pipelines |
Permanently deletes a ZPL transformation pipeline template. |
applyPipeline |
pipelines:apply |
pipelines |
Applies a ZPL transformation pipeline to 1-5 documents synchronously. |
previewPipeline |
pipelines:apply |
pipelines |
Previews raw ZPL or a pipeline (inline steps or saved pipeline_id) as a PNG image with zero token cost. |
Quick Start & Verification
You can verify your connection to the MCP server with a standard JSON-RPC 2.0 POST request over Streamable HTTP:
curl -X POST "https://mcp.zplflow.io/v1/mcp/" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}'
A successful response returns the full JSON-RPC catalog of registered tools.
Client Setup
Claude Desktop
Add the zplflow MCP server to your claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"zplflow": {
"type": "remote",
"url": "https://mcp.zplflow.io/v1/mcp/",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
Restart Claude Desktop. The hammer icon will show the 30 zplflow tools ready for conversational queries.
Cursor / Autonomous Agents
For Cursor or other agents supporting remote MCP endpoints:
- Select Remote MCP Server.
- Set the Server URL to
https://mcp.zplflow.io/v1/mcp/. - Add the header
Authorization: Bearer YOUR_API_KEY. - Protocol: Streamable HTTP.
Example Agent Interactions
Once connected, your AI agent can perform operational tasks via natural language:
- “How many tokens do I have left on our zplflow account?”
$\rightarrow$ callsgetAccountBalance - “Convert this SATO SBPL shipping label directly into ZPL for our Zebra printer.”
$\rightarrow$ callsconvertSBPLToZPL - “Render this SATO SBPL barcode label to a high-resolution PDF.”
$\rightarrow$ callsconvertSBPLToPDF - “Convert this ZPL II label into SATO SBPL format for our SATO CL4NX printer.”
$\rightarrow$ callsconvertZPLToSBPL - “Convert this TSPL shipping label directly into ZPL for our Zebra printer.”
$\rightarrow$ callsconvertTSPLToZPL - “Render this TSPL barcode label to a high-resolution PDF.”
$\rightarrow$ callsconvertTSPLToPDF - “Convert this ZPL II label into TSPL format for our TSC warehouse printer.”
$\rightarrow$ callsconvertZPLToTSPL - “Estimate the cost to convert 5,000 PDF shipping labels to ZPL at 203 DPI.”
$\rightarrow$ callsestimateCost - “Convert this EPL2 label stream to ZPL so our Zebra ZT410 can print it.”
$\rightarrow$ callsconvertEPLToZPL - “Render this legacy EPL shipping label as a PDF preview for customer support.”
$\rightarrow$ callsconvertEPLToPDF - “Convert this ZPL template into EPL2 commands for an Eltron LP2844 printer.”
$\rightarrow$ callsconvertZPLToEPL - “Convert this Datamax DPL label stream to ZPL so our Zebra ZT410 can print it.”
$\rightarrow$ callsconvertDPLToZPL - “Render this legacy DPL shipping label as a PDF preview for customer support.”
$\rightarrow$ callsconvertDPLToPDF - “Convert this ZPL template into DPL commands for a Datamax I-Class printer.”
$\rightarrow$ callsconvertZPLToDPL - “Convert this Intermec IPL label stream to ZPL so our Zebra printer can print it.”
$\rightarrow$ callsconvertIPLToZPL - “Render this legacy IPL shipping label as a PDF preview for customer support.”
$\rightarrow$ callsconvertIPLToPDF - “Convert this ZPL template into IPL commands for an Intermec EasyCoder printer.”
$\rightarrow$ callsconvertZPLToIPL - “Show me the last 5 jobs and check if any failed.”
$\rightarrow$ callslistJobs - “What steps are included in our ‘gs1-compliance’ pipeline?”
$\rightarrow$ callsgetPipeline