weather-mcp-server
Verified Safeby Ujjwal-Pandit
Overview
Implements Model Context Protocol (MCP) servers for providing weather information, mathematical calculations, and demonstrates model distillation for AI agents.
Installation
uv run weather.pySecurity Notes
The 'calc.py' server uses SymPy's 'sympify' function to parse user-provided mathematical expressions. While 'convert_xor=True' is used to mitigate some risks, 'sympify' can still be a vector for resource exhaustion attacks or potential code injection if input is not rigorously sanitized or run in a highly restricted sandbox. Generic 'except Exception' blocks in 'weather.py' might mask specific issues but prevent crashes. No obvious hardcoded sensitive credentials found.
Similar Servers
weather
This server provides weather information by integrating with an external LLM (like Claude) as a tool within the Model Context Protocol (MCP).
mcpinabox
Builds a Model Context Protocol (MCP) server to expose weather data as tools for AI models like OpenAI's Responses API.
mcp-weather-server
Provides a production-ready Model Context Protocol (MCP) server for integrating AI applications with external weather data via streamable HTTP transport.
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.