mcp-webmvc-server
1
This project demonstrates how to create a Model Context Protocol (MCP) server using Spring AI, specifically for a weather service. It leverages the National Weather Service API to provide weather forecasts and alerts. Users can interact with the server using SSE or STDIO transports.
Overview
This project is a sample implementation of an MCP server using the Spring AI MCP Server Boot Starter with WebMVC transport. It provides a weather service that utilizes the National Weather Service API to retrieve weather information. Features include:
- Integration with Spring AI MCP Server WebMVC Spring Boot Starter
- Support for SSE and STDIO transports
- Automatic tool registration through Spring AI's @Tool annotation
- Tools for getting weather forecasts by location and alerts by US state.