WeatherMCP
Provides access to US National Weather Service (NWS) data, allowing retrieval of weather alerts by state and weather forecasts for specific coordinates.
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., "@WeatherMCP get alerts for California"
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.
WeatherMCP
This project is an MCP server built as a hands-on exercise. It provides weather data and alerts from the US National Weather Service (NWS) via a simple API using the FastMCP framework.
Features
Weather Alerts: Get active weather alerts for any US state.
Forecast: Retrieve weather forecasts for a specific latitude and longitude.
Related MCP server: Weather MCP Server
Requirements
Python 3.8+
uv (for dependency management and running)
Installation
Install dependencies using uv:
uv pip install -r requirements.txtOr, if you use
pyproject.toml:uv pip install -r pyproject.toml(Optional) Create a virtual environment:
uv venv .venv source .venv/bin/activate
Running the MCP Server
To start the server using uv:
uv pip install -e . # if you want to install as editable, or just ensure dependencies are installed
uv python weather.pyThe server will start and listen for MCP requests via stdio.
Available Tools
1. get_alerts(state: str)
Description: Get active weather alerts for a US state.
Argument:
state— Two-letter US state code (e.g.,CA,NY).Returns: Formatted string of current alerts or a message if none are found.
2. get_forecast(latitude: float, longitude: float)
Description: Get weather forecast for a specific location.
Arguments:
latitude— Latitude of the location (float)longitude— Longitude of the location (float)
Returns: Formatted string with the next 5 forecast periods.
Notes
This project is for educational and hands-on purposes.
Data is sourced from the National Weather Service API.
Feel free to extend or modify the project for your own experiments!
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).
get_forecastB
Get weather forecast for a location.
Args:
latitude: Latitude of the location
longitude: Longitude of the location
Inputs: latitude (required), longitude (required).
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 have clearly distinct purposes: get_alerts retrieves weather alerts for US states, while get_forecast provides forecasts for geographic coordinates. There is no overlap in functionality or ambiguity between them.
Both tools follow a consistent verb_noun naming pattern (get_alerts, get_forecast) with identical verb usage and snake_case formatting. The naming is perfectly predictable and uniform.
With only 2 tools, this server feels thin for a weather domain. It lacks basic operations like current conditions, historical data, or broader geographic coverage, making it insufficient for comprehensive weather-related tasks.
The tool surface is severely incomplete for weather functionality. It misses core operations such as current weather, historical data, multi-day forecasts, or international coverage, leaving significant gaps that will limit agent effectiveness.
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
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides weather information like forecasts and alerts for US locations using the National Weather Service API.5MIT
- FlicenseBqualityDmaintenanceAn MCP server that provides weather information and alerts for US locations using the National Weather Service API, enabling retrieval of weather forecasts and active weather alerts.2-
- AlicenseBqualityDmaintenanceMCP server that integrates the National Weather Service API to fetch weather alerts for US states and forecasts for coordinates.28 npm1MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides weather alerts and forecasts for US locations using the National Weather Service API.95 npmMIT