mcp_weather_server
Verified Safeby isdaniel
Overview
Provides current and historical weather, air quality, and time information for specified cities/timezones using the Open-Meteo API, supporting various Model Context Protocol (MCP) transport modes.
Installation
python -m mcp_weather_server --mode streamable-httpEnvironment Variables
- PORT
Security Notes
The server relies on external, free-tier APIs (Open-Meteo) with hardcoded base URLs, reducing risk of arbitrary URL injection. Input parameters for city, date, and variables are either validated or sanitized (e.g., via `json.dumps`). No direct 'eval' or 'exec' usage. CORS is configured to allow all origins ('*'), which is broad but common for public APIs and not a direct vulnerability in this context. City names are specifically noted to require English, implying a translation step may occur before tool invocation, which is good practice.
Similar Servers
mcp-weather-server
Provides real-time and forecast weather data, air quality information, and multi-city weather trend analysis via the Model Context Protocol (MCP), integrating with OpenWeather and OpenRouter APIs.
airnow-mcp
Provides an MCP server to query the AirNow API for current, historical, and forecast air quality data by zip code or geographic coordinates.
weather
This server provides weather information by integrating with an external LLM (like Claude) as a tool within the Model Context Protocol (MCP).
mcp-simulation
Serves weather forecast and alert data from the National Weather Service API as tools for an MCP-compatible AI agent.