What is Weather MCP Server?
The Weather MCP Server is a Model Context Protocol server that allows you to retrieve US weather data from the National Weather Service (NWS) API. It provides tools for getting weather alerts and forecasts.
How to use Weather MCP Server?
The server can be installed via Smithery or manually by cloning the repository and installing dependencies. Once installed, the server can be run using python weather.py
. It provides two main tools: get_alerts(state: str)
to retrieve weather alerts for a state and get_forecast(latitude: float, longitude: float)
to retrieve a weather forecast for a specific location.
Key features of Weather MCP Server
Get weather alerts for any US state
Retrieve detailed weather forecasts by latitude and longitude
Structured logging with contextual information
Error handling and timeout management
Use cases of Weather MCP Server
Displaying weather alerts in a user interface
Providing weather forecasts to users based on their location
Integrating weather data into other applications
Automated weather monitoring
Contextual weather information for AI models
FAQ from Weather MCP Server
What is the Model Context Protocol (MCP)?
What is the Model Context Protocol (MCP)?
MCP is a protocol for building servers that provide contextual information to AI models.
What data does this server provide?
What data does this server provide?
This server provides weather alerts and forecasts for locations across the United States, sourced from the National Weather Service (NWS) API.
How do I install this server?
How do I install this server?
You can install it via Smithery or manually by cloning the repository and installing the required Python dependencies.
What are the dependencies?
What are the dependencies?
The server depends on httpx for making HTTP requests and mcp for building MCP servers.
How do I get weather alerts for a specific state?
How do I get weather alerts for a specific state?
Use the get_alerts(state: str)
tool, providing the two-letter state code as input (e.g., get_alerts(state='CA')
).