Weather MCP Server logo

Weather MCP Server

by ankushmehta123

The Weather MCP Server allows AI assistants like Claude to interact with the National Weather Service (NWS) API. It provides real-time weather alerts and forecasts for specified locations.

View on GitHub

Last updated: N/A

What is Weather MCP Server?

This is a Model Context Protocol (MCP) server that bridges the gap between AI assistants (like Claude) and the National Weather Service (NWS) API, enabling them to access real-time weather information.

How to use Weather MCP Server?

  1. Clone the repository. 2. Install dependencies using pip install -r requirements.txt. 3. Configure the MCP server in your claude_desktop_config.json file. 4. Run main.py. 5. Open Claude Desktop and you will see 2 MCP tools available to ask real-time weather-related questions.

Key features of Weather MCP Server

  • Retrieve active weather alerts for a given US state.

  • Fetch weather forecasts for a specified latitude and longitude.

  • Implements the FastMCP framework to expose tools for AI interaction.

  • Asynchronous HTTP requests using httpx

Use cases of Weather MCP Server

  • AI assistant providing weather updates to users.

  • Automated weather alert notifications.

  • Integrating weather data into AI-powered applications.

  • Providing context-aware weather information to AI models.

FAQ from Weather MCP Server

What is FastMCP?

FastMCP is a framework used to expose tools for AI interaction.

What is the purpose of this server?

To allow AI assistants to access real-time weather information from the NWS API.

What dependencies are required?

Python, uv package manager, httpx, fastmcp, and Claude Desktop app

How do I configure the server?

By adding the MCP server configuration to your claude_desktop_config.json file.

Where can I find the available API tools?

Open Claude Desktop, you would see: 2 MCP tools available (at right-side of the search-bar)