Weather-MCP-Server
Verified Safeby iamthite
Overview
Provides comprehensive weather information and tools via a Model Context Protocol (MCP) server using FastMCP and WeatherAPI.com.
Installation
python weather_server.pyEnvironment Variables
- WEATHER_API_KEY
- WEATHER_API_URL
Security Notes
The `WEATHER_API_KEY` is hardcoded directly in `main.py` (`weather_server.py`). While `python-dotenv` is used to load environment variables, the hardcoded value overrides any user-provided key, making it impossible for users to supply their own API key without modifying the source code. This is a significant security flaw as it exposes a single API key to all users of the repository/image and prevents proper secret management. There is no user authentication or rate limiting implemented by default, which should be considered for production deployments.
Similar Servers
mcp_weather_server
Provides current and historical weather, air quality, and timezone information via an MCP server, integrating with the Open-Meteo API.
WeatherApi_MCP_server
This server provides current weather, multi-day forecasts, and weather comparison for specified cities using the WeatherAPI.
WeatherMCP
A simple Model Context Protocol (MCP) server for fetching live weather alerts and forecasts from the U.S. National Weather Service (NWS) API.
mcp-weather
Provides current weather, forecast, air quality, and geocoding services by integrating with the Open-Meteo API.