LabelProof ZPL Linter

v0.1.0
io.github.wenboteng/labelproof Checked 59 minutes ago Published 2 days ago

Lint ZPL barcode labels with LabelProof.

Stdio MCP server for LabelProof, a ZPL validator / ZPL linter for Zebra barcode labels. It finds problems that survive every viewer and still fail at the scanner: GS1-128 bar width, Code 128 subset C dropping a digit, quiet-zone and edge issues, and fields that print off the printhead. This package is an HTTP client, not a second engine. It calls the public LabelProof API so a label is always checked against the current catalogue. A key is optional. Without one you are on the free tier: the same 43 shipping rules, 60 lints and 12 renders per IP per minute, and no monthly render quota.

Summary extracted from the README.

labelproof-mcp

npm License: MIT labelproof.dev

Stdio MCP server for LabelProof, a ZPL validator / ZPL linter for Zebra barcode labels. It finds problems that survive every viewer and still fail at the scanner: GS1-128 bar width, Code 128 subset C dropping a digit, quiet-zone and edge issues, and fields that print off the printhead.

This package is an HTTP client, not a second engine. It calls the public LabelProof API so a label is always checked against the current catalogue.

Package version 0.1.0. Tools:

  • lint_zpl posts one label to POST https://labelproof.dev/api/lint. You must provide dpi (203, 300 or 600) and profile (gs1_logistic, gs1_other or non_gs1), and exactly one of zpl or file_path. render defaults to true; set it false for the source-only pass (no render quota). The preview PNG is omitted unless include_preview is true.
  • list_rules calls GET https://labelproof.dev/api/rules.
  • get_rule calls GET https://labelproof.dev/api/rules/{id}.

API key

A key is optional. Without one you are on the free tier: the same 43 shipping rules, 60 lints and 12 renders per IP per minute, and no monthly render quota. Set LABELPROOF_API_KEY when you want a private bucket (shared CI runners, or heavier use). An invalid key produces a clear error telling you to check that variable. LABELPROOF_ENDPOINT can point at a self-hosted instance.

The service does not store labels sent to /api/lint. See privacy.

This is not an ISO/IEC 15416 print-quality grade. No amount of ZPL source produces one.

Install with npx -y labelproof-mcp. Registry name in server.json: io.github.wenboteng/labelproof. The Glama maintainer file glama.json lives at the repository root. The pinned MCP image is mcp/Dockerfile in this folder. The repository-root Dockerfile is the GitHub Action image for the CLI, and must not be replaced.

Claude Desktop

claude_desktop_config.json:

{
  "mcpServers": {
    "labelproof": {
      "command": "npx",
      "args": ["-y", "labelproof-mcp"]
    }
  }
}

Optional key:

{
  "mcpServers": {
    "labelproof": {
      "command": "npx",
      "args": ["-y", "labelproof-mcp"],
      "env": {
        "LABELPROOF_API_KEY": "lp_your_key"
      }
    }
  }
}

Cursor

~/.cursor/mcp.json or .cursor/mcp.json:

{
  "mcpServers": {
    "labelproof": {
      "command": "npx",
      "args": ["-y", "labelproof-mcp"]
    }
  }
}

VS Code

.vscode/mcp.json:

{
  "servers": {
    "labelproof": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "labelproof-mcp"]
    }
  }
}

From a checkout of labelproof-cli, before the npm publish: cd mcp && npm install && npm run build, then node dist/index.js.

Docs: https://labelproof.dev/docs · Rules: https://labelproof.dev/rules · CLI: npx labelproof

MIT. Copyright (c) 2026 Wenbo Teng.