Weather MCP Server

Weather MCP Server

0
0 Reviews
0 Stars
The Weather MCP Server module retrieves real-time weather data, including alerts and forecasts, from the National Weather Service API. It offers tools to get active weather alerts for US states and short-term weather forecasts based on geographic coordinates, helping developers integrate weather information into their systems.
Added on:
Created by:
Apr 15 2025
Weather MCP Server
Ads

What is Weather MCP Server?

This MCP server is designed for weather data retrieval by integrating with the National Weather Service API. It provides two main tools: 'get_alerts' for fetching active weather alerts for specified US states using their two-letter codes, and 'get_forecast' for obtaining short-term weather forecasts based on latitude and longitude. It is suitable for applications like weather alert systems, travel planning apps, or any system requiring up-to-date meteorological data. The server is built with Python 3.7+ and relies on the MCP framework, utilizing httpx for HTTP requests. It is configured via JSON and can be run using uv, making it adaptable for different deployment environments.

Who will use Weather MCP Server?

  • Developers building weather applications
  • Emergency alert systems
  • Travel and outdoor activity planners
  • Smart home weather integrations

How to use the Weather MCP Server?

  • Step1: Install dependencies using 'uv add mcp[cli] httpx requests'
  • Step2: Configure your client with the correct 'config.json' specifying the server path
  • Step3: Run the server using 'uv run weather.py'
  • Step4: Use the provided tools 'get_alerts' and 'get_forecast' in your application to fetch weather data

FAQs of Weather MCP Server

Developer