MCP Weather logo

MCP Weather

by jpan8866

MCP Weather is a weather information service built with the Model Control Protocol (MCP) framework. It provides access to National Weather Service (NWS) data, allowing AI assistants to access real-time weather information.

View on GitHub

Last updated: N/A

What is MCP Weather?

MCP Weather is a Python application that serves as an MCP tool, allowing AI assistants to access real-time weather information from the National Weather Service API. It provides functionalities to retrieve weather alerts and forecasts.

How to use MCP Weather?

To use MCP Weather, first clone the repository and install the required dependencies, including httpx and mcp[cli]. Run the server using uv run weather.py. Once running, the tool can be accessed through the MCP framework to get weather alerts by state or forecasts by latitude and longitude.

Key features of MCP Weather

  • Retrieve active weather alerts by US state code

  • Get detailed weather forecasts for specific locations

  • Clean, formatted output for easy reading

  • Built as an MCP tool for seamless integration with AI assistants

Use cases of MCP Weather

  • AI assistant integration for weather information

  • Providing weather alerts to users based on location

  • Generating weather forecasts for specific areas

  • Automated weather data retrieval for applications

FAQ from MCP Weather

What data source does MCP Weather use?

MCP Weather uses the National Weather Service API to fetch weather data.

What are the main functionalities of MCP Weather?

The service provides two main functionalities: getting active weather alerts for any US state and getting detailed weather forecasts for any location in the US by latitude and longitude.

What are the requirements to run MCP Weather?

You need Python 3.13 or higher, httpx, and mcp[cli] dependencies.

How do I run MCP Weather as an MCP service?

Run uv run weather.py to test the server. To make the tool available, use PATH/uv --directory ABSOLUTE_PATH/mcp-weather run weather.py.

How can I contribute to MCP Weather?

Contributions are welcome! Please feel free to submit a Pull Request.