Labsco
MCP SERVER

Weather Service MCP Server

by Ahmed-Naseer-01

US forecasts and state weather alerts from the National Weather Service, served by a Spring Boot MCP server for Cursor.

Weather & Environmental Conditions
Summary
US only, and it says so.

The limitations section is the most useful part of the README: this reads the National Weather Service, so locations outside the United States are out of scope and the temperatures are Fahrenheit. Inside that boundary it needs no key at all, which makes it a short path to real forecast data in an editor.

What it is

A Spring Boot weather service exposed over MCP. It reads the U.S. National Weather Service API and answers two kinds of question: a detailed forecast for a latitude and longitude, and the active alerts for a US state.

What you get
  • A detailed forecast for a given latitude and longitude, including temperature, wind and the narrative forecast text
  • Active weather alerts for a US state
  • Errors handled for invalid locations rather than returned as empty results
  • A stdio server started by the client, with `-Dspring.ai.mcp.server.stdio=true` on the java command
Requirements

Java 21 or higher and Maven 3.6 or higher. Build with `./mvnw clean package -DskipTests`, then register it in `~/.cursor/mcp.json` as a `java -jar` command against the built `Weather-server-0.0.1-SNAPSHOT.jar`. No API key — the National Weather Service API is public. Coverage is US-only by construction: alerts are per US state, and temperatures come back in Fahrenheit.