current_by_zip

Pack: airnow · Endpoint: https://gateway.pipeworx.io/airnow/mcp

Latest observed AQI for a US ZIP code. Returns one record per pollutant reported at the nearest site (typically O3 + PM2.5). Includes AQI value, category (Good / Moderate / etc.), reporting area, and timestamp.

Parameters

NameTypeRequiredDescription
zip_codestringyesUS 5-digit ZIP code
distance_milesnumbernoSearch radius (default 25, max 250)

Example call

curl -X POST https://gateway.pipeworx.io/airnow/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"current_by_zip","arguments":{}}}'

Response shape

Always returns: zip_code, count, observations

FieldTypeDescription
zip_codestringUS 5-digit ZIP code queried
countintegerNumber of observations returned
observationsarrayLatest AQI observations for pollutants at nearest site
Full JSON Schema
{
  "type": "object",
  "properties": {
    "zip_code": {
      "type": "string",
      "description": "US 5-digit ZIP code queried"
    },
    "count": {
      "type": "integer",
      "description": "Number of observations returned"
    },
    "observations": {
      "type": "array",
      "description": "Latest AQI observations for pollutants at nearest site",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": [
              "string",
              "null"
            ],
            "description": "Date observed (YYYY-MM-DD)"
          },
          "hour": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Hour observed (0-23)"
          },
          "timezone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Local time zone"
          },
          "reporting_area": {
            "type": [
              "string",
              "null"
            ],
            "description": "Geographic area name"
          },
          "state": {
            "type": [
              "string",
              "null"
            ],
            "description": "State code"
          },
          "latitude": {
            "type": [
              "number",
              "null"
            ],
            "description": "Site latitude"
          },
          "longitude": {
            "type": [
              "number",
              "null"
            ],
            "description": "Site longitude"
          },
          "pollutant": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pollutant name (e.g., O3, PM2.5)"
          },
          "aqi": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Air Quality Index value"
          },
          "category": {
            "type": [
              "string",
              "null"
            ],
            "description": "AQI category (Good, Moderate, etc.)"
          },
          "category_number": {
            "type": [
              "integer",
              "null"
            ],
            "description": "AQI category numeric code"
          }
        }
      }
    }
  },
  "required": [
    "zip_code",
    "count",
    "observations"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "airnow": {
      "url": "https://gateway.pipeworx.io/airnow/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 21, 2026