weather-mcp
Verified Safeby rdwj
Overview
Provides real-time and historical US weather data, forecasts, and generates weather reports using MCP (Model Context Protocol) for consumption by AI/LLMs.
Installation
python -m src.mainEnvironment Variables
- NOAA_CDO_TOKEN
- MCP_AUTH_JWT_ALG
- MCP_AUTH_JWT_SECRET
- MCP_AUTH_JWT_PUBLIC_KEY
- MCP_REQUIRED_SCOPES
Security Notes
The server uses environment variables for sensitive API keys (e.g., NOAA_CDO_TOKEN) and JWT secrets, which is good practice. Dynamic loading of tools, resources, and prompts is a core feature of the FastMCP framework; this is safe assuming the source code is trusted and not modifiable by untrusted users at runtime. JWT authentication is optional, and if not configured, the HTTP endpoint will be open. CORS configuration (MCP_HTTP_ALLOWED_ORIGINS) is mentioned in the architecture but not explicitly configured in the `mcp.run` call, which might require additional FastMCP or reverse proxy configuration for production. No direct `eval()` or `exec()` usage was found that would allow arbitrary code execution through user input.
Similar Servers
Lab-7-Weather-MCP-Server
Provides real-time weather forecasts and alerts by integrating with the National Weather Service (NWS) API, primarily intended as a tool for an LLM.
Weather_MCP_Server
Provides real-time weather data, forecasts, and weather comparison between cities to AI assistants via an MCP server.
mcp-ai-weather-server
Provides current weather alerts and detailed forecasts by integrating with the National Weather Service (NWS) API, designed to extend the capabilities of an AI agent through the Model Context Protocol (MCP).
Weather-MCP-Server
Provides real-time US weather forecasts and severe weather alerts to language models via the Model Context Protocol (MCP).