Weather MCP Server logo

Weather MCP Server

by aryankarn

A simple application to fetch weather alerts and forecasts from the National Weather Service API using Model Context Protocol (MCP). It allows AI assistants to access weather information.

View on GitHub

Last updated: N/A

What is Weather MCP Server?

This is an MCP server that provides weather alerts and forecasts from the National Weather Service (NWS) API. It allows AI assistants to retrieve weather information for specific locations or US states.

How to use Weather MCP Server?

Install the package using pip. Once installed, AI assistants that support the Model Context Protocol can access the server. The server provides two tools: get_alerts (for state-level alerts) and get_forecast (for coordinate-based forecasts).

Key features of Weather MCP Server

  • Get active weather alerts for any US state

  • Get weather forecasts for any location by coordinates

  • MCP server implementation for integration with AI assistants

  • Uses the National Weather Service API

Use cases of Weather MCP Server

  • Integrating weather information into AI assistant responses

  • Providing weather alerts to users based on their location

  • Generating weather forecasts for specific areas

  • Automating weather-related tasks

FAQ from Weather MCP Server

What API does this server use?

This server uses the National Weather Service (NWS) API.

Do I need an API key?

No, an API key is not required.

What are the main tools provided by the server?

The server provides get_alerts for state-level alerts and get_forecast for coordinate-based forecasts.

How do I install the server?

Clone the repository and install the package with pip: pip install -e .

What if I see spawn uv ENOENT errors?

Make sure you've installed the package with pip, not uv. Check that your Python environment is properly configured. Try running the server manually to see any additional stderr output: python -m weather