About Weather Service Application
Weather Service Application is a Spring Boot service that retrieves current weather for a city through WeatherAPI.com. It is intended for applications that need a JSON weather endpoint and configurable API settings.
Key features
- 01Current weather lookup by city
- 02REST endpoint returning JSON
- 03WeatherAPI.com calls through WebClient
- 04Configurable API properties
- 05Built with Java and Kotlin
Use cases
- 01Retrieve current conditions for a specified city
- 02Expose weather data to an application through a REST API
MCP support
The input describes this project as an MCP server, but documents only a REST weather endpoint and does not specify MCP tools or resources.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEWeather Service Application
This project is a Spring Boot application that provides weather information by city name using a REST API.
Features
- Fetch current weather details for a given city.
- Built with Java and Kotlin.
- Uses Spring Boot for application development.
- Reactive WebClient for API calls.
- Configurable API properties.
- Logs weather information for debugging purposes.
- Supports JSON responses for easy integration.
- Modular design with DTOs for clean data handling.
Technologies Used
- Java 21
- Kotlin
- Spring Boot 3.4.5
- Maven
- Lombok
- WebClient
Getting Started
Prerequisites
- Java 21 or higher
- Maven 3.8 or higher
Configuration
The application requires API properties to be configured in application.yml or application.properties. Below is an example configuration:
weather-api:
base-url: https://api.weatherapi.com/v1
endpoint: /current.json
api-key: YOUR_API_KEY
Replace YOUR_API_KEY with your actual API key.
API Endpoints
- GET /weather?city={cityName}: Fetches the current weather for the specified city.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.