weather-mcp-server

weather-mcp-server

0

The Weather CLI App is a tool for fetching weather alerts and forecasts using the National Weather Service API. It functions as an MCP server for integration with AI assistants, offering tools to get alerts by state and forecasts by location coordinates.

Weather CLI App

A simple application to fetch weather alerts and forecasts from the National Weather Service API using Model Context Protocol (MCP).

Features

  • Get active weather alerts for any US state
  • Get weather forecasts for any location by coordinates
  • MCP server implementation for integration with AI assistants

Installation

  1. Ensure you have Python 3.11 or higher installed
  2. Clone this repository
  3. Install the package with pip

Usage as an MCP Server

Once installed, the weather MCP server can be accessed by AI assistants that support the Model Context Protocol. The server provides two main tools: get weather alerts using get_alerts and weather forecasts with get_forecast.

Development

This project uses httpx for asynchronous HTTP requests and MCP server tools for structured data handling.

Troubleshooting

If you encounter errors, ensure proper package installation and Python environment setup. Manually run the server for additional error output.