mcp-weather-server
Verified Safeby NovSerg
Overview
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.
Installation
npm startEnvironment Variables
- OPENWEATHER_API_KEY
- MCP_PORT
- OPENROUTER_API_KEY
Security Notes
API keys (OpenWeather, OpenRouter) are correctly handled via environment variables. Input validation is performed using Zod schemas for tool parameters, mitigating common injection risks. Filename sanitization is implemented for saving reports, preventing path traversal. CORS is enabled for all origins, which is explicitly noted in the README as suitable for local development but a security risk for production, requiring proper configuration for deployment. Interaction with OpenRouter (a third-party LLM) introduces an external dependency for analysis, implying data transfer to OpenRouter, but this is clearly part of the server's functionality and not an arbitrary data leak. No 'eval' or obvious malicious code patterns were found.
Similar Servers
mcp_weather_server
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.
weather
This server provides weather information by integrating with an external LLM (like Claude) as a tool within the Model Context Protocol (MCP).
Weather-MCP-Server
Provides real-time US weather forecasts and severe weather alerts to language models via the Model Context Protocol (MCP).
mcp-local-server
A Model Context Protocol (MCP) server that provides real-time weather data, basic mathematical calculations, and mock alert details to AI agents.