Back to Home
Curator4 icon

mcp-server-weather

Verified Safe

by Curator4

Overview

Fetches current weather data for a specific city and country using the OpenWeatherMap API.

Installation

Run Command
go run main.go

Environment Variables

  • OPENWEATHER_APIKEY

Security Notes

Generally safe. The OpenWeatherMap API key is securely loaded from environment variables (or .env file) and not hardcoded. No 'eval' or other dynamic code execution patterns were found. Minor concern: user-provided 'city' and 'country' inputs are directly concatenated into the OpenWeatherMap API URL via `fmt.Sprintf` without explicit URL encoding/escaping, which could potentially cause issues with unusual characters in the city or country names, though unlikely for typical weather queries.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassLow
Avg Tokens150
Stars0
Forks0
Last Update2025-11-30

Tags

WeatherAPIGoMCPOpenWeatherMap