Weather MCP Server logo

Weather MCP Server

by matrupriya2048

This MCP server fetches weather data from the National Weather Service API. It provides tools to retrieve weather alerts and forecasts.

View on GitHub

Last updated: N/A

What is Weather MCP Server?

The Weather MCP Server is a server that retrieves weather data from the National Weather Service API. It provides functionalities to get weather alerts for a specific US state and short-term weather forecasts for a given location.

How to use Weather MCP Server?

To use the server, first install the required dependencies (httpx and mcp[cli]) using uv add mcp[cli] httpx requests. Then, run the server using uv run weather.py. Configure your MCP client by adding a configuration snippet to your config.json file, specifying the command and arguments to execute the server.

Key features of Weather MCP Server

  • Fetches weather data from the National Weather Service API

  • Provides weather alerts for a given US state

  • Provides short-term weather forecasts for a specified location

  • Uses standard I/O for communication

Use cases of Weather MCP Server

  • Displaying weather alerts on a dashboard

  • Providing weather forecasts to users based on their location

  • Integrating weather data into other applications

  • Automated weather monitoring and reporting

FAQ from Weather MCP Server

What is the minimum Python version required?

Python 3.7 or higher is required.

What dependencies are needed to run the server?

The server requires httpx and mcp[cli].

How do I install the dependencies?

Use the command uv add mcp[cli] httpx requests.

How do I run the server?

Use the command uv run weather.py.

How do I configure my MCP client to use this server?

Add a configuration snippet to your config.json file, specifying the command and arguments to execute the server. Refer to the README for an example configuration.