search_airports

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

Look up an airport by city name (e.g. “Tokyo”, “New York”, “London”) OR by 3-letter IATA code (e.g. “JFK”, “LHR”). City lookup uses a bundled map of the top ~150 international hubs; cities with multiple airports return all primary ones. For airports not in the bundle, pass an IATA code or use the aviationstack pack for full-text name/country search.

Parameters

NameTypeRequiredDescription
querystringyesCity name (e.g. “Chicago”, “London”) or 3-letter IATA code (e.g. “ORD”)

Example call

Arguments

{
  "query": "New York"
}

curl

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

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('search_airports', {
  "query": "New York"
});

More examples

{
  "query": "London",
  "page": 2
}

Response shape

Always returns: results, count, page

FieldTypeDescription
resultsarrayList of airports matching the search query
countnumberNumber of results returned
pagenumberCurrent page number
Full JSON Schema
{
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "description": "List of airports matching the search query",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Airport name"
          },
          "city": {
            "type": "string",
            "description": "City where airport is located"
          },
          "country": {
            "type": "string",
            "description": "Country where airport is located"
          },
          "iata": {
            "type": "string",
            "description": "Three-letter IATA code"
          },
          "icao": {
            "type": "string",
            "description": "Four-letter ICAO code"
          },
          "latitude": {
            "type": "number",
            "description": "Latitude coordinate"
          },
          "longitude": {
            "type": "number",
            "description": "Longitude coordinate"
          },
          "altitude_ft": {
            "type": "number",
            "description": "Altitude in feet"
          },
          "timezone": {
            "type": "string",
            "description": "Airport timezone"
          }
        }
      }
    },
    "count": {
      "type": "number",
      "description": "Number of results returned"
    },
    "page": {
      "type": "number",
      "description": "Current page number"
    }
  },
  "required": [
    "results",
    "count",
    "page"
  ]
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build May 21, 2026