spring-ai-weather-tool
Verified Safeby Mircheaaa
Overview
Provides AI-assisted weather forecasts for Korea using Spring AI and the Groq API, serving as a backend for a Korea Travel Guide service.
Installation
./gradlew bootRunEnvironment Variables
- OPENROUTER_API_KEY
- OPENROUTER_MODEL
- WEATHER_API_KEY
- REDIS_HOST
- REDIS_PORT
- REDIS_PASSWORD
- SPRING_DATASOURCE_URL
- SPRING_DATASOURCE_USERNAME
- SPRING_DATASOURCE_PASSWORD
Security Notes
The application's `SecurityConfig.kt` explicitly permits all HTTP requests (`anyRequest().permitAll()`) and disables CSRF protection (`csrf().disable()`). While noted as 'development-only' settings in comments, this makes the default configuration highly insecure for production environments. The H2 database console is also enabled (`h2-console`) and accessible to others (`web-allow-others: true`), which is a significant risk if exposed publicly. Hardcoded secrets are avoided by using environment variables.
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.
openweather-mcp-server
Provides current weather data via an SSE endpoint for MCP clients and acts as an AI tool for fetching weather information.
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).