public_power
Pack: energy-charts · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/public_power for the schema, then POST the same URL with its arguments for the data.
Electricity generation broken down by production type (solar, wind, nuclear, gas, etc.) for a country over a date range. Returns {unix_seconds, production_types:[{name, data}]}; each series’ data array is timestamp-aligned to unix_seconds. Power in MW. Paged by reading: default 3000 readings, maximum 8000, with total_readings, returned_readings and next_offset (a 15-minute year is 35,040 readings; use aggregate for long windows).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
country | string | yes | 2-letter lowercase country code, e.g. “de”, “fr”, “es”, “pl”, or “all” for the EU aggregate. |
start | string | no | Optional start date, YYYY-MM-DD. Defaults to 7 days ago. |
end | string | no | Optional end date, YYYY-MM-DD. Defaults to today. |
production_type | string | no | Keep only the series whose name contains this text (case-insensitive), e.g. “offshore” (Wind offshore), “solar”, “lignite”, “nuclear”, or several separated by commas (“wind offshore, wind onshore”). A name that matches nothing is refused with the list of names the country has. Use it for “offshore wind”, “solar output”, “coal generation” questions. |
limit | number | no | Readings (time steps) per page: default 3000, maximum 8000 (larger values are clamped and the response says so). A 15-minute year is 35,040 readings, so long windows are paged: the response gives total_readings and next_offset. |
offset | number | no | 0-based index of the first reading to return (default 0); pass next_offset from the previous page. |
aggregate | string | no | Collapse the 15-minute readings into the mean MW and the energy in GWh per hour, calendar day or calendar month (days and months are local to the country, as Energy-Charts aligns its windows). Pass “daily” or “monthly” for any window longer than about a week: a year is 35,040 readings per series and does not fit in an answer. Omit for the raw readings. |
Example call
Arguments
{
"country": "de"
}
curl
curl -X POST https://gateway.pipeworx.io/energy-charts/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"public_power","arguments":{"country":"de"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('public_power', {
"country": "de"
});
More examples
{
"country": "all",
"start": "2024-01-01",
"end": "2024-01-07"
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the energy-charts pack
{
"mcpServers": {
"energy-charts": {
"url": "https://gateway.pipeworx.io/energy-charts/mcp"
}
}
}
See Getting Started for client-specific install steps.