Spring AI MCP Weather Server Sample With WebMVC Starter MCP Server

# 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

Local serverstdio

What is the Spring AI MCP Weather Server Sample With WebMVC Starter MCP Server?

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

The short version

The sample showcases: - Integration with spring-ai-mcp-server-webmvc-spring-boot-starter - Support for both SSE (Server-Sent Events) and STDIO transports - Automatic tool registration using Spring AI's @Tool annotation - Two weather-related tools: - Get weather forecast by location (latitude/longitude) - Get weather alerts by US state

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Spring AI MCP Weather Server Sample With WebMVC Starter MCP Server

{
  "mcpServers": {
    "weather-starter-webmvc-server": {
      "command": "java",
      "args": [
        "-Dspring.ai.mcp.server.stdio=true",
        "-Dspring.main.web-application-type=none",
        "-Dlogging.pattern.console=",
        "-jar",
        "/absolute/path/to/mcp-weather-starter-webmvc-server-0.0.1-SNAPSHOT.jar"
      ]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Frequently asked questions

Set the properties `spring.ai.mcp.server.stdio=true` and `spring.main.web-application-type=none` when starting the JAR.