Air Quality

live Environment

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

2 tools
0ms auth
free tier 50 calls/day

Tools

get_air_quality required: latitude, longitude

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

Parameters
Name Type Description
latitude req number Latitude of the location.
longitude req number Longitude of the location.
Try it
get_forecast required: latitude, longitude

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

Parameters
Name Type Description
latitude req number Latitude of the location.
longitude req number Longitude of the location.
days opt number Number 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");