get_aqi_by_city
Pack: waqi · Endpoint: https://gateway.pipeworx.io/waqi/mcp
Real-time AQI for a city. Returns AQI value, dominant pollutant, individual pollutant readings (PM2.5, PM10, O3, NO2, SO2, CO), temperature/humidity/pressure, and station info.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
city | string | yes | City name (e.g., “beijing”, “los-angeles”, “new-delhi”) |
Example call
curl -X POST https://gateway.pipeworx.io/waqi/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_aqi_by_city","arguments":{}}}'
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"waqi": {
"url": "https://gateway.pipeworx.io/waqi/mcp"
}
}
}
See Getting Started for client-specific install steps.