Weather Service MCP Server is an MCP server that provides weather forecasts and alerts by connecting to the U.S. National Weather Service API. Built with Spring Boot and Java, it enables AI assistants and developers using MCP-compatible environments like Cursor IDE to fetch real-time atmospheric data directly within their coding workspace. Users can query detailed weather reports for coordinates using latitude and longitude parameters, receiving temperature readings, wind conditions, and multi-period forecasts. The server also supports retrieving active weather alerts scoped to specific US states. Designed primarily for developers needing live weather context inside their editor, it standardizes access to government meteorological feeds using stdio-based Model Context Protocol communication. It handles invalid locations with built-in error handling while serving temperature data in Fahrenheit for supported United States geographic areas.
Category: Maps, Weather & Local Data
Tags: alerts, forecast, spring-boot, weather
Visit Weather Service MCP Server
bash git clone https://github.com/Ahmed-Naseer-01/MCP-Server.git cd Weather-server 2. Set your environment to Java 21: bash export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-21.jdk/Contents/Home 3. Build the JAR file using Maven: bash ./mvnw clean package -DskipTests 4. In Cursor IDE, open ~/.cursor/mcp.json and configure the server: json { "mcpServers": { "spring-ai-mcp-weather": { "command": "java", "args": [ "-Dspring.ai.mcp.server.stdio=true", "-jar", "/path/to/your/Weather-server/target/Weather-server-0.0.1-SNAPSHOT.jar" ] } } } Replace /path/to/your with your actual project location.Part of MCP Servers
Weather Service MCP Server is a Spring Boot application that exposes US National Weather Service data over the Model Context Protocol. It allows connected AI clients to query real-time forecasts, wind conditions, and weather alerts.
The server requires Java 21 or higher and Maven 3.6 or higher to compile and run. You also need an MCP-compatible client such as Cursor IDE configured to launch Java processes via standard input and output.
The server currently only supports United States locations and territories because it relies on the US National Weather Service API. Weather alerts are limited to US states, and all temperature outputs are reported in Fahrenheit.
Weather Service MCP Server is documented for use with Cursor IDE via its mcp.json configuration file, but it can connect to any Model Context Protocol client that supports running Java applications over stdio.