MCP ServerHTTPOfficialv3.2.3

Smithery Rfdez Pvpc MCP Server

Fetch hourly electricity tariffs for Spanish 2.0 TD consumers published daily by Red Eléctrica. Ideal for developers building energy cost optimization or billing tools for small businesses in Spain.

ai.smithery/rfdez-pvpc-mcp-server

Hosted URL

https://server.smithery.ai/@rfdez/pvpc-mcp-server/mcp

Transport

HTTP

Auth

No auth required

Smithery Rfdez Pvpc repository at a glance

Live signal from GitHub, refreshed weekly.

Stars

0

Last commit

May 9, 2026

License

MIT

Language

TypeScript

What the Smithery Rfdez Pvpc MCP server does

How models use it and what it is built for.

Fetch hourly electricity tariffs for Spanish 2.0 TD consumers published daily by Red Eléctrica. Ideal for developers building energy cost optimization or billing tools for small businesses in Spain.

Connect to Smithery Rfdez Pvpc

Hosted endpoint — paste into any MCP client.

https://server.smithery.ai/@rfdez/pvpc-mcp-server/mcp

Resources

Where to find authoritative docs and source for Smithery Rfdez Pvpc.

Example prompts for Smithery Rfdez Pvpc

Paste any of these into Agent Studio after connecting Smithery Rfdez Pvpc.

  • Get PVPC prices for tomorrow across all Spanish regions
  • Fetch hourly electricity tariffs for the Iberian Peninsula this week
  • Show me average daily PVPC rates for Canarias over the last month
  • Retrieve current PVPC prices for Ceuta and Melilla in English

Documentation from project README

View on GitHub

Excerpted from the project's README — boilerplate sections (license, changelog, contributing) omitted for clarity.

Voluntary Price for the Small Consumer (PVPC) MCP Server

License: MIT NPM Version

Fetch the Voluntary Price for the Small Consumer (PVPC) published daily by Red Eléctrica at 8:15 p.m. This includes the hourly electricity tariffs that will apply the following day for consumers billed under the 2.0 TD tariff.

🧩 Components

Tools

  • fetch_prices: Fetches the Voluntary Price for the Small Consumer (PVPC) prices for a given date range and geographical area.
    • Inputs:
      • locale: Get translations for sources. Accepted values: es, en. Defaults to es.
      • startDate: Beginning of the date range to filter indicator values in iso8601 format. E.g. 2025-06-29T00:00:00.000+02:00. Defaults to the start of today.
      • endDate: End of the date range to filter indicator values in iso8601 format. E.g. 2025-06-29T23:59:59.999+02:00. Defaults to the end of today.
      • timeAggregation: How to aggregate indicator values when grouping them by time. Accepted values: sum, average. Defaults to sum.
      • timeTruncation: Tells how to truncate data time series. Accepted values: hour, day, month, year. Optional parameter.
      • geographicalAggregation: How to aggregate indicator values when grouping them by geographical ID. Accepted values: sum, average. Defaults to sum.
      • geographicalIds: Tells the geographical IDs to filter indicator values. Accepted values: 3 (España), 8741 (Península), 8742 (Canarias), 8743 (Baleares), 8744 (Ceuta), 8745 (Melilla). Defaults to 8741, 8742, 8743, 8744, 8745.
      • geographicalTruncation: Tells how to group data at geographical level when the geographical aggregation is informed. Accepted values: country, electric_system. Optional parameter.
    • Returns: Text content with the PVPC prices in JSON format.

🔧 Configuration

Requirements

You need to register an API key from Esios Red Eléctrica de España to access the Esios Red Eléctrica de España API.

You will find the API documentation at API e·sios Documentation.

Claude Desktop

Remote Server Connection

Open Claude Desktop and navigate to Settings > Connectors > Add Custom Connector. Enter the name as PVPC and the remote MCP server URL like https://mcp.example.com/mcp.

Local Server Connection

Add this to your Claude Desktop claude_desktop_config.json file. See Claude Desktop MCP docs for more info.

{
  "mcpServers": {
    "pvpc": {
      "command": "npx",
      "args": ["-y", "@rfdez/pvpc-mcp-server@latest", "--api-key", "your_esios_api_key"]
    }
  }
}

💻 Development

Clone this repository and install the dependencies:

npm install

Build the project:

npm run build

Run the server:

node dist/index.js

CLI Arguments

pvpc-mcp-server accepts the following CLI flags:

  • --transport <stdio|http>: Transport to use (stdio by default).
  • --port <number>: Port to listen on when using http transport (default 8080).
  • --api-key <key>: Your e·sios API key for authentication.

Example with http transport and port 8080:

node dist/index.js --transport http --port 8080

Example with stdio transport:

node dist/index.js --transport stdio --api-key YOUR_ESIOS_API_KEY

Local Configuration Example

{
  "mcpServers": {
    "pvpc": {
      "command": "npx",
      "args": ["-y", "tsx", "/path/to/folder/pvpc-mcp-server/src/index.ts", "--api-key", "YOUR_ESIOS_API_KEY"]
    }
  }
}

Testing with MCP Inspector

npx -y @modelcontextprotocol/inspector npx -y @rfdez/pvpc-mcp-server
Continue reading on GitHub

Smithery Rfdez Pvpc MCP server — FAQ

Common questions about connecting and running Smithery Rfdez Pvpc.

  • What is PVPC and who needs this server?

    PVPC (Voluntary Price for the Small Consumer) is Spain's daily electricity tariff for 2.0 TD consumers, published by Red Eléctrica at 8:15 p.m. each day. Developers building energy management, billing, or cost-tracking tools for Spanish small businesses and consumers need this server.

  • How do I authenticate with this MCP server?

    You must register a free API key at esios.ree.es and pass it via the `--api-key` CLI argument or in your Claude Desktop config. The server uses this key to query Red Eléctrica's e·sios API.

  • What geographical areas does this server cover?

    The server covers España (whole country), Península (mainland), Canarias, Baleares, Ceuta, and Melilla. You can filter by geographical ID or request data aggregated across multiple regions.

  • Can I aggregate prices by day or month instead of hourly?

    Yes. Use the `timeTruncation` parameter to group data by `hour`, `day`, `month`, or `year`, and the `timeAggregation` parameter to apply `sum` or `average` across those periods.

  • Is there a cost to use this server?

    The README does not document pricing. The e·sios API itself is free, but you should verify any rate limits or terms on the Red Eléctrica developer portal.

Run Smithery Rfdez Pvpc across 30+ AI models, side-by-side

Connect Smithery Rfdez Pvpc to Claude, GPT, Gemini, DeepSeek and 30+ AI models in MCP Agent Studio. Compare answers side-by-side, save reusable agent presets, share runs — all in your browser, no install required.

Open Agent Studio

Related servers

More on MCP Playground