原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

MaStR MCP Server

作者:UliRCS版本 1.0.1i★ –i在你的电脑上运行
注册名称io.github.UliRCS/mastr-mcp-server

安装

概览

作者提供的说明(英文原文)

MCP server for the German Marktstammdatenregister (MaStR) energy market register

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他
  • 你需要填写:MASTR_TOKEN

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: MASTR_USER, MASTR_TOKEN

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "mastr": {
      "command": "uvx",
      "args": [
        "mastr-mcp-server"
      ],
      "env": {
        "MASTR_USER": "your-value",
        "MASTR_TOKEN": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add mastr --env MASTR_USER=your-value --env MASTR_TOKEN=your-value -- uvx mastr-mcp-server

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "mastr": {
      "command": "uvx",
      "args": [
        "mastr-mcp-server"
      ],
      "env": {
        "MASTR_USER": "your-value",
        "MASTR_TOKEN": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "mastr": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mastr-mcp-server"
      ],
      "env": {
        "MASTR_USER": "your-value",
        "MASTR_TOKEN": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • MASTR_USER env
    MaStR Marktakteur number (SOM/SEM...) for SOAP API access. Without credentials, only 7 public tools are available.
  • MASTR_TOKEN 机密 env
    MaStR web service token (~540 chars) for SOAP API access. Enables 14 additional SOAP tools.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 UliRCS 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 18345 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 18345 个服务器的 6% 更新
  • 基础检查结果等于或优于此分类中其他 18345 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

MaStR MCP Server 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:MASTR_TOKEN

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.0.1)于7个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, ScienceShot science reference

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

ScienceShot science reference

作者:scienceshot.com

Sourced, citable answers in radiation and particle physics, photonics, electronics and quantum.

在云端运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

MaStR MCP Server

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

Features

21 Tools — 14 SOAP (with credentials), 7 Public (always available)
ToolAPIAuthDescription
get_unitSOAPYesFull unit details + EEG + CHP + permit + storage in one call
search_power_generation_soapSOAPYesFiltered search for power generation (all 20 energy carriers, postcode, capacity)
get_actorSOAPYesMarket actor details by MaStR number
get_api_quotaSOAPYesDaily API quota (used / limit)
get_recent_changesSOAPYesDelta sync: changes since date (EEG, CHP, permit, location, storage)
search_power_consumption_soapSOAPYesFiltered search for power consumers (postcode, state, status, etc.)
search_gas_production_soapSOAPYesFiltered search for gas production (capacity, postcode, etc.)
search_gas_consumption_soapSOAPYesFiltered search for gas consumers (capacity, postcode, etc.)
search_actors_soapSOAPYesFiltered search for market actors (function, role, postcode, etc.)
get_locationSOAPYesLocation details incl. linked units + grid connection points
get_catalog_valuesSOAPYesCatalog/enum values (legal form, manufacturer, etc.) by category ID
get_catalog_categoriesSOAPYesList all available catalog categories
get_balancing_areasSOAPYesBalancing areas (Y-EIC codes, control areas), optionally by DSO
get_grid_connectionSOAPYesGrid connection points for a unit (voltage level, location, co-located units)
search_power_generation_publicJSONNoPower generation units (27 filter keys)
search_actors_publicJSONNoMarket actors (23 filter keys)
search_power_consumption_publicJSONNoPower consumption units (29 filter keys)
search_gas_production_publicJSONNoGas production / gas storage (30 filter keys)
search_gas_consumption_publicJSONNoGas consumption units (30 filter keys)
search_grid_connections_publicJSONNoGrid connection points & locations (4 types, 12-20 filter keys)
get_local_timeSOAPNoConnection test (always available)
10 Filter Operators
SuffixOperatorDescription
*(none)* / =eqEqual (default)
!=neqNot equal
%ctContains
!%nctDoes not contain
:swStarts with
$ewEnds with
>gtGreater than
<ltLess than
?nullIs NULL
! / !?nnIs NOT NULL
20 Energy Carriers

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.).

Installation

Prerequisites
  • Python >= 3.10
  • uv (recommended) or pip
  • MaStR web service account (for SOAP API tools, optional): https://www.marktstammdatenregister.de
Step 1: Clone / copy project
git clone https://github.com/UliRCS/mastr-mcp-server.git

cd mastr-mcp-server

Step 2: Install dependencies

With uv (recommended):

uv sync

With pip:

pip install -e .
Step 3: Store credentials in .env

The server automatically loads credentials from a .env file in the project directory (via python-dotenv). This is the recommended approach.

cp .env.example .env

Edit .env and fill in your values:

MASTR_USER=SEM123456789012

MASTR_TOKEN=your-webservice-token-540-chars

.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.

Step 4: Test
# Quick test

uv run mastr_mcp_server.py

Or with the MCP Inspector

npx @modelcontextprotocol/inspector uv run mastr_mcp_server.py

Configuration for Claude Desktop / Cowork

Open the Claude Desktop configuration file:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

If .env is in the project directory, you can omit the env block:

{

"mcpServers": { "mastr": { "command": "uv", "args": [ "run", "--directory", "/path/to/mastr-mcp-server", "mastr_mcp_server.py" ] } } }

Important: Adjust the path under --directory to the actual location on your system.

Configuration for Claude Code

claude mcp add mastr \

--command "uv" \ --args "run" "--directory" "/path/to/mastr-mcp-server" "mastr_mcp_server.py" \ --env "MASTR_USER=SOM123456789012" \ --env "MASTR_TOKEN=your-webservice-token"

Usage Examples

  • *"Show me the details of wind turbine SEE966095906064"* -> get_unit
  • *"Find all solar plants in postcode 49074"* -> search_power_generation_public({'tech': 'solar', 'postcode': '49074'})
  • *"Wind turbines between 1200 and 3500 kW in postcode area 23..."* -> search_power_generation_public({'tech': 'wind', 'capacity>': 1200, 'capacity<': 3500, 'postcode:': '23'})
  • *"Wind turbines WITHOUT EEG key"* -> search_power_generation_public({'tech': 'wind', 'eeg_key?': ''})
  • *"All non-wind units in postcode 49074"* -> search_power_generation_public({'tech!=': '2497', 'postcode': '49074'})
  • *"Power-to-Gas hydrogen plants"* -> search_gas_production_public({'gas_technology': 'Power-to-Gas (Wasserstoff)'})
  • *"High-voltage consumers in Bavaria"* -> search_power_consumption_public({'bundesland': 'Bayern', 'voltage_level': 'Hochspannung'})
  • *"Gas consumers with H-Gas that generate electricity"* -> search_gas_consumption_public({'gas_quality': 'H-Gas', 'gas_for_power': True})
  • *"DSOs with more than 100,000 connected customers in Lower Saxony"* -> search_actors_public({'function': 'Stromnetzbetreiber', 'dso_large': True, 'bundesland': 'Niedersachsen'})
  • *"Grid connection points for power generation in postcode 49074 at medium voltage"* -> search_grid_connections_public('power_generation', {'postcode': '49074', 'voltage_level': 'Mittelspannung'})
  • *"Gas feed-in points with H-Gas"* -> search_grid_connections_public('gas_production', {'gas_quality': 'H-Gas'})

Project Structure

mastr-mcp-server/

├── mastr_mcp_server.py # Entry point (imports package, starts server) ├── mastr_mcp/ # Main package │ ├── init.py # Package init, conditional tool registration │ ├── config.py # Constants, env vars, technology mappings │ ├── serialization.py # SOAP->JSON, MS-AJAX date conversion │ ├── client.py # SOAP client, HTTP fetch, retry helper │ ├── filters.py # Filter builder, column mappings, dropdown loading │ ├── server.py # FastMCP instance with instructions │ ├── tools_soap.py # SOAP tools (14) │ ├── tools_public.py # Public JSON tools (7) │ └── resources.py # MCP Resources (4) ├── *_dropdowns.json # Dropdown ID mappings (5 files, from live API) ├── pyproject.toml # Dependencies and metadata ├── .env # Credentials (not in git) └── .env.example # Credential template

Security Notes

  • The MaStR token is confidential — it belongs in .env, never in the repo.
  • The server only performs read operations (no registrations or modifications)
  • Daily limit: 100,000 SOAP API calls per user (public JSON is unlimited)
  • Only TLS 1.2 connections are accepted

License

MIT

问 PopNx