spring-ai-weather-tool
Verified Safeby Mircheaaa
Overview
An AI-powered Korean travel guide providing weather forecasts using Spring AI and Groq.
Installation
./gradlew bootRunEnvironment Variables
- OPENROUTER_API_KEY
- OPENROUTER_MODEL
- WEATHER_API_KEY
- REDIS_HOST
- REDIS_PORT
- REDIS_PASSWORD
Security Notes
The `SecurityConfig` explicitly disables CSRF protection and allows all requests (`permitAll()`), stating it's for development. This is a critical vulnerability if deployed to production without proper security hardening. Error responses in development (`application.yml` with `include-stacktrace: always`) also include stack traces and detailed request information, which should be disabled in production to prevent information leakage. All API keys are loaded from environment variables, which is good practice.
Similar Servers
hello-spring-mcp-server
This server provides a set of tools for AI agents to query employee skills and retrieve employees based on specific skills from an in-memory dataset.
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).
aigent-mcp-server
Provides weather forecast and alert tools via a Model Context Protocol (MCP) server, integrating with the National Weather Service API.