openweather-mcp-server
Verified Safeby ayush-dudhani
Overview
Provides current weather data via an SSE endpoint for MCP clients and acts as an AI tool for fetching weather information.
Installation
mvn spring-boot:runEnvironment Variables
- OPENWEATHER.API.KEY
- OPENWEATHER.BASE.URL
Security Notes
The server's design is straightforward, using environment variables for API keys and standard Spring Boot practices. No 'eval', code obfuscation, or hardcoded secrets were found. A minor potential concern is the direct string concatenation of the 'city' parameter into the URL in WeatherService. While RestTemplate typically handles basic URL encoding, explicit URI building or more robust input validation could further mitigate risks of malformed requests if highly unusual characters are used in the city name.
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.
hello-mcp-server-kotlin
This server exposes a simple weather tool for consumption by an Artificial Intelligence model using the Spring AI Multimodal Conversation Protocol (MCP).
mcp-weather-server
Provides weather forecast and alert tools via the Model Context Protocol (MCP) for AI clients like Claude Desktop and Claude Code CLI.