cities

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

Look up cities and their primary airport from the Aviationstack database by free-text name, IATA city code (e.g. NYC), or ISO country code.

Parameters

NameTypeRequiredDescription
searchstringno
iata_codestringnoCity IATA code (e.g. “NYC” for all NYC airports)
country_iso2stringno
limitnumberno

Example call

Arguments

{
  "iata_code": "NYC"
}

curl

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

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('cities', {
  "iata_code": "NYC"
});

More examples

{
  "search": "Paris",
  "country_iso2": "FR"
}

Response shape

FieldTypeDescription
dataarrayArray of city objects
paginationobjectPagination metadata
Full JSON Schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "description": "Array of city objects",
      "items": {
        "type": "object",
        "properties": {
          "city_name": {
            "type": "string",
            "description": "City name"
          },
          "iata_code": {
            "type": "string",
            "description": "City IATA code"
          },
          "country_iso2": {
            "type": "string",
            "description": "Country ISO code"
          },
          "country_name": {
            "type": "string",
            "description": "Country name"
          },
          "timezone": {
            "type": "string",
            "description": "IANA timezone"
          },
          "gmt": {
            "type": "string",
            "description": "GMT offset"
          },
          "gmt_offset_seconds": {
            "type": "number",
            "description": "GMT offset in seconds"
          },
          "latitude": {
            "type": "number",
            "description": "Latitude coordinate"
          },
          "longitude": {
            "type": "number",
            "description": "Longitude coordinate"
          }
        }
      }
    },
    "pagination": {
      "type": "object",
      "description": "Pagination metadata",
      "properties": {
        "limit": {
          "type": "number"
        },
        "offset": {
          "type": "number"
        },
        "count": {
          "type": "number"
        }
      }
    }
  }
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026