get_air_quality
Pack: airquality · Endpoint: https://gateway.pipeworx.io/airquality/mcp
Check current air quality at a location (latitude/longitude or city name, e.g., “40.7128, -74.0060” or “New York”). Returns US AQI score, PM2.5, PM10, CO, NO2, and ozone levels.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
latitude | number | yes | Latitude of the location. |
longitude | number | yes | Longitude of the location. |
Example call
Arguments
{
"latitude": 40.7128,
"longitude": -74.006
}
curl
curl -X POST https://gateway.pipeworx.io/airquality/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_air_quality","arguments":{"latitude":40.7128,"longitude":-74.006}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_air_quality', {
"latitude": 40.7128,
"longitude": -74.006
});
More examples
{
"latitude": 34.0522,
"longitude": -118.2437
}
Response shape
Always returns: latitude, longitude, us_aqi, aqi_category, pm2_5_ug_m3, pm10_ug_m3, carbon_monoxide_ug_m3, nitrogen_dioxide_ug_m3, ozone_ug_m3
| Field | Type | Description |
|---|---|---|
latitude | number | Latitude of the location |
longitude | number | Longitude of the location |
us_aqi | number | US Air Quality Index score |
aqi_category | string | AQI category (Good, Moderate, Unhealthy, etc.) |
pm2_5_ug_m3 | number | PM2.5 concentration in micrograms per cubic meter |
pm10_ug_m3 | number | PM10 concentration in micrograms per cubic meter |
carbon_monoxide_ug_m3 | number | Carbon monoxide concentration in micrograms per cubic meter |
nitrogen_dioxide_ug_m3 | number | Nitrogen dioxide concentration in micrograms per cubic meter |
ozone_ug_m3 | number | Ozone concentration in micrograms per cubic meter |
Full JSON Schema
{
"type": "object",
"properties": {
"latitude": {
"type": "number",
"description": "Latitude of the location"
},
"longitude": {
"type": "number",
"description": "Longitude of the location"
},
"us_aqi": {
"type": "number",
"description": "US Air Quality Index score"
},
"aqi_category": {
"type": "string",
"description": "AQI category (Good, Moderate, Unhealthy, etc.)"
},
"pm2_5_ug_m3": {
"type": "number",
"description": "PM2.5 concentration in micrograms per cubic meter"
},
"pm10_ug_m3": {
"type": "number",
"description": "PM10 concentration in micrograms per cubic meter"
},
"carbon_monoxide_ug_m3": {
"type": "number",
"description": "Carbon monoxide concentration in micrograms per cubic meter"
},
"nitrogen_dioxide_ug_m3": {
"type": "number",
"description": "Nitrogen dioxide concentration in micrograms per cubic meter"
},
"ozone_ug_m3": {
"type": "number",
"description": "Ozone concentration in micrograms per cubic meter"
}
},
"required": [
"latitude",
"longitude",
"us_aqi",
"aqi_category",
"pm2_5_ug_m3",
"pm10_ug_m3",
"carbon_monoxide_ug_m3",
"nitrogen_dioxide_ug_m3",
"ozone_ug_m3"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"airquality": {
"url": "https://gateway.pipeworx.io/airquality/mcp"
}
}
}
See Getting Started for client-specific install steps.