Weather-MCP-Server
The Weather MCP Server is a tool that provides weather information using the National Weather Service API. It offers features to get weather alerts and forecasts for specific locations and can be run standalone or integrated into the Cline platform.
Weather MCP Server
This is a Model Context Protocol (MCP) server that provides weather information using the National Weather Service (NWS) API.
Features
- Get weather alerts for a US state
- Get weather forecast for a specific location
Requirements
- Python 3.10+
- FastMCP
- httpx
Configuration
The server uses a configuration file config.py
with customizable settings including NWS_API_BASE
, USER_AGENT
, LOG_LEVEL
, LOG_FORMAT
, and REQUEST_TIMEOUT
.
Usage
The server can run standalone or within Cline, offering tools to get weather alerts and forecasts when integrated.
Error Handling and Logging
Improved error handling and logging included, with logs configurable by level and format.
Testing
Includes unit and manual tests for the get_alerts
and get_forecast
tools.