Back to Home
rfdez icon

pvpc-mcp-server

Verified Safe

by rfdez

Overview

Fetch daily electricity tariffs (PVPC) from Red Eléctrica for consumers billed under the 2.0 TD tariff.

Installation

Run Command
npx -y @rfdez/pvpc-mcp-server@latest --api-key your_esios_api_key

Environment Variables

  • PORT

Security Notes

The server uses `helmet` for HTTP security headers and `cors` for cross-origin resource sharing. API keys are handled via CLI arguments for stdio transport or request headers (e.g., 'X-API-Key', 'Authorization: Bearer') for HTTP transport, preventing hardcoding in source. External network requests are made to a specific, well-known API (`api.esios.ree.es`). No 'eval' or other obvious malicious patterns were found. Error handling for API calls is implemented. The HTTP server correctly restricts HTTP methods for the `/mcp` endpoint.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens7500
Stars0
Forks0
Last Update2026-01-15

Tags

electricity pricesPVPCRed Eléctricaenergy tariffsSpain