EPA AirNow
liveEnvironmentHealthGovernmentOfficial US real-time + forecast AQI. >2,000 monitoring sites.
4tools
0msauth
free tier50 calls/day
Tools
current_by_ziprequired: zip_codeLatest AQI by US ZIP code.
Parameters
NameTypeDescription
zip_codereqstringUS ZIPdistance_milesoptnumberSearch radius (default 25)Try it
Response
current_by_locationrequired: latitude, longitudeLatest AQI nearest a lat/lon.
Parameters
NameTypeDescription
latitudereqnumberLatitudelongitudereqnumberLongitudedistance_milesoptnumberSearch radiusTry it
Response
forecast_by_ziprequired: zip_codeAQI forecast for a ZIP code.
Parameters
NameTypeDescription
zip_codereqstringUS ZIPdateoptstringYYYY-MM-DDdistance_milesoptnumberSearch radiusTry it
Response
observations_in_bboxrequired: bbox, start_date, end_dateHistorical AQI observations in a bounding box.
Parameters
NameTypeDescription
bboxreqstringminLon,minLat,maxLon,maxLatstart_datereqstringYYYY-MM-DDT00end_datereqstringYYYY-MM-DDT23parametersoptstringComma-sep pollutantsdata_typeoptstringA | C | BverboseoptbooleanInclude site/county fieldsTry it
Response
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");