weather-mcp-server
Verified Safeby zademy
Overview
Provides current and daily weather forecasts for specified locations or geographic coordinates using the Open-Meteo API.
Installation
java -Dspring.ai.mcp.server.stdio=true -jar target/weather-0.0.1-SNAPSHOT.jarSecurity Notes
The server uses standard Spring Boot and RestClient for external API calls to a public, free weather API (Open-Meteo). No hardcoded secrets, 'eval' functions, obfuscation, or obvious malicious patterns were found in the provided source code. URL construction for API calls appears robust for its purpose. The manual JSON string construction in `formatWeatherResponse` and custom `escapeJson` method are functional for the current data but generally less robust than using an `ObjectMapper` for full object serialization, though this isn't a direct security vulnerability in this context.
Similar Servers
MCP-Server-remote-SpringAI
This application provides a Spring AI tool for fetching current weather status, designed for integration with large language models or AI agents.
mcp_server
A Spring Boot application demonstrating Spring AI tool integration for retrieving weather information and a GraphQL client for fetching country data, acting as a service component for conversational AI.
mcp-server-weather
Provides current weather, hourly forecasts, and geocoding-based location lookup using the Open-Meteo API.
openweather-mcp-server
Provides current weather data via an SSE endpoint for MCP clients and acts as an AI tool for fetching weather information.