Weather MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Weather MCP Server what's the forecast for 38.9, -77.0?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Weather MCP Server
A Model Context Protocol (MCP) server that provides weather forecasts and alerts for US locations using the National Weather Service (NWS) API.
Features
Weather Alerts — Retrieve active NWS weather alerts for any US state
Weather Forecast — Get a detailed forecast for any US location by latitude/longitude
Weather Briefing Prompt — A pre-built prompt that combines alerts and forecast into a comprehensive briefing
Related MCP server: Weather MCP Server
Prerequisites
Node.js v18 or later
An MCP-compatible client (e.g. Claude Desktop)
Note: The NWS API only supports locations within the United States.
Installation
npm install
npm run buildUsage
Run the server directly via stdio (the standard MCP transport):
node build/index.jsOr use the weather bin alias after a global/local install:
npx weatherIntegrating with Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"weather": {
"command": "node",
"args": ["/absolute/path/to/mcp-poc/build/index.js"]
}
}
}Tools
get_alerts
Retrieves active weather alerts for a US state.
Parameter | Type | Description |
| string | Two-letter state code (e.g. |
get_forecast
Retrieves the weather forecast for a specific US location.
Parameter | Type | Description |
| number | Latitude of the location (-90–90) |
| number | Longitude of the location (-180–180) |
Prompts
weather-briefing
Generates a comprehensive weather briefing for a US state.
Argument | Type | Description |
| string | Two-letter US state code (e.g. |
| string | Latitude of a location within the state for the forecast |
| string | Longitude of a location within the state for the forecast |
Development
# Build TypeScript
npm run build
# Source files
src/index.ts # MCP server, tools, and prompts
src/helpers.ts # NWS API client and shared typesLicense
ISC
Available Tools
2 toolsget_alertsB
Get weather alerts for a state
Inputs: state (required).
get_forecastB
Get weather forecast for a location
Inputs: latitude (required), longitude (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools serve completely distinct purposes: one for weather alerts and one for forecasts, making misselection unlikely.
Both tools follow the consistent verb_noun pattern using snake_case: get_alerts and get_forecast.
With only 2 tools, the server feels thin; weather services typically benefit from additional tools like current conditions or hourly forecasts.
The set covers alerts and forecasts but misses common weather operations such as current conditions, historical data, or location search.
Maintenance
Related MCP Connectors
Official NWS forecasts and alerts, as one MCP tool through Apify
US NWS weather alerts and 5-day forecasts for AI agents. $0.01 per call.
Get US weather forecasts, active and recent alerts, and current observations.
Hosted MCP server for Xweather weather data: conditions, forecasts, alerts, and more.
Related MCP Servers
- FlicenseBqualityDmaintenanceProvides weather forecast and alert information for US locations using the National Weather Service API. Enables users to get detailed weather forecasts by coordinates and retrieve active weather alerts by state.2-
- FlicenseBqualityCmaintenanceProvides weather forecast and alert information from the National Weather Service API, allowing users to query weather forecasts by coordinates and check weather alerts by state.2-
- FlicenseBqualityDmaintenanceProvides weather alerts for US states and forecasts for given coordinates via MCP tools.2-
- FlicenseNot gradedqualityDmaintenanceReal-time US weather data via MCP tools: fetch weather alerts by state and forecasts by coordinates using the NOAA NWS API.-