MCP server for the German Marktstammdatenregister (MaStR) energy market register
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
An MCP server for the Marktstammdatenregister (MaStR) β the German energy market master data register operated by the Bundesnetzagentur (Federal Network Agency). Enables Claude Desktop, Cowork, and Claude Code to directly access the German energy plant registry.
Deutsche Version / German version
| Tool | API | Auth | Description |
|---|---|---|---|
get_unit | SOAP | Yes | Full unit details + EEG + CHP + permit + storage in one call |
search_power_generation_soap | SOAP | Yes | Filtered search for power generation (all 20 energy carriers, postcode, capacity) |
get_actor | SOAP | Yes | Market actor details by MaStR number |
get_api_quota | SOAP | Yes | Daily API quota (used / limit) |
get_recent_changes | SOAP | Yes | Delta sync: changes since date (EEG, CHP, permit, location, storage) |
search_power_consumption_soap | SOAP | Yes | Filtered search for power consumers (postcode, state, status, etc.) |
search_gas_production_soap | SOAP | Yes | Filtered search for gas production (capacity, postcode, etc.) |
search_gas_consumption_soap | SOAP | Yes | Filtered search for gas consumers (capacity, postcode, etc.) |
search_actors_soap | SOAP | Yes | Filtered search for market actors (function, role, postcode, etc.) |
get_location | SOAP | Yes | Location details incl. linked units + grid connection points |
get_catalog_values | SOAP | Yes | Catalog/enum values (legal form, manufacturer, etc.) by category ID |
get_catalog_categories | SOAP | Yes | List all available catalog categories |
get_balancing_areas | SOAP | Yes | Balancing areas (Y-EIC codes, control areas), optionally by DSO |
get_grid_connection | SOAP | Yes | Grid connection points for a unit (voltage level, location, co-located units) |
search_power_generation_public | JSON | No | Power generation units (27 filter keys) |
search_actors_public | JSON | No | Market actors (23 filter keys) |
search_power_consumption_public | JSON | No | Power consumption units (29 filter keys) |
search_gas_production_public | JSON | No | Gas production / gas storage (30 filter keys) |
search_gas_consumption_public | JSON | No | Gas consumption units (30 filter keys) |
search_grid_connections_public | JSON | No | Grid connection points & locations (4 types, 12-20 filter keys) |
get_local_time | SOAP | No | Connection test (always available) |
| Suffix | Operator | Description |
|---|---|---|
(none) / = | eq | Equal (default) |
!= | neq | Not equal |
% | ct | Contains |
!% | nct | Does not contain |
: | sw | Starts with |
$ | ew | Ends with |
> | gt | Greater than |
< | lt | Less than |
? | null | Is NULL |
! / !? | nn | Is NOT NULL |
All technology keywords are available in English (German aliases also work):
wind, solar, biomass, hydro, storage, geo, mine_gas, sewage_sludge,
solar_thermal, pressure_relief_gas/pressure_relief_water, natural_gas, hard_coal, lignite,
mineral_oil, other_gases, waste, heat, hydrogen, nuclear.
Without credentials, 7 public tools are available (search power generation, power consumption, gas production, gas consumption, market actors, grid connections + connection test). With credentials (.env), 14 additional SOAP tools are registered (detail queries, filtered searches, catalogs, balancing areas, etc.).
uv (recommended) or pipWith uv (recommended):
With pip:
.envThe server automatically loads credentials from a .env file in the project directory (via python-dotenv). This is the recommended approach.
.env is excluded via .gitignore β your token will not end up in the repo.
Alternative: You can also set the variables as OS environment variables or in the env block of the Claude Desktop config β OS values take precedence.
Open the Claude Desktop configuration file:
%APPDATA%\Claude\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.jsonIf .env is in the project directory, you can omit the env block:
Important: Adjust the path under --directory to the actual location on your system.
get_unitsearch_power_generation_public({'tech': 'solar', 'postcode': '49074'})search_power_generation_public({'tech': 'wind', 'capacity>': 1200, 'capacity<': 3500, 'postcode:': '23'})search_power_generation_public({'tech': 'wind', 'eeg_key?': ''})search_power_generation_public({'tech!=': '2497', 'postcode': '49074'})search_gas_production_public({'gas_technology': 'Power-to-Gas (Wasserstoff)'})search_power_consumption_public({'bundesland': 'Bayern', 'voltage_level': 'Hochspannung'})search_gas_consumption_public({'gas_quality': 'H-Gas', 'gas_for_power': True})search_actors_public({'function': 'Stromnetzbetreiber', 'dso_large': True, 'bundesland': 'Niedersachsen'})search_grid_connections_public('power_generation', {'postcode': '49074', 'voltage_level': 'Mittelspannung'})search_grid_connections_public('gas_production', {'gas_quality': 'H-Gas'}).env, never in the repo.MIT
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mastr-mcp-server)<a href="https://allmcps.com/mcp/mastr-mcp-server"><img src="https://allmcps.com/api/badge/mastr-mcp-server?style=directory" alt="MaStR MCP Server on AllMCPs" /></a>