Weather MCP Server logo

Weather MCP Server

by jtwirly

A Model Context Protocol (MCP) server that provides weather information through Claude for Desktop. It integrates with the National Weather Service API to provide weather forecasts and alerts for US locations.

View on GitHub

Last updated: N/A

What is Weather MCP Server?

This is a Model Context Protocol (MCP) server designed to provide weather information to Claude for Desktop. It leverages the National Weather Service (NWS) API to fetch weather forecasts and alerts for locations within the United States.

How to use Weather MCP Server?

To use this server, you need to install the required dependencies, configure Claude for Desktop to connect to the server, and then start Claude. Once connected, you can ask Claude questions about the weather, such as 'What's the weather in Sacramento?' or 'What are the active weather alerts in Texas?'

Key features of Weather MCP Server

  • get_forecast: Get detailed weather forecasts for any US location using latitude and longitude

  • get_alerts: Retrieve active weather alerts for any US state using state code

  • Integration with National Weather Service API

  • Provides real-time weather data to Claude for Desktop

Use cases of Weather MCP Server

  • Getting weather forecasts for specific locations

  • Receiving alerts about severe weather conditions

  • Integrating weather information into Claude-based workflows

  • Providing weather updates to users through Claude

FAQ from Weather MCP Server

What is the Model Context Protocol (MCP)?

MCP is a protocol that allows applications like Claude to interact with external servers to retrieve information and perform actions.

What is Claude for Desktop?

Claude for Desktop is an application that utilizes the Model Context Protocol to enhance its capabilities.

What dependencies are required to run this server?

You need Python 3.10 or higher, the uv package manager, Claude for Desktop, and MCP SDK 1.2.0 or higher.

How do I configure Claude for Desktop to use this server?

You need to edit the claude_desktop_config.json file in Claude's application support directory and add a configuration for the 'weather' server, specifying the path to the uv executable and the project directory.

How do I troubleshoot issues with the server?

Check Claude's logs, ensure all paths in the configuration are absolute, verify the server runs independently, and check that port 8001 is not in use.