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

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
NameTypeDescription
latitudereqnumberLatitude of the location.
longitudereqnumberLongitude of the location.
▶Try it
get_forecastrequired: latitude, longitude

Get hourly air quality forecast for a location. Returns US AQI, PM2.5, and PM10 predictions. Use to plan activities or alert users to upcoming poor air conditions.

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");