mcp-eredes-server
The MCP-Server project uses the e-redes API to gather information about energy consumption and production in Portugal. It operates on an Express.js server and requires Node.js and npm for setup and operation.
MCP-Server
This is an MCP-Server that uses the e-redes API to get the energy consumption and energy production in Portugal.
Description
This server fetches data from the e-redes API to provide information on energy consumption and production in Portugal.
Prerequisites
- Node.js
- npm
Installation
Install the dependencies:
npm install
Usage
To start the server, run:
npm run start
Express.js Server
This project includes an Express.js server. To run the server, follow these steps:
-
Build the project:
npm run build
-
Start the server:
node build/server.js
Making POST Requests
You can make POST requests to the server using Postman or any other HTTP client.
Example request:
- URL:
http://localhost:4000/get_energy_consumption
- Body:
{ "day": "06" }
This request will retrieve the energy consumption data for the specified day.