Weather Service logo

Weather Service

by z3r0-m4n

A Python-based weather service built on the Model Context Protocol (MCP) that provides weather forecasts and alerts using the National Weather Service (NWS) API. It allows easy integration into MCP-compatible applications.

View on GitHub

Last updated: N/A

What is Weather Service?

This is an MCP server implemented in Python that provides weather forecasts and alerts using the National Weather Service (NWS) API and geocoding via OpenStreetMap's Nominatim service.

How to use Weather Service?

The service is accessed through MCP-compatible applications using the provided tool endpoints: get_weather_by_city, get_forecast, get_alerts, and get_coordinates. It runs as an MCP server over stdio transport.

Key features of Weather Service

  • Get weather forecasts by city and state

  • Get weather forecasts using coordinates

  • Get active weather alerts for any US state

  • Lookup coordinates for US cities

Use cases of Weather Service

  • Displaying weather information in a user interface

  • Triggering actions based on weather alerts

  • Providing weather data to other applications

  • Geocoding addresses for mapping applications

FAQ from Weather Service

What API does this use for weather data?

This service uses the National Weather Service (NWS) API for weather data.

What is MCP?

MCP stands for Model Context Protocol, a protocol for communication between applications.

How is the geocoding done?

OpenStreetMap's Nominatim service is used for geocoding.

What transport is used?

Runs as an MCP server over stdio transport

What is FastMCP?

This service is implemented as an MCP server using FastMCP, allowing it to be easily integrated into MCP-compatible applications.