Weather MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Weather MCP Server What's the weather forecast for Denver?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Weather MCP Server
A Model Context Protocol (MCP) server built with FastMCP that provides US weather forecasts and active alerts using the National Weather Service (NWS) API.
Features (Tools Provided)
When connected to an AI assistant, it provides the following tools:
get_alerts(state: str): Fetches active weather alerts for a US state (e.g. "CA", "NY").get_forecast(latitude: float, longitude: float): Fetches detailed weather forecasts for a specific geographic coordinate.
Related MCP server: MCP Weather Server
Project Structure
weather.py: The main FastMCP server containing the API calls and tool definitions..venv/: The Python virtual environment for isolated dependencies.pyproject.toml/main.py: Other configuration and entry point scripts.
Installation & Setup
Make sure you are using the virtual environment:
source .venv/bin/activateRequired packages are likely already installed, but if not:
pip install "mcp[cli]" httpx
Testing Locally
You can test the MCP tools locally through a web interface using the MCP Inspector:
npx @modelcontextprotocol/inspector "/Users/name/mcp servers/.venv/bin/python" "/Users/name/mcp servers/weather.py"Connecting to AI Clients (e.g., Claude Desktop)
To use this server with Claude Desktop, add the following to your claude_desktop_config.json file:
{
"mcpServers": {
"weather": {
"command": "/Users/name/mcp servers/.venv/bin/python",
"args": [
"/Users/name/mcp servers/weather.py"
]
}
}
}Restart Claude and it will now have access to live formatting and tracking for US weather!
Available Tools
2 toolsget_alertsA
Get weather alerts for a US state.
Args: state: Two-letter US state code (e.g. CA, NY)
Inputs: state (required). Returns: result
get_forecastC
Get weather forecast for a location.
Args: latitude: Latitude of the location longitude: Longitude of the location
Inputs: latitude (required), longitude (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools serve entirely different purposes: one for alerts by state, another for forecast by coordinates. No overlap or confusion possible.
Both tools follow a consistent verb_noun pattern (get_alerts, get_forecast), making it easy to predict naming.
With only 2 tools, the server feels thin compared to typical weather API capabilities. It's borderline but not excessive given its narrow scope.
The server lacks common weather operations like current conditions, hourly forecast, or historical data. Significant gaps exist for a comprehensive weather service.
Maintenance
Related MCP Connectors
Hosted MCP server for Xweather weather data: conditions, forecasts, alerts, and more.
An MCP server for weather information by @kulybaba
An MCP server for weather information by @kulybaba
MCP server for weather with reasoning — umbrella advice, outdoor checks, city comparisons.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceThis 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 (using latitude and longitude)-
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides tools to fetch weather alerts for US states and forecasts based on latitude/longitude coordinates using the US National Weather Service API.2102 npm1MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides current weather forecasts for specific locations and active weather alerts for US states.2ISC
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that provides real-time weather alerts and forecasts from the US National Weather Service.-