Back to Browse

Labelproof Cli MCP Server

Developer ToolsModerate6.1MCP RegistryLocal
Free

Server data from the Official MCP Registry

Lint ZPL barcode labels with LabelProof. Finds GS1-128 issues and barcodes that will not scan.

About

Lint ZPL barcode labels with LabelProof. Finds GS1-128 issues and barcodes that will not scan.

Security Report

6.1
Moderate6.1Moderate Risk

The labelproof-cli repository is a ZPL label linter that acts as an HTTP client to labelproof.dev, with no hardcoded secrets, shell execution, or dynamic code evaluation observed in the provided code. Its network access and file reads are proportionate to its purpose, and the API key is read from an environment variable and sent only in the X-API-Key header to the documented service. Minor observations include the optional file_path parameter in the MCP tool allowing reads of arbitrary local files, an unpinned-to-version-check dependency on a `labelproof` package name shared across ecosystems, and the stdio smoke script being truncated so its remainder could not be reviewed. Supply chain analysis found 4 known vulnerabilities in dependencies (0 critical, 1 high severity). Package verification found 1 issue.

12 files analyzed · 9 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

What You'll Need

Set these up before or after installing:

Optional LabelProof API key (X-API-Key). Without one the free tier is used.Required

Environment variable: LABELPROOF_API_KEY

Optional service base URL. Defaults to https://labelproof.dev.Optional

Environment variable: LABELPROOF_ENDPOINT

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "labelproof-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "labelproof-mcp@0.1.0"
      ],
      "env": {
        "LABELPROOF_API_KEY": "your-labelproof-api-key-here",
        "LABELPROOF_ENDPOINT": "your-labelproof-endpoint-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

labelproof-cli

npm License: MIT labelproof.dev

Check ZPL label templates from a shell or from CI, before they reach a Zebra printer. This is a ZPL validator / ZPL linter: it finds GS1-128 and Code 128 issues, barcodes that will not scan, and fields that print off the edge — problems that survive every viewer and still fail at the loading dock.

npx labelproof labels/ --dpi 203 --profile gs1_logistic
!!  labels/shipping.zpl
      [will fail] FLD-C128C-ODD-001  ^BC at offset 23
        Subset C encodes digits in pairs. This payload has an odd number of digits,
        so the last one is dropped.
        fix: Pad to an even digit count, or switch to Subset B (>:).
1 finding(s) at or above 'error' across 1 file(s).

The Node CLI is published as labelproof on npm. A Python CLI is in python/ (package name labelproof on PyPI). The .NET binary in this repository is what the GitHub Action and the Docker image run.

It is a client, not a second engine

This talks to labelproof.dev over HTTP. It does not carry its own copy of the rules, and that is deliberate: a CLI with a vendored catalogue quietly checks a stale one, so a template that passed on Tuesday keeps passing after the rule that would have caught it shipped. Talking to the service means today's template is checked against today's rules.

It also means you can read exactly what leaves your machine — which is the point of publishing this rather than only shipping a binary.

Exit codes

0clean
1findings at or above --fail-on
2the check could not be completed — unreadable file, or the service was unreachable
3bad usage

Never treat 2 as a pass. A CI job that lets an unreachable linter through is worse than no linter, because it reports success for a check that did not happen. The text output says so too, rather than printing a reassuring summary underneath a failed run.

--dpi and --profile are required

Neither has a default and neither is guessed. Every dot-to-millimetre conversion depends on the printhead, and there is no universal minimum barcode size — GS1 has citable numbers, general labels do not. Guessing either produces confident, wrong answers, so the tool asks instead.

Options

--api-key <key>   Or set LABELPROOF_API_KEY. Without one you are on the free tier.
--fail-on <level> error (default), warning, or info.
--format <fmt>    text (default) or json.
--no-render       Skip the geometry rules. Faster, and costs no render quota.
--endpoint <url>  Defaults to https://labelproof.dev.

GitHub Action

Use this public repository. (A wenboteng/labelproof Action URL would not resolve for most users.)

- uses: wenboteng/labelproof-cli@main
  with:
    paths: labels/
    dpi: '203'
    profile: gs1_logistic
    api-key: ${{ secrets.LABELPROOF_API_KEY }}

dpi and profile are required inputs with no defaults, for the same reason as above. On a shared GitHub-hosted runner, set an API key so you are not rate-limited by someone else's jobs on the same IP.

MCP server

An MCP server for Cursor, Claude Desktop and VS Code lives in mcp/ and is published as labelproof-mcp. Tools: lint_zpl, list_rules, get_rule. Install with npx -y labelproof-mcp. glama.json is at the repository root. The Glama MCP image is mcp/Dockerfile (the root Dockerfile is the GitHub Action image).

Build the .NET CLI yourself

dotnet publish src/Labelproof.Cli -c Release -o out
./out/labelproof --help

The rule catalogue is published under Apache-2.0 at labelproof-rules. Each rule has a page at https://labelproof.dev/rules.

Labels are checked in memory and not stored. This is not an ISO/IEC 15416 print-quality grade.

MIT licensed. Part of Labelproof.

Reviews

No reviews yet

Be the first to review this server!