mcp-us-city-weather
The Weather MCP Server provides detailed weather forecasts for any city using the National Weather Service API, utilizing the Model-Completion-Protocol framework for modularity. It supports geocoding city names and fetches comprehensive weather data including temperature and wind information.
Weather MCP Server
This repository contains a weather information service built using the MCP (Model-Completion-Protocol) framework. The service provides weather forecasts for any city by leveraging the National Weather Service (NWS) API.
Features
- Geocode city names to latitude/longitude coordinates
- Fetch weather data from the National Weather Service API
- Get detailed weather forecasts including temperature, conditions, and wind information
- Modular design with separate tools for each step of the process
Available MCP Tool
- Get complete weather information for a city
Installation
We recommend using uv to manage your Python projects. Alternatively, use pip to install.
Usage
To test the MCP server locally, use mcp dev weather.py. To use this weather server with Claude Desktop, add the specific configuration to your Claude Desktop config. Replace directories with your own path.
Example
Once configured, you can ask questions like: "What's the weather in San Francisco?" and "How's the weather in New York City?"