find_stations

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

Find OpenAQ air-quality monitoring stations by location: a city or place name, coordinates+radius (nearest first), a country (ISO 3166-1 alpha-2 code), or a bounding box. Returns station id, name, country, coordinates, and the pollutants each measures (with sensor ids), plus resolved_place echoing the coordinates a city name resolved to. This is the first step for a historical series: find the station here, then pass its sensor_id to get_measurements. At least one location argument is required — the tool will not return an unfiltered global list.

Parameters

NameTypeRequiredDescription
citystringnoCity or place name, e.g. “Delhi”, “Los Angeles”, “Kraków”. Geocoded to coordinates, then searched by radius. Add the country for ambiguous names (“Cambridge, UK”).
latitudenumbernoLatitude for a radius search (use with longitude).
longitudenumbernoLongitude for a radius search (use with latitude).
radius_kmnumbernoRadius in km for a coordinate or city search (default 12, max 25).
countrystringnoISO 3166-1 alpha-2 country code (e.g. “US”, “IN”, “GB”).
bboxstringnoBounding box “minLon,minLat,maxLon,maxLat” to search within.
limitnumbernoMax stations to return (1-100, default 20).
_apiKeystringnoOpenAQ API key (optional; the gateway supplies one).

Example call

Arguments

{
  "city": "Delhi"
}

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":"find_stations","arguments":{"city":"Delhi"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('find_stations', {
  "city": "Delhi"
});

More examples

{
  "country": "US",
  "limit": 10
}
{
  "latitude": 51.5074,
  "longitude": -0.1278,
  "radius_km": 20
}

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 August 9, 2026