Spring AI MCP Weather Server Sample with WebMVC Starter
@alexandredavi
About Spring AI MCP Weather Server Sample with WebMVC Starter
No overview available yet
Config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Spring AI MCP Weather Server Sample with WebMVC Starter?
This sample project demonstrates how to create an MCP server using the Spring AI MCP Server Boot Starter with WebMVC transport. It implements a weather service that exposes tools for retrieving weather information using the National Weather Service API.
How to use Spring AI MCP Weather Server Sample with WebMVC Starter?
Build the project using ./mvnw clean install -DskipTests. Run the server in default WebMVC SSE mode with java -jar target/mcp-weather-starter-webmvc-server-0.0.1-SNAPSHOT.jar or enable STDIO transport by setting the appropriate properties. Configure server identification, transport, and notification settings via application.properties.
Key features of Spring AI MCP Weather Server Sample with WebMVC Starter
- Integration with
spring-ai-mcp-server-webmvc-spring-boot-starter - Supports both SSE (Server-Sent Events) and STDIO transports
- Automatic tool registration using Spring AI’s
@Toolannotation - Two weather tools: forecast by location and alerts by US state
- Auto-configured SSE endpoints with WebMVC transport
- Optional change notifications for resources, tools, and prompts
Use cases of Spring AI MCP Weather Server Sample with WebMVC Starter
- Providing weather forecast data to AI assistants via MCP protocol
- Retrieving weather alerts for a specific US state
- Demonstrating how to build an MCP server with Spring Boot and WebMVC
- Testing MCP client-server interactions with both STDIO and SSE transports
FAQ from Spring AI MCP Weather Server Sample with WebMVC Starter
How do I run the server in STDIO mode instead of SSE?
Set the properties spring.ai.mcp.server.stdio=true and spring.main.web-application-type=none when starting the JAR.
What tools does the server provide?
Two tools: getWeatherForecastByLocation (latitude/longitude) and getAlerts (two-letter US state code).
What is the runtime dependency to use this server?
The project requires the spring-ai-mcp-server-webmvc-spring-boot-starter dependency, which includes spring-boot-starter-web and mcp-spring-webmvc.
Where does the weather data come from?
The server retrieves weather information from the National Weather Service API (weather.gov).
How can I connect a client to this server?
You can connect via SSE using HttpClientSseClientTransport or via STDIO using StdioClientTransport. The sample also provides boot-starter client configurations for both transports.
Frequently asked questions
How do I run the server in STDIO mode instead of SSE?
Set the properties `spring.ai.mcp.server.stdio=true` and `spring.main.web-application-type=none` when starting the JAR.
What tools does the server provide?
Two tools: `getWeatherForecastByLocation` (latitude/longitude) and `getAlerts` (two-letter US state code).
What is the runtime dependency to use this server?
The project requires the `spring-ai-mcp-server-webmvc-spring-boot-starter` dependency, which includes `spring-boot-starter-web` and `mcp-spring-webmvc`.
Where does the weather data come from?
The server retrieves weather information from the National Weather Service API (weather.gov).
How can I connect a client to this server?
You can connect via SSE using `HttpClientSseClientTransport` or via STDIO using `StdioClientTransport`. The sample also provides boot-starter client configurations for both transports.
Basic information
More Developer Tools MCP servers

Reelier
Maxime HouleAgents make claims. Reelier writes receipts — record an agent's tool-call workflow once, replay it deterministically at 0 tokens, and diff runs to catch drift.

Termany
thinkany-aiAgent-Native Terminal
SecondSim
econdSim provisions real UK mobile numbers (non-VoIP) via eSIM, built for freelancers, sole traders, small businesses, and enterprise teams. Unlike VoIP apps and virtual numbers, SecondSim numbers register as genuine phy
OrangePro
Aamir SiddiquiOrangePro local-first CLI + MCP server for behavior mapping, grounded test generation, and dynamic proof.
Altronis
sypherinMCP server + CLI for Altronis — Singapore AI consulting. Ask the Lyra consultant, generate a grant-matched AI transformation plan, pull curated SG AI events/news. Read-only, wraps altronis.sg.
Comments