go-temperature-server
0
The Go Temperature Server is a simple server written in Go that provides temperature data for specified locations using a REST API. It leverages OpenWeatherMap API for fetching weather data and allows flexible configuration through environment variables or direct query parameters.
Go Temperature Server
This is a simple Go-based MCP server that provides the current temperature for a given location via a REST API.
Usage
- Set your OpenWeatherMap API key as an environment variable, or pass it as the
appid
query parameter to the API. - Run the server.
- Query the temperature endpoint for the desired location.
Configuration
PORT
(optional): The port to run the server on (default: 8080)WEATHER_API_KEY
: Your weather API key (optional if you provideappid
as a query parameter)