MCP Server for the German Marktstammdatenregister (MaStR) — energy market register of the Bundesnetzagentur
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add mastr --env MASTR_TOKEN='<MASTR_TOKEN>' -- uvx mastr-mcp-server~/.codex/config.toml
[mcp_servers.mastr]
command = "uvx"
args = ["mastr-mcp-server"]
env = { MASTR_TOKEN = "<MASTR_TOKEN>" }
# codex mcp add mastr --env MASTR_TOKEN='<MASTR_TOKEN>' -- uvx mastr-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"mastr": {
"command": "uvx",
"args": [
"mastr-mcp-server"
],
"env": {
"MASTR_TOKEN": "<MASTR_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"mastr": {
"type": "stdio",
"command": "uvx",
"args": [
"mastr-mcp-server"
],
"env": {
"MASTR_TOKEN": "<MASTR_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"mastr": {
"command": "uvx",
"args": [
"mastr-mcp-server"
],
"env": {
"MASTR_TOKEN": "<MASTR_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"mastr": {
"command": "uvx",
"args": [
"mastr-mcp-server"
],
"env": {
"MASTR_TOKEN": "<MASTR_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"mastr": {
"command": "uvx",
"args": [
"mastr-mcp-server"
],
"env": {
"MASTR_TOKEN": "<MASTR_TOKEN>"
}
}
}
}Environment variables
MASTR_TOKEN
Replace the placeholders with your own credentials and keep them out of version control.