spring-boot-mcp-server

ismailsengul/spring-boot-mcp-server

3.2

If you are the rightful owner of spring-boot-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This project is a Spring Boot MCP Server that provides weather forecast and alert data by integrating with the National Weather Service APIs.

Spring Boot MCP Server

This is a basic demo project using Spring Boot and Model Context Protocol. It provides weather forecast and alert data by integrating with the National Weather Service (NWS) APIs.

Features

  • 📍 Get weather forecasts by latitude and longitude
  • ⚠️ Get active weather alerts for any US state
  • 🧠 Integrates with Spring AI's tool mechanism using @Tool annotations
  • 🚀 Based on Spring Boot 3.5.3

Technologies

  • Java 17
  • Spring Boot
  • Spring Web
  • Spring AI MCP Server Starter
  • Jackson (for JSON parsing)
  • Spring's RestClient (HTTP client)

Getting Started

Clone the repository and run the project:

git clone https://github.com/ismailsengul/spring-boot-mcp-server
cd mcp
./mvnw spring-boot:run