zerez-mcp
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)(typeUnitOverview). unit(id: UUID!)returns the technical data of a unit (typeUnit, about 90 fields).certificates(where, ...)returns certificates with norms, software versions, documents and units. SelectingcertificateBridgeUnits { unit }fails unlessunitIdis selected as well.certificateFileStorageLocationis a signed, short-lived pathapi/PublicDownload/...relative to the gateway that returns the PDF.- Matrix and inertia parameters are released per role and are
nullfor anonymous clients. - Missing dates come back as
1900-01-01...; the client turns them intoNone. - 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
Every commit on main is released: the version is calculated from the Conventional Commit
message (feat: bumps the minor version, ! the major version, everything else the patch
version), the commit must pass CI, then it is uploaded to PyPI with Trusted Publishing and
published as a GitHub Release with generated
notes. See pypi.yml and CHANGELOG.md.
License
zerez-mcp is licensed under the MIT License.
Metadata
Release files for zerez-client 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zerez_client-0.1.1.tar.gz | 20.2 kB | With provenance | Details for zerez_client-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zerez_client-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for zerez_client-0.1.1-py3-none-any.whl |
Total release size: 40.1 kB
Release files / zerez_client-0.1.1.tar.gz
| Download URL | zerez_client-0.1.1.tar.gz |
|---|---|
| Size | 20.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b820fbe2f0bb43c9f4f11622520b2365b361162c08ec9c09bb9b1ad64c83d3d
|
|
BLAKE2b-256 checksum How to use checksums |
c33454d62317f869c5265aa7d44787bbf4219321c010d1c2a44f4ba822efe0a0
|
| 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 logRelease files / zerez_client-0.1.1-py3-none-any.whl
| Download URL | zerez_client-0.1.1-py3-none-any.whl |
|---|---|
| Size | 19.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ddaa0bacc9ac1adf16356821ceaa4dae1ff511fca27d2c9c338b446c975613f
|
|
BLAKE2b-256 checksum How to use checksums |
e100cbcd0394736e96a9f163c7e3b5a6974a654e630ff899eb224af08e3cb93d
|
| 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 logSecurity for zerez-client 0.1.1
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.
Attestation for zerez_client-0.1.1.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 logA 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.