Air Quality

liveEnvironmentClimateWeather

Current air quality conditions and hourly forecasts from the Open-Meteo Air Quality API

2tools
0msauth
free tier50 calls/day

Tools

get_air_qualityrequired: latitude, longitude

Get current air quality conditions for a location. Returns US AQI, PM2.5, PM10, carbon monoxide, nitrogen dioxide, and ozone levels.

Parameters
NameTypeDescription
latitudereqnumberLatitude of the location.
longitudereqnumberLongitude of the location.
Try it
get_forecastrequired: latitude, longitude

Get an hourly air quality forecast for a location. Returns US AQI, PM2.5, and PM10 per hour.

Parameters
NameTypeDescription
latitudereqnumberLatitude of the location.
longitudereqnumberLongitude of the location.
daysoptnumberNumber of forecast days (1-7, default 3).
Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/airquality/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/airquality/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_air_quality","arguments":{"latitude": 37.7749, "longitude": -122.4194}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("get_air_quality", {"latitude":"example","longitude":"example"});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("current air quality conditions and hourly forecasts from the open-meteo air quality api");