trackmcp
Back to directory
khalidmnor

mcp-weatherapi

View on GitHub

Simple implementation of MCP Server for WeatherAPI.com using SpringBoot

0 stars JavaDeveloper Kits Updated Apr 27, 2025

Documentation

Weather 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:

bash
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

    Frequently asked questions

    What is mcp-weatherapi?

    mcp-weatherapi is Simple implementation of MCP Server for WeatherAPI.com using SpringBoot

    How do I install mcp-weatherapi?

    Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

    Is mcp-weatherapi open source?

    Yes — it is hosted on GitHub at https://github.com/khalidmnor/mcp-weatherapi.

    Related MCP tools

    Run your own MCP server? See who uses it and what to fix.

    Measure it with TrackMCP