air_quality_near

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

Get the latest air-quality readings (PM2.5, PM10, O3, NO2, SO2, CO, etc.) at the monitoring station NEAREST to a latitude/longitude. PREFER for “air quality near me”, “what is the air quality at ”, “is the air bad in right now”. Returns the nearest station with its most recent pollutant values, plus other nearby stations.

Parameters

NameTypeRequiredDescription
latitudenumberyesLatitude in decimal degrees (e.g., 40.785).
longitudenumberyesLongitude in decimal degrees (e.g., -73.968).
radius_kmnumbernoSearch radius in km (default 12, max 25 — OpenAQ limit).
_apiKeystringnoOpenAQ API key (optional; the gateway supplies one).

Example call

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

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build June 25, 2026