au-weather-mcp

v0.4.10
io.ausdata/au-weather-mcp Checked 3 days ago Published 3 months ago

Query Australian weather + air quality — forecasts, current obs, 80yr archive (BOM).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_locations

Fuzzy-search the 45 curated Australian locations. The curated set covers all 8 state/territory capitals plus 37 major regional centres (every AU population centre over ~25k). Anything outside the curated set still resolves via place-name geocoding or postcode lookup — see `list_curated()` for the full set. Examples: results = await search_locations("sydney") # → [{id: 'sydney', name: 'Sydney', state: 'NSW', ...}] results = await search_locations("nsw") # → Newcastle, Wollongong, Sydney (all NSW locations) When to use: - Discover the location ID for a city you know…

ParameterTypeDescription
query *stringFree-text search query. Matches against location IDs, names, and state codes. Case-insensitive.
limitintegerMaximum number of results to return, ranked by relevance.

describe_location

Return metadata for an Australian location — name, lat/lng, timezone, elevation, and (for curated locations) the nearest BOM station ID. Accepts a wide range of input shapes for compatibility — see the `location` parameter description. The returned `id` is None for non-curated lookups (geocoded place names, raw coordinates) and a snake_case curated key when the input matched the curated set. Examples: await describe_location("sydney") # → curated path await describe_location("Sydney") # → curated path (case-insensitive) await describe_location("NSW")…

ParameterTypeDescription
location *stringAny Australian location, in any of these shapes: (1) curated ID like 'sydney', 'gold_coast'; (2) place name in any case like 'Sydney', 'Gold Coast', 'Margaret River', 'Byron Bay'; (3) state code or na…

latest

Return the current weather observation for any Australian location. Wraps Open-Meteo's `/forecast` endpoint with `current=...` parameters and a 15-minute cache TTL (matches Open-Meteo's own update cadence). Use for "what's the weather right now?" — warm-cache latency < 100 ms. Examples: resp = await latest("sydney") # curated, fast path resp = await latest("Sydney") # case-insensitive resp = await latest("Byron Bay") # geocoded resp = await latest("NSW") # state → Sydney resp = await latest("-33.87,151.21")…

ParameterTypeDescription
location *stringAny Australian location. Accepted shapes: curated ID ('sydney'), place name in any case ('Sydney', 'Byron Bay', 'Margaret River'), state code or name ('NSW', 'Queensland' → returns the capital), or…

get_weather

Query weather over a date range. Routes to historical archive or forecast endpoint automatically based on the date range. Routing logic: - end_date in the past (>= 5 days ago) → historical archive (1940+) - start_date in the future → forecast (today + 16 days max) - range straddles today → forecast with past_days set Examples: # Historical: how was Sydney summer 2020? resp = await get_weather( "sydney", start_date="2020-01-01", end_date="2020-01-31", granularity="daily", ) # → 31 DailyAggregate rows with temp_max, temp_min,…

ParameterTypeDescription
location *stringAny Australian location. Same accepted shapes as latest(): curated ID, place name (any case), state code/name, or raw 'lat,lng' coordinates.
end_dateInclusive end date in 'YYYY-MM-DD' format. Same range rules as start_date.
granularitystringTime resolution of the returned series. 'daily' (default) returns one row per day with max/min/sum aggregates. 'hourly' returns one row per hour with point observations — useful for intraday detail…
start_dateInclusive start date in 'YYYY-MM-DD' format. Open-Meteo's historical archive covers 1940-01-01 onwards (5-day lag). Forecast covers today through today + 16 days.

air_quality

Return current air-quality readings for any Australian location. Sourced from Open-Meteo's air-quality API, which merges Copernicus CAMS European + global air-composition models. Returns PM2.5, PM10, ozone, nitrogen dioxide, sulphur dioxide, carbon monoxide (all µg/m³), plus the European and US AQI indices with plain-English labels. Especially useful during AU bushfire season (Oct–Mar) when smoke can push PM2.5 above safe levels across whole regions. Examples: # Current Sydney air quality resp = await air_quality("sydney") # resp.current.pm2_5_ugm3 == 8.8 # resp.current.…

ParameterTypeDescription
location *stringAny Australian location. Same accepted shapes as latest(): curated ID, place name, state code/name, postcode, or 'lat,lng' coordinates.

compare_locations

Compare current weather across multiple Australian locations in one call. Fans out concurrently via asyncio.gather, so all locations come back in roughly the time of a single call (after the cache is warm). Each location is independently resolved (curated / state / postcode / geocode / etc.) and independently fetched. If one location fails (e.g. geocoder can't find it), that row gets an `error` field while the rest still return. Examples: # Capital-city dashboard resp = await compare_locations(["sydney","melbourne","brisbane","perth"]) for row in resp.locations: print(row…

ParameterTypeDescription
locations *arrayTwo to ten Australian locations to compare side-by-side. Each entry accepts the same shapes as latest(): curated ID, place name, state, postcode, or 'lat,lng'.

list_curated

List the 45 curated Australian location IDs supported by this MCP. The curated set covers all 8 state/territory capitals plus 37 major regional centres. Any Australian place name outside this set still works via the place-name geocoder; the curated entries just get fast-path lookup (no network call) and appear in `search_locations`. Coverage by state: - 8 capitals: sydney, melbourne, brisbane, perth, adelaide, hobart, darwin, canberra - NSW regional (10): newcastle, wollongong, tamworth, wagga_wagga, albury, orange, bathurst, dubbo, coffs_harbour, port_macquarie - VIC…