Weather MCP Server
Overview
This repository contains an MCP (Model Context Protocol) server for accessing US weather data from the National Weather Service (NWS) API. The server provides tools to fetch weather alerts and forecasts for locations across the United States.
Features
- Get weather alerts for any US state using two-letter state codes
- Retrieve detailed weather forecasts by latitude and longitude
- Structured logging with contextual information
- Error handling and timeout management
Installation
Installing via Smithery
To install mcp-weather-server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @asifdotpy/mcp-weather-server --client claude
Manual Installation
# Clone the repository
git clone <repository-url>
# Navigate to the directory
cd weather
# Install dependencies (requires Python 3.11+)
pip install -e .
Dependencies
- httpx: For making asynchronous HTTP requests
- mcp: Model Context Protocol library for building MCP servers
Usage
The server provides two main tools:
Get Weather Alerts
get_alerts(state: str) -> str
state: Two-letter US state code (e.g., CA, NY)- Returns formatted weather alerts for the specified state
Get Weather Forecast
get_forecast(latitude: float, longitude: float) -> str
latitude: Latitude of the locationlongitude: Longitude of the location- Returns a 5-period weather forecast for the specified coordinates
Running the Server
python weather.py
The server runs over stdio, making it compatible with MCP clients.
Development
- Set the
ENVenvironment variable to “production” for JSON-formatted logs - Configure logging level with the
LOG_LEVELenvironment variable
License
[Specify your license here]
Weather MCP Server
Project Details
- asifdotpy/MCP-Weather-Server
- Last Updated: 3/28/2025
Recomended MCP Servers
:cn: GitHub中文排行榜,各语言分设「软件 | 资料」榜单,精准定位中文好项目。各取所需,高效学习。
MCP server providing sementic search over Obsidian vaults
A Model Context Protocol (MCP) server implementation that provides database capabilities for Chroma
This is a personal project to determine whether or not Claude 3.5 Sonnet can write moderately complex MCP...
Model Context Protocol (MCP) server implementation for Autodesk Maya
Apache IoTDB
🤖 MCP Server for Substack integration with Claude AI Desktop. Download and parse Substack posts directly in your...
2-4 entity
A self-evolving Cursor MCP with comprehensive tools and analytics
Beancount MCP Server is an experimental implementation that utilizes the Model Context Protocol (MCP) to enable AI assistants...





