EPA AirNow

liveEnvironmentHealthGovernment

Official US real-time + forecast AQI. >2,000 monitoring sites.

4tools
0msauth
free tier50 calls/day

Tools

current_by_ziprequired: zip_code

Latest observed air quality index (AQI) for the EPA AirNow reporting area nearest a US ZIP code: one row per pollutant (ozone, PM2.5, PM10) with the AQI value, category (Good / Moderate / Unhealthy …)

Parameters
NameTypeDescription
zip_codereqstringUS ZIP
distance_milesoptnumberSearch radius (default 25)
▶Try it
current_by_locationrequired: latitude, longitude

Latest observed air quality index (AQI) for the EPA AirNow reporting area nearest a latitude/longitude in the US: one row per pollutant with AQI value, category, observation hour, agency and yesterday

Parameters
NameTypeDescription
latitudereqnumberLatitude
longitudereqnumberLongitude
distance_milesoptnumberSearch radius
▶Try it
forecast_by_ziprequired: zip_code

EPA AirNow air quality (AQI) forecast for a US ZIP code — today and up to three days ahead, per pollutant, with the forecast category, Action Day flag and the forecaster's discussion text. Pass a date

Parameters
NameTypeDescription
zip_codereqstringUS ZIP
dateoptstringYYYY-MM-DD
distance_milesoptnumberSearch radius
▶Try it
observations_in_bboxrequired: bbox, start_date, end_date

Hourly EPA AirNow monitoring-site observations inside a bounding box for a span of UTC hours (max 24 hours per call): per site and hour, the AQI for ozone, PM2.5, PM10 and NO2 and the measured concent

Parameters
NameTypeDescription
bboxreqstringminLon,minLat,maxLon,maxLat
start_datereqstringYYYY-MM-DDT00
end_datereqstringYYYY-MM-DDT23
parametersoptstringComma-sep pollutants
data_typeoptstringA | C | B
verboseoptbooleanInclude site/county fields
▶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/airnow/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/airnow/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"current_by_zip","arguments":{"zip_code": "example"}}}'

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("current_by_zip", {"zip_code":"example"});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("official us real-time + forecast aqi");