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
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
latitude | number | yes | Latitude in decimal degrees (e.g., 40.785). |
longitude | number | yes | Longitude in decimal degrees (e.g., -73.968). |
radius_km | number | no | Search radius in km (default 12, max 25 — OpenAQ limit). |
_apiKey | string | no | OpenAQ API key (optional; the gateway supplies one). |
Example call
Arguments
{
"latitude": 40.785,
"longitude": -73.968
}
curl
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":{"latitude":40.785,"longitude":-73.968}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('air_quality_near', {
"latitude": 40.785,
"longitude": -73.968
});
More examples
{
"latitude": 28.6139,
"longitude": 77.209,
"radius_km": 15
}
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.