Back to Home
ayush-dudhani icon

openweather-mcp-server

Verified Safe

by 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

Run Command
mvn spring-boot:run

Environment 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

Stats

Interest Score0
Security Score8
Cost ClassLow
Avg Tokens100
Stars0
Forks0
Last Update2025-12-14

Tags

Spring BootJavaOpenWeatherSSEAI Tool