Skip to main content

zerez-mcp

CI Release PyPI Python versions License: MIT OpenSSF Scorecard Renovate uv Ruff Checked with mypy

A typed Python client and command line tool for ZEREZ, the German central register of unit and component certificates (Zentrales Register für Einheiten- und Komponentenzertifikate, https://www.zerez.net/units-and-certificates). Look up a unit by its ZEREZ ID and get its certificate, grid codes and technical data (power, currents, short-circuit and flicker values), or search the register by manufacturer, model, category, energy source or power.

The same calls are available as an MCP server for assistants such as Claude (stdio, see below).

  • Search units like the table on zerez.net (search_units), with text, category, energy source, norm, status and power filters, or a raw GraphQL filter.
  • Unit details by ZEREZ ID or UUID (get_unit): overview plus all publicly visible technical fields, discovered by schema introspection.
  • Certificates by certificate code, unit ZEREZ ID, certificate number or UUID (get_certificates), with norms, software versions, documents, linked units and the revision chain (get_certificate_chain).
  • Download certificate documents (PDF) with unique file names (download_certificate_files).
  • Explore the backend: raw GraphQL queries and type introspection.

This project is not affiliated with the operator of ZEREZ. It uses the same public, anonymous API as the zerez.net website. Please query it considerately.

Installation

uv tool install zerez-client      # the `zerez` command
uvx --from zerez-client zerez …   # or run it without installing
uv add zerez-client               # as a library in a uv project

The PyPI package is zerez-client, the Python module zerez, the command zerez.

Command line

The CLI output is German, like the labels on zerez.net.

zerez search Multiplus 5000                            # keywords, all must match
zerez search -m SMA --category INVERTER --norm 4105 --take 50
zerez search --energy PV_WITH_STORAGE --min-power 3 --max-power 10
zerez unit ZE-KAXY-Z16S-0001                           # overview and technical data
zerez unit ZE-KAXY-Z16S-0001 --all --json
zerez cert ZE-KAXY-Z16S --chain                        # certificate with revision chain
zerez download ZE-KAXY-Z16S -o ./pdf                   # certificate documents (PDF)
zerez norms
zerez schema UnitOverviewFilterInput                   # explore the schema
zerez query '{ unitOverview(take: 1) { totalCount } }' # raw GraphQL

--json works with every command.

Library

from zerez import ZerezClient

with ZerezClient() as z:
    page = z.search_units(manufacturer="Deye", take=10)
    unit = z.get_unit("ZE-KAXY-Z16S-0001")      # {"overview": ..., "technical": ...}
    certs = z.get_certificates("ZE-KAXY-Z16S")

MCP server

The package contains an MCP server, so that assistants such as Claude can query the register. It runs over stdio and needs the optional dependency mcp:

uv tool install 'zerez-client[mcp]'
zerez mcp                     # or: zerez-mcp

Claude Code:

claude mcp add zerez -- uvx --from 'zerez-client[mcp]' zerez-mcp

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "zerez": {
      "command": "uvx",
      "args": ["--from", "zerez-client[mcp]", "zerez-mcp"]
    }
  }
}

All tools are read-only:

Tool Purpose
search_units search units by keywords (AND), manufacturer, model, category, energy source, grid code, status, power
get_unit overview and technical data of a unit by ZEREZ ID or UUID
get_certificates certificates with grid codes, software versions, documents and linked units
get_certificate_chain revision and extension chain of a certificate
get_document_links signed, short-lived download links of the certificate PDFs
list_norms grid codes known to the register

Raw GraphQL and schema introspection are not exposed as tools. An HTTP transport is planned.

The ZEREZ backend

zerez.net is a single-page app on top of a HotChocolate GraphQL gateway:

POST https://app-zerez-weeu-gatewaysvc-prod-01.azurewebsites.net/graphql/
Content-Type: application/json
  • Read queries work without authentication, and introspection is enabled.
  • The overview table uses unitOverview(skip, take, where, order) (type UnitOverview).
  • unit(id: UUID!) returns the technical data of a unit (type Unit, about 90 fields).
  • certificates(where, ...) returns certificates with norms, software versions, documents and units. Selecting certificateBridgeUnits { unit } fails unless unitId is selected as well.
  • certificateFileStorageLocation is a signed, short-lived path api/PublicDownload/... relative to the gateway that returns the PDF.
  • Matrix and inertia parameters are released per role and are null for anonymous clients.
  • Missing dates come back as 1900-01-01...; the client turns them into None.
  • Power values are in kW.

ZEREZ ID

Format Meaning
ZE-XXXX-XXXX-0001 unit (unitCode)
ZE-XXXX-XXXX certificate (certificateCode); its units append -0001, -0002, ...

The first group of four is the code of the certificate holder (tenantCode).

Development

zerez-mcp uses uv, Ruff, mypy (strict) and pytest.

uv sync
uv run pytest                       # unit tests against a mocked backend
uv run pytest -m live               # against the real ZEREZ backend
uv run pre-commit install           # once, sets up the Git hook
uv run pre-commit run --all-files

See CONTRIBUTING.md for commit conventions.

Releases

Releases are cut by hand: publishing a GitHub Release with a tag vX.Y.Z runs pypi.yml, which sets the version from the tag, runs CI, builds and uploads to PyPI with Trusted Publishing (environment pypi, no API token). See CHANGELOG.md.

License

zerez-mcp is licensed under the MIT License.

Metadata

Release files for zerez-client 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zerez-client 0.1.0
File Size Uploaded Provenance Actions
zerez_client-0.1.0.tar.gz 20.1 kB With provenance Details for zerez_client-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zerez-client 0.1.0
File Interpreter ABI Platform Actions
zerez_client-0.1.0-py3-none-any.whl Python 3 none any Details for zerez_client-0.1.0-py3-none-any.whl

Total release size: 39.9 kB

Release files / zerez_client-0.1.0.tar.gz

Download URL zerez_client-0.1.0.tar.gz
Size 20.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5cf1bcb09ea5bb8a0b78774fca45fa6b7e5e78790360ca97cb3f9235f3db9a88
BLAKE2b-256 checksum
How to use checksums
592aac53ef9c11a31d9d92211f7fad42b8ad72083c46d7faffe1b07eb21a4442
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Release files / zerez_client-0.1.0-py3-none-any.whl

Download URL zerez_client-0.1.0-py3-none-any.whl
Size 19.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d8a06caa6398af3514fdb0a8019ca1df0cbafe0a58945d9598f1f8db4ba66b2
BLAKE2b-256 checksum
How to use checksums
4e68c02c150d1ba7a3a4a2507045392d5663a46d7e01d7a00a74afb70e092ba3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

Security for zerez-client 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for zerez_client-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page