About Weather Service
A Python and FastMCP weather server for users who need US weather data in MCP-compatible applications. It provides forecasts and alerts through the National Weather Service API, along with city coordinate lookup.
Key features
- 01Forecasts by US city
- 02Forecasts by coordinates
- 03Active alerts by state
- 04US city coordinate lookup
- 05Error handling and logging
Use cases
- 01Check a city's weather forecast
- 02Get a forecast from coordinates
- 03Review active weather alerts for a state
- 04Convert a US city to coordinates
MCP support
The service exposes weather forecast, alert, and coordinate lookup tools to MCP clients over stdio.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEWeather Service
A Python-based weather service built on the Model Context Protocol (MCP) that provides weather forecasts and alerts using the National Weather Service (NWS) API.
Features
- Get weather forecasts by city and state
- Get weather forecasts using coordinates
- Get active weather alerts for any US state
- Lookup coordinates for US cities
Overview
This service is implemented as an MCP server using FastMCP, allowing it to be easily integrated into MCP-compatible applications. It provides a clean interface for accessing weather data through well-defined tool endpoints.
Available MCP Tools
get_weather_by_city(city: str, state: str)
Get a detailed weather forecast for a specific US city and state.
get_forecast(location: str)
Get weather forecast for either a city/state combination or coordinates.
get_alerts(state: str)
Get active weather alerts for a US state.
get_coordinates(city: str, state: str)
Look up the latitude/longitude coordinates for a US city.
Technical Details
- Uses the National Weather Service (NWS) API for weather data
- Uses OpenStreetMap's Nominatim service for geocoding
- Implements proper error handling and logging
- Runs as an MCP server over stdio transport
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.