MCP Weather Server logo

MCP Weather Server

by Samarth2001

A weather information tool that provides weather forecasts, alerts, and observations using the National Weather Service (NWS) API. It's built with FastMCP.

View on GitHub

Last updated: N/A

What is MCP Weather Server?

This is a weather server built with FastMCP that provides weather forecasts, alerts, and observations using the National Weather Service (NWS) API.

How to use MCP Weather Server?

Install the dependencies with pip install httpx mcp-server. The server utilizes the NWS API, which requires proper request attribution via User-Agent. Refer to the NWS API documentation for specific endpoint usage.

Key features of MCP Weather Server

  • Get Weather Alerts

  • Get Forecast

  • Get Hourly Forecast

  • Find Weather Stations

  • Get Observations

  • Get Point Metadata

  • Get Fire Weather

Use cases of MCP Weather Server

  • Displaying weather information on a website or application

  • Sending weather alerts to users

  • Analyzing weather data for research purposes

  • Providing weather forecasts for specific locations

FAQ from MCP Weather Server

Does this server require an API key?

No, this server does not require an API key for the National Weather Service (NWS) API.

What dependencies are required to run this server?

The server requires the httpx and mcp-server libraries. You can install them using pip install httpx mcp-server.

How do I attribute requests to the NWS API?

Proper request attribution via User-Agent is implemented. Refer to the NWS API documentation for details on how to set the User-Agent header.

What type of weather data can I retrieve?

You can retrieve weather alerts, daily and hourly forecasts, weather station locations, current weather conditions, point metadata, and fire weather forecasts.

Where can I find more information about the NWS API?

You can find more information about the NWS API at https://www.weather.gov/documentation/services-web-api.