Back to Home
isdaniel icon

mcp_weather_server

Verified Safe

by 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

Run Command
python -m mcp_weather_server --mode streamable-http

Environment 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

Stats

Interest Score42
Security Score9
Cost ClassMedium
Avg Tokens1000
Stars30
Forks24
Last Update2025-11-29

Tags

WeatherAir QualityTimezoneMCPAPI