mcp-weather-server
by 522jack
Overview
Standalone MCP server providing weather information, task management, and local document processing capabilities for an AI client.
Installation
java -jar build/libs/mcp-weather-server-1.0.0.jar stdioEnvironment Variables
- OPENWEATHER_API_KEY
Security Notes
The document search, summarization, and storage services allow file system operations (read, write, search) based on user-provided paths (`folder_path`, `document_path`, `output_folder`, `filename`). While `Path.normalize()` is used, it might not be sufficient to prevent all path traversal attacks, potentially allowing access to arbitrary files outside the intended project directory (the `user.dir` where the server is run). This is a significant local file system security risk if the server processes untrusted input from an LLM or external client. The `OPENWEATHER_API_KEY` is handled correctly via environment variables. SQL queries for task management use prepared statements, mitigating SQL injection risks.
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.
weather-mcp-server
Provides current weather conditions and 5-day forecasts for any city using the OpenWeatherMap API via a Model Context Protocol (MCP) server.
mcp-weather
A Model Context Protocol (MCP) server for retrieving weather alerts and forecasts for US locations using the National Weather Service (NWS) API.
weather-mcp-server
Provides live weather forecasts for any city in the world via a tool-enabled API, designed to be integrated with AI agents or LLMs.