wattprice
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
wattprice
What does electricity cost right now under Spain's regulated PVPC tariff? wattprice asks the ESIOS API — the data service run by Red Eléctrica de España — for the PVPC (Voluntary Price for the Small Consumer) indicator and returns the prices payload as JSON, for a date range and geographical area you choose.
Everything except the API key itself is optional, with the defaults the upstream documents:
locale—es(default) orenstartDate/endDate— ISO 8601 bounds; an absent range means today, start to end of daytimeAggregation—sum(default) oraveragetimeTruncation—hour,day,month, oryeargeographicalAggregation—sum(default) oraveragegeographicalIds— string IDs:3España,8741Península,8742Canarias,8743Baleares,8744Ceuta,8745Melilla; defaults to the five system IDs 8741–8745geographicalTruncation—countryorelectric_system
Configuration
You bring your own ESIOS API key (free registration at esios.ree.es):
export ESIOS_API_KEY="your key"Without it, wattprice does not guess: the call fails with an
error naming ESIOS_API_KEY, and no prices are invented.
ESIOS_API_BASE overrides the API base URL
(https://api.esios.ree.es by default).
Related MCP server: Datadis MCP Server
CLI
ESIOS_API_KEY=... npx @reneturcios/wattprice prices
ESIOS_API_KEY=... npx @reneturcios/wattprice prices --locale en --time-truncation day --geographical-ids 8741
npx @reneturcios/wattprice --versionOutput is the ESIOS prices payload as JSON. Exit codes: 0 on
success, 1 on a runtime error (including a missing key or a
non-200 upstream response), 2 on a usage error.
MCP server
npx -y @reneturcios/wattprice mcpMCP client config:
{
"mcpServers": {
"wattprice": {
"command": "npx",
"args": ["-y", "@reneturcios/wattprice", "mcp"],
"env": { "ESIOS_API_KEY": "your key" }
}
}
}Tools
fetch_prices— Fetch PVPC prices for a given date range and geographical area. All arguments are optional; see the defaults list above.
Docker
docker run -i -e ESIOS_API_KEY="your key" ghcr.io/cloudcorprecords/wattprice
docker run --rm -e ESIOS_API_KEY="your key" ghcr.io/cloudcorprecords/wattprice prices --locale enDevelopment
npm install
npm run build # tsc -> dist/
npm test # tsx --test test/*.test.ts (fake fetch, no network)
npm run dev # run the CLI from sourceLicense
MIT — Copyright (c) 2026 Rene Turcios
This server cannot be deployed
Maintenance
Related MCP Connectors
Retrieve daily PVPC electricity tariffs for 2.0 TD consumers, published by Red Eléctrica.
Real-time electricity prices for AI agents. 40+ countries, 100+ zones. No auth required.
Real-time electricity price signals for AI agents. Spot prices, cheapest hours, and contract recommendations. 31 countries across Europe and Oceania. No authentication required.
European day-ahead electricity prices (43 zones), accuracy-published forecasts, carbon, optimize.
Related MCP Servers
- AlicenseAqualityCmaintenanceFetches Spanish electricity prices (PVPC) from Red Eléctrica de España's API, providing hourly tariff data for different geographical areas and customizable date ranges.135 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to access and analyze Spanish electricity consumption data via the Datadis API, providing tools for supply management, consumption analysis, anomaly detection, and executive reporting.MIT

Voltcast MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceEnables access to European electricity data including day-ahead prices, probabilistic forecasts, carbon intensity, and cheapest-window optimization for 43 bidding zones.MIT- FlicenseNot gradedqualityCmaintenanceProvides real-time electricity prices, cheapest hours, and contract comparison for 40+ countries, enabling AI agents to make energy-aware decisions.5-