MCP server exposing 4 tools for waqi.
This URL is a JSON-RPC 2.0 endpoint over HTTP. Issue POST requests with a JSON-RPC body. Browsers and search crawlers land here on GET.
POST https://gateway.pipeworx.io/waqi/mcp
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
get_aqi_by_city — Latest AQI for a city from the World Air Quality Index Project station network. Accepts "city" or "city, country" (e.g. "Rome, Italy"). The matched station is checked against the requested place: a station that is not plausibly in it (the upstream resolves "Venice" to Dayton, Ohio) is never served; the call errors naming what it matched and listing candidates, and the response carries a place block stating requested vs matched. Every reading carries measured_at, station identity, data_age_hours and freshness. A reading older than 24h is never returned as current: a reporting station within 100 km is used (station_selection=fallback_fresher_station; skipped_stale_station says what was passed over) or the call errors naming the station and its age. Returns AQI value, dominant pollutant, individual pollutant readings (PM2.5, PM10, O3, NO2, SO2, CO), temperature/humidity/pressure, and station info.get_aqi_by_location — Latest AQI for the WAQI station nearest a lat/lon. Carries measured_at, data_age_hours and freshness; a station silent for over 24h is replaced by a reporting one within 100 km or the call errors.get_aqi_by_station — Latest AQI for a specific WAQI station by UID (numeric). Returned as asked even if the station has gone quiet, so check freshness and data_age_hours (stale = over 24h).waqi_search_stations — Search stations by keyword (city/region name). Returns station UID, name, current AQI, and location.Code samples (curl / TypeScript / one-click client install), schemas, and the live playground are on the pack page:
https://pipeworx.io/packs/waqi/
Pipeworx is an open MCP gateway connecting AI agents to live data. pipeworx.io