mcp-weather
Verified Safeby Yeahx1000
Overview
Serves weather information via the Model Context Protocol (MCP) as a tool for AI agents.
Installation
npm run startEnvironment Variables
- NWS_API_BASE
- USER_AGENT
Security Notes
The server employs good security practices by using `dotenv` for environment variable management and `zod` for robust input validation on all tool arguments (`state`, `latitude`, `longitude`), which helps prevent common injection issues. External API requests are made using values configured via environment variables (`NWS_API_BASE`, `USER_AGENT`), mitigating hardcoded secret risks. Basic error handling is in place for network requests. No 'eval', obfuscation, or other overtly malicious patterns were detected in the provided source code. A potential, albeit low, configuration risk exists if `NWS_API_BASE` or `USER_AGENT` are maliciously set in the environment, but this is an environmental concern rather than a code vulnerability.
Similar Servers
mcpinabox
Builds a Model Context Protocol (MCP) server to expose weather data as tools for AI models like OpenAI's Responses API.
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.
mcp-weather-server
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.
mcp-weather-server
This server acts as a Model Context Protocol (MCP) agent to provide real-time weather data for specific cities to an AI language model.