Back to Home
NovSerg icon

mcp-weather-server

Verified Safe

by 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

Run Command
npm start

Environment 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

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens700
Stars0
Forks0
Last Update2025-11-20

Tags

MCPWeatherAPINode.jsOpenWeather