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 timezone information via an MCP server, integrating with the Open-Meteo API.
Weather-MCP-Server
Provides comprehensive weather information and tools via a Model Context Protocol (MCP) server using FastMCP and WeatherAPI.com.
mcp-weather
Serves weather information via the Model Context Protocol (MCP) as a tool for AI agents.
Learning-Claude-McpServer
Enables AI assistants to interact with arbitrary OpenAPI-defined APIs by dynamically generating Model Context Protocol (MCP) tools.