A Model Context Protocol (MCP) server implementation for monitoring website performance and environmental impact.
- Monitor website availability and performance
- Track CO2 emissions and environmental impact
- Get detailed metrics about website performance
- Support for multiple monitoring periods (24h, 7d, 30d)
- Clone the repository:
git clone https://github.com/yourusername/botnbot_mcp.git
cd botnbot_mcp
- Install dependencies:
npm install
- Create a
.env
file with your configuration:
API_URL=your_api_url
API_TOKEN=your_api_token
- Build the Docker image:
docker build -t botnbot_mcp .
- Run the container:
docker run -d \
--name botnbot_mcp \
-e API_URL=your_api_url \
-e API_TOKEN=your_api_token \
botnbot_mcp
Run the MCP server:
npm start
You can also provide configuration via command line arguments:
npm start -- --url "your_api_url" --token "your_api_token"
Run the container with environment variables:
docker run -d \
--name botnbot_mcp \
-e API_URL=your_api_url \
-e API_TOKEN=your_api_token \
botnbot_mcp
Or with command line arguments:
docker run -d \
--name botnbot_mcp \
botnbot_mcp npm start -- --url "your_api_url" --token "your_api_token"
GET /monitors
- List all monitorsGET /monitor/:id/co2
- Get CO2 metrics for a specific monitorGET /monitor/:id/health
- Get health status for a specific monitorGET /monitor/:id/performance
- Get performance metrics for a specific monitor
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.