search_stations

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

Search stations by keyword (city/region name). Returns station UID, name, current AQI, and location.

Parameters

NameTypeRequiredDescription
keywordstringyesSearch keyword

Example call

Arguments

{
  "keyword": "shanghai"
}

curl

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

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('search_stations', {
  "keyword": "shanghai"
});

More examples

{
  "keyword": "los-angeles"
}

Response shape

Always returns: keyword, count, stations

FieldTypeDescription
keywordstringSearch keyword used
countnumberNumber of matching stations
stationsarrayList of matching stations
Full JSON Schema
{
  "type": "object",
  "properties": {
    "keyword": {
      "type": "string",
      "description": "Search keyword used"
    },
    "count": {
      "type": "number",
      "description": "Number of matching stations"
    },
    "stations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "station_id": {
            "type": [
              "number",
              "null"
            ],
            "description": "Unique station identifier"
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Station name"
          },
          "aqi": {
            "type": [
              "number",
              "null"
            ],
            "description": "Current AQI value"
          },
          "country": {
            "type": [
              "string",
              "null"
            ],
            "description": "Country where station is located"
          },
          "latitude": {
            "type": [
              "number",
              "null"
            ],
            "description": "Station latitude"
          },
          "longitude": {
            "type": [
              "number",
              "null"
            ],
            "description": "Station longitude"
          },
          "last_seen": {
            "type": [
              "string",
              "null"
            ],
            "description": "Timestamp of last measurement"
          },
          "timezone": {
            "type": [
              "string",
              "null"
            ],
            "description": "Station timezone"
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Station information URL"
          }
        }
      },
      "description": "List of matching stations"
    }
  },
  "required": [
    "keyword",
    "count",
    "stations"
  ]
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026