Environment Canada Weather Alerts MCP Server
This server provides real-time Canadian weather alerts and warnings from Environment Canada, letting you search, summarize, and look up alerts by province, keyword, coordinates, or alert ID.
Search and filter alerts (
get_weather_alerts) by province/territory, alert type (warning, watch, advisory, statement), or keyword like "Toronto" or "blizzard", in English or French.Get a high-level breakdown (
get_alert_summary) of active alert counts (warnings, watches, advisories) nationally or for a specific province.Check alerts at a location (
get_alerts_near_coordinates) for any alerts intersecting a given latitude/longitude, e.g. Toronto at 43.6532, -79.3832.Retrieve full alert details (
get_alert_details) including text description and boundary polygon geometry for a specific feature ID.Use supporting extras from the README: live JSON resources (
weather-alerts://active,weather-alerts://summary,weather-alerts://province/{province}) and prompts for safety advice, daily briefings, and severe weather reports.
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., "@Environment Canada Weather Alerts MCP Server show me active weather alerts in Ontario right now"
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.
Environment Canada Weather Alerts MCP Server
A Model Context Protocol (MCP) server providing real-time weather alerts and warnings from the Environment Canada API (https://api.weather.gc.ca/collections/weather-alerts/items).
Features
Tools:
search_alerts: Search and filter weather alerts byfeature_id,alert_id, province, alert type, or keyword, with optional boundary geometry (include_geometry=True). Returns all concurrent alerts for a zone.get_alert_summary: View national and provincial alert counts (warnings, watches, advisories).get_alerts_near_coordinates: Check for weather alerts affecting a specific latitude and longitude.
Resources:
weather-alerts://active: Live JSON feed of active Canadian weather alerts.weather-alerts://summary: Executive summary statistics.weather-alerts://province/{province}: Province-filtered weather alert JSON streams (e.g.ON,BC,AB).
Prompts:
analyze_weather_safety: Generates emergency safety advice based on current weather warnings.daily_weather_alert_briefing: Generates concise daily weather risk briefings for target regions.severe_weather_report: Generates structured incident reports for severe weather events.
Related MCP server: Weather MCP Server
Running the MCP Server (Zero Setup)
With uv installed, there is no need to manually create a virtual environment or run pip install. uvx will automatically provision an isolated environment, resolve dependencies from pyproject.toml, and run the server:
# Run directly from the project directory:
uvx --from . environment-canada-mcp
# Or run from anywhere by specifying the absolute path:
uvx --from /path/to/MCP_wearther_alert environment-canada-mcpLocal Development / Contributing
If you are developing or modifying the code directly:
uv venv
uv pip install -e ".[dev]"Integration with MCP Clients
Add the server to your MCP client configuration. Because it uses uvx, dependencies install automatically in the background on first launch with zero upfront manual steps.
Note: Replace
/path/to/MCP_wearther_alertwith the actual absolute path to where you cloned this repository (e.g.C:/projects/MCP_wearther_alerton Windows or/home/user/MCP_wearther_alerton Linux/macOS).
Claude Desktop Configuration
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"environment-canada-weather": {
"command": "uvx",
"args": [
"--from",
"/path/to/MCP_wearther_alert",
"environment-canada-mcp"
]
}
}
}Cursor / Antigravity / VS Code Configuration
Add the following to your MCP settings:
{
"mcp": {
"servers": {
"environment-canada-weather": {
"command": "uvx",
"args": [
"--from",
"/path/to/MCP_wearther_alert",
"environment-canada-mcp"
]
}
}
}
}Available Tools
4 toolsget_alert_detailsA
Retrieves full details including text description and boundary geometry for a specific alert.
Args: feature_id: Unique feature ID or item ID of the weather alert. language: Output language ('en' or 'fr'). Default is 'en'.
Returns: JSON string containing detailed alert metadata and polygon geometry.
Inputs: feature_id (required), language. Returns: result
get_alerts_near_coordinatesA
Checks for weather alerts intersecting a specific latitude and longitude coordinate.
Args: latitude: Latitude in decimal degrees (e.g., 43.6532 for Toronto). longitude: Longitude in decimal degrees (e.g., -79.3832 for Toronto). language: Output language ('en' or 'fr'). Default is 'en'.
Returns: JSON string of alerts affecting the given coordinates. Each alert includes its 'status'.
Inputs: latitude (required), longitude (required), language. Returns: result
get_alert_summaryB
Gets an executive breakdown summary of active Canadian weather alerts.
Args: province: Optional two-letter province code to restrict summary (e.g. 'ON').
Returns: JSON string summarizing alert counts (warnings, watches, advisories) by province.
Inputs: province. Returns: result
get_weather_alertsA
Fetches real-time weather alerts from Environment Canada.
Args: province: Two-letter Canadian province/territory code (e.g. 'ON', 'BC', 'AB', 'QC', 'NS', 'NB', 'MB', 'SK', 'PE', 'NL', 'YT', 'NT', 'NU'). alert_type: Type of alert filter ('warning', 'watch', 'advisory', 'statement'). search_query: Optional keyword to search in location names or alert description (e.g., 'Toronto', 'blizzard', 'fog'). language: Language for names and description ('en' for English, 'fr' for French). Default is 'en'.
Returns: JSON formatted string containing matching weather alerts. Each alert includes its 'status' (e.g. 'active', 'ended').
Inputs: language, province, alert_type, search_query. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
The four tools split into clear roles: summary (aggregate), details (single alert), list/filter (by province/keyword), and spatial (coordinates). The only mild overlap is between get_weather_alerts and get_alerts_near_coordinates, since both return alert lists, but their inputs (province/filters vs lat/lon) distinguish them well.
All tools share a consistent 'get_' prefix and snake_case convention. Minor deviations exist in noun form ('alert' vs 'alerts', 'weather_alerts' vs 'alerts_near_coordinates'), but the pattern remains predictable.
Four tools is a reasonable, well-scoped set for a read-only weather-alert service covering aggregate, detail, list, and spatial views. It is slightly lean and could arguably support one or two more query modes, but nothing is redundant.
The domain is alert retrieval, and the surface covers the main access patterns: summary, per-alert detail, filtered listing, and coordinate lookup. As a read-only external data feed, no CRUD lifecycle is expected, so coverage is nearly complete with only minor gaps.
Maintenance
Related MCP Connectors
Active Environment Canada weather warnings for any Canadian postal code.
Official Canadian weather for 844 places: forecasts, conditions, alerts and air quality, EN and FR.
Official Environment Canada forecasts and current conditions for any Canadian postal code.
Get US weather forecasts, active and recent alerts, and current observations.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides access to National Weather Service (NWS) data, enabling users to retrieve active weather alerts for US states and weather forecasts for specific geographic coordinates.MIT
- AlicenseBqualityDmaintenanceProvides access to US National Weather Service data including active alerts by state and short-term forecasts for specific coordinates.2MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to access live weather data from Environment and Climate Change Canada via the GeoMet API.60 npmMIT
- FlicenseBqualityDmaintenanceProvides weather data including US alerts, US forecasts, and global 5-day forecasts without requiring any API keys.31-