WeatherApi_MCP_server
Verified Safeby Abhishek3689
Overview
The server provides programmatic access to current weather conditions and forecasts for specified cities using the WeatherAPI.com service.
Installation
python weather.pyEnvironment Variables
- WEATHER_API_KEY
Security Notes
The application retrieves the `WEATHER_API_KEY` from environment variables using `os.getenv`, which is a good security practice for handling sensitive information. There are no apparent uses of dangerous functions like `eval`, `exec`, or `subprocess` that could lead to command injection. Network requests are handled by `httpx`, a standard and secure library, with appropriate timeouts. The code appears safe for its intended purpose.
Similar Servers
mcp-weather-bot
Provides real-time weather information to AI agents (like Claude/Cursor) via a FastMCP server.
weather-MCP-server
This server provides a tool to fetch current weather information for a specified location using the OpenWeatherMap API.
streamable-http-mcp
Implements a basic StreamableHTTP MCP (Multi-Agent Communication Protocol) server with a weather information tool.
ai-examples
A basic weather API server built with FastAPI, demonstrating a Microservice Communication Protocol (MCP) server that provides CRUD operations for weather information.