Server data from the Official MCP Registry
Fetch PVPC electricity prices from Spain's ESIOS API by date range and area.
About
Fetch PVPC electricity prices from Spain's ESIOS API by date range and area.
Security Report
wattprice is a small, well-scoped PVPC electricity price client that forwards a single documented query to the ESIOS API using the user's own key from ESIOS_API_KEY. The code is clean: inputs are validated against enums and an allowlist, the key is never hardcoded or logged, errors are surfaced honestly, and tests run against an injected fake fetch. Only minor observations remain, mainly that the ESIOS_API_BASE override lets the API key be sent to an arbitrary host if the environment is controlled by an attacker, and the server requires network_http and env_vars, which match its purpose. Supply chain analysis found 3 known vulnerabilities in dependencies (0 critical, 2 high severity). Package verification found 1 issue.
8 files analyzed · 7 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Required
This plugin requests these system permissions. Most are normal for its category.
How to Install
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-cloudcorprecords-wattprice": {
"args": [
"-y",
"@reneturcios/wattprice"
],
"command": "npx"
}
}
}Documentation
View on GitHubFrom the project's GitHub README.
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).
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 --version
Output 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 mcp
MCP 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 en
Development
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 source
License
MIT — Copyright (c) 2026 Rene Turcios
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Rea
Freeby Morluto · Developer Tools
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Paperclip
Freeby Paperclipai · Developer Tools
Trending hip-hop artist momentum scores across four cultural dimensions.
Fetch
Freeby Modelcontextprotocol · Developer Tools
Web content fetching and conversion for efficient LLM usage
Git
Freeby Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
