Skip to content


The Marktstammdatenregister (MaStR) is a German register provided by the German Federal Network Agency (Bundesnetzagentur / BNetza) that keeps track of all power and gas units located in Germany.

Generally, the MaStR data can be accessed via various options:

  1. browse, filter and download online
  2. download daily provided dumps
  3. access via the web service

The python package open-mastr provides an interface for accessing the data and contributes to improving the usability of the access options above. This repository is intended for people who wish to simply work with the MaStR data and do not want to deal with the individual obstacles to data access of the three options above.

It facilitates access to the daily provided MaStR dumps with download methods (bulk) and by parsing the XML files to a relational database. Furthermore, the software provides a Python wrapper to access MaStR SOAP web service (API).

Moreover, this repository aims to develop methods to analyze, validate and enrich the data.
We want to collect and compile post-processing scripts to improve the data quality.

Just here for the data?

✨ We regularly run the whole download and cleansing pipeline and upload the dataset as csv files at zenodo!


The original dataset is licensed under the Datenlizenz Deutschland – Namensnennung – Version 2.0 (DL-DE-BY-2.0) Marktstammdatenregister - © Bundesnetzagentur für Elektrizität, Gas, Telekommunikation, Post und Eisenbahnen | DL-DE-BY-2.0