Weather MCP Server logo

Weather MCP Server

by MCP-Mirror

The Weather MCP Server provides weather information using the National Weather Service (NWS) API. It allows users to retrieve weather alerts for a US state and weather 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 data.

How to use Weather MCP Server?

The server can be run standalone or integrated with Cline. Standalone usage requires Python 3.10+, FastMCP, and httpx. Cline integration allows access to weather data through the 'weather' tool with functions like get_alerts and get_forecast.

Key features of Weather MCP Server

  • Get weather alerts for a US state

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

  • Configuration via config.py

  • Error handling and logging

  • Unit tests

Use cases of Weather MCP Server

  • Displaying weather alerts for a specific region

  • Providing weather forecasts for a given location

  • Integrating weather data into other applications using MCP

  • Automated weather monitoring and reporting

FAQ from Weather MCP Server

What is the purpose of this server?

To provide weather information using the National Weather Service (NWS) API.

What are the requirements to run this server?

Python 3.10+, FastMCP, and httpx.

How do I install the required packages?

Use uv add "mcp[cli]" httpx.

How do I configure the server?

Modify the settings in the config.py file.

How do I run the server standalone?

Activate the virtual environment and run python weather.py.