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

NameTypeRequiredDescription
paramstringyesPollutant parameter code(s), comma-separated, max 5. e.g. “44201” (ozone), “88101” (PM2.5), “42401” (SO2), “14129” (lead)
bdatestringyesStart date YYYY-MM-DD (converted to the AQS YYYYMMDD form for you)
edatestringyesEnd date YYYY-MM-DD — must be in the SAME calendar year as bdate
bystringnoGeography: “state” (default), “county”, “site”, “cbsa”, “box”
statestringnoTwo-digit state FIPS — required for by=state/county/site
countystringnoThree-digit county FIPS — required for by=county/site
sitestringnoFour-digit site number — required for by=site
cbsastringnoFive-digit CBSA code — required for by=cbsa
bboxstringnoFor by=box: “minLon,minLat,maxLon,maxLat”
limitnumbernoMax sample rows to return (default 200, max 2000)
emailstringnoThe email the AQS key was issued to, if not folded into _apiKey
_apiKeystringnoEPA AQS credential as ”:”, or just "" with email= set. Register at https://aqs.epa.gov/data/api/signup?email=

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.

Regenerated from source · build September 18, 2026