weather
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 what's the weather in San Francisco?"
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.
mcp-python
A Model Context Protocol (MCP) server that exposes US weather data — via the National Weather Service API — as tools, resources, and prompts for MCP-compatible clients like Claude Desktop.
Features
Tools
get_alerts(state)— active weather alerts for a two-letter US state code (e.g.CA,NY)get_forecast(latitude, longitude)— forecast for the next 5 periods at a given location
Resources
weather://states— list of valid two-letter US state codesweather://alerts/{state}— alerts for any state, as a readable resourceStatic alert resources for
CA,NY,TX,FL(so they're attachable from Claude Desktop's picker, which only lists static resources)
Prompts
weather_briefing(state)— concise severe weather briefing for a statetrip_packing_advice(latitude, longitude)— packing advice based on the forecast for a location
Related MCP server: Context Weather
Requirements
Python >= 3.11
Setup
uv syncRunning the server
uv run weather.pyThe server communicates over stdio, so it's meant to be launched by an MCP client rather than run standalone.
Using with Claude Desktop
Add to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"weather": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/mcp-python",
"run",
"weather.py"
]
}
}
}Restart Claude Desktop and the weather tools, resources, and prompts will be available.
Project structure
weather.py— the MCP server (tools, resources, prompts)main.py— placeholder entrypoint from the project templatepyproject.toml/uv.lock— dependencies, managed withuv
Available Tools
2 toolsget_alertsB
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 are clearly distinct: get_alerts handles weather alerts for a US state, while get_forecast provides forecasts for specific coordinates. There is no ambiguity about which tool to use for which purpose.
Both tools follow a consistent verb_noun pattern (get_alerts, get_forecast) using the same verb 'get' and snake_case convention. The naming is perfectly consistent.
With only 2 tools for a weather domain, the surface feels very thin. Weather servers typically need additional operations like current conditions, radar, air quality, or reverse geocoding to be genuinely useful.
The domain of weather covers more than alerts and forecasts. There are notable gaps: no current conditions, no historical data, no multi-day/hourly breakdown details, and no reverse geocoding for the coordinate-based forecast.
Maintenance
Related MCP Connectors
Official NWS forecasts and alerts, as one MCP tool through Apify
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
US NWS weather alerts and 5-day forecasts for AI agents. $0.01 per call.
Related MCP Servers
- FlicenseBqualityDmaintenanceIntegrates the US National Weather Service API with Claude Desktop to provide real-time weather conditions, forecasts, and detailed weather metrics for any US location through natural language queries.21-
- FlicenseAqualityDmaintenanceIntegrates the US National Weather Service API with Claude Desktop, enabling users to query current conditions and forecasts using natural language.2-
- AlicenseNot gradedqualityDmaintenanceEnables Claude to access real-time weather data via MCP, including forecasts and alerts for US locations.90 npmGPL 3.0
- FlicenseNot gradedqualityDmaintenanceEnables natural-language weather queries for U.S. states and coordinates, returning real-time alerts and forecasts from the National Weather Service API via MCP tools.-