national-weather-service

national-weather-service

4.0

The National Weather Service MCP Server provides access to comprehensive national weather data, including current forecasts, historical data, and alerts.

The National Weather Service MCP Server is a robust platform designed to integrate seamlessly with applications, offering a comprehensive API for accessing a wealth of meteorological data. It provides detailed forecast data, real-time weather alerts, and station observations, all of which can be customized to suit specific needs. The server supports various data formats, including GeoJSON and JSON-LD, making it versatile for different applications. With tools for zone and point forecasts, active alerts, and station data retrieval, the server is an essential resource for developers looking to incorporate reliable weather information into their applications.

Features

  • Forecast Data: Obtain detailed forecast data for specific points or zones, including general and hourly forecasts.
  • Weather Alerts: Access real-time alerts for specific areas, regions, or zones, customizable by urgency, severity, and certainty.
  • Station Data: Retrieve metadata and observation data from weather stations, including current and historical records.
  • Product Information: Explore a variety of weather-related products, categorized by type and location.
  • GeoJSON and JSON-LD Support: Responses are typically provided in GeoJSON format, with options for JSON-LD and other formats.

MCP Tools

  • Zone Forecast: Get forecast data specific to a zone, targeting broader geographical areas.
  • Point Forecast: Access forecast data for specific geographical points, offering detailed weather insights.
  • Hourly Forecast: Retrieve hourly forecast data for a point, providing granular weather information.
  • Active Alerts by Zone: Access a list of active alerts for a specific zone.
  • Station Observations: Retrieve a list of observations from a specific weather station, including historical data.

Usage with Different Platforms

python

python
import requests

url = 'https://api.weather.gov/gridpoints/{office}/{gridX},{gridY}/forecast'
response = requests.get(url)
forecast_data = response.json()
print(forecast_data)

javascript

javascript
fetch('https://api.weather.gov/gridpoints/{office}/{gridX},{gridY}/forecast')
  .then(response => response.json())
  .then(data => console.log(data));