aqs_sample_data
Pack: epa-aqs · Endpoint: https://gateway.pipeworx.io/epa-aqs/mcp
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/aqs_sample_data for the schema, then POST the same URL with its arguments for the data.
Raw measured air-pollutant sample values from EPA AQS for a date range — the regulatory record, by site, county, state or CBSA. AUTHORITATIVE for “what was the actual ozone/PM2.5/lead concentration here on these dates”; this is the quality-assured archive, not the provisional real-time AQI. Sourced from the EPA Air Quality System. Requires an EPA AQS email + key.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
param | string | yes | Pollutant parameter code(s), comma-separated, max 5. e.g. “44201” (ozone), “88101” (PM2.5), “42401” (SO2), “14129” (lead) |
bdate | string | yes | Start date YYYY-MM-DD (converted to the AQS YYYYMMDD form for you) |
edate | string | yes | End date YYYY-MM-DD — must be in the SAME calendar year as bdate |
by | string | no | Geography: “state” (default), “county”, “site”, “cbsa”, “box” |
state | string | no | Two-digit state FIPS — required for by=state/county/site |
county | string | no | Three-digit county FIPS — required for by=county/site |
site | string | no | Four-digit site number — required for by=site |
cbsa | string | no | Five-digit CBSA code — required for by=cbsa |
bbox | string | no | For by=box: “minLon,minLat,maxLon,maxLat” |
limit | number | no | Max sample rows to return (default 200, max 2000) |
email | string | no | The email the AQS key was issued to, if not folded into _apiKey |
_apiKey | string | no | EPA AQS credential as ” |
Example call
Arguments
{
"param": "44201",
"bdate": "2024-05-01",
"edate": "2024-05-01",
"by": "state",
"state": "37"
}
curl
curl -X POST https://gateway.pipeworx.io/epa-aqs/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"aqs_sample_data","arguments":{"param":"44201","bdate":"2024-05-01","edate":"2024-05-01","by":"state","state":"37"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('aqs_sample_data', {
"param": "44201",
"bdate": "2024-05-01",
"edate": "2024-05-01",
"by": "state",
"state": "37"
});
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"epa-aqs": {
"url": "https://gateway.pipeworx.io/epa-aqs/mcp"
}
}
}
See Getting Started for client-specific install steps.