weather-mcp-server
Verified Safeby marekdano
Overview
Provide current weather information for cities via an MCP server.
Installation
docker run --rm --env-file .env -p 3000:3000 weather-mcp-serverEnvironment Variables
- WEATHER_API_KEY
Security Notes
The server uses dotenv for environment variable loading, and Zod for API response validation, which are good security practices. External API calls are made to OpenWeatherMap. The 'greeting' resource directly embeds user input into a text field, which could pose a minor XSS risk if the output is rendered unsafely in a web UI, but is less of a concern within the Model Context Protocol where consumption is typically by an AI model. No 'eval' or malicious patterns were found.
Similar Servers
mcp_weather_server
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.
mcp_server_test
This server provides a weather forecasting tool that fetches current and hourly weather data for specified geographical coordinates.
mcp-server-weather
A simple Model Context Protocol (MCP) server that provides static weather information.
mcp-server-template-rust
This server provides weather alerts and forecasts via the Model Context Protocol (MCP) using HTTP transport, serving as a template for building MCP servers in Rust.