Weather MCP Server logo

Weather MCP Server

by JackKuo666

The Weather MCP Server provides weather information using the National Weather Service (NWS) API. It allows users to retrieve weather alerts and forecasts for specific locations.

View on GitHub

Last updated: N/A

What is Weather MCP Server?

The Weather MCP Server is a Model Context Protocol (MCP) server that interfaces with the National Weather Service (NWS) API to provide weather-related information.

How to use Weather MCP Server?

To use the server, first install the required dependencies and configure the config.py file. You can run the server standalone or integrate it with Cline. When using Cline, you can call the get_alerts and get_forecast tools with the appropriate parameters (state code, latitude, and longitude).

Key features of Weather MCP Server

  • Get weather alerts for a US state

  • Get weather forecast for a specific location (latitude and longitude)

  • Configuration via config.py

  • Error handling and logging

Use cases of Weather MCP Server

  • Displaying weather alerts on a dashboard

  • Providing weather forecasts in a chatbot application

  • Integrating weather data into a smart home system

  • Automating weather-related tasks

FAQ from Weather MCP Server

What is the NWS API?

The National Weather Service (NWS) API is a service that provides access to weather data from the NWS.

What is MCP?

MCP stands for Model Context Protocol. It is a protocol for communication between different services or tools.

How do I configure the server?

You can configure the server by modifying the settings in the config.py file.

What dependencies are required?

The server requires Python 3.10+, FastMCP, and httpx.

How do I run the unit tests?

You can run the unit tests using the command python -m unittest test_weather.py.