search_airports

Pack: airports · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/search_airports for the schema, then POST the same URL with its arguments for the data.

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"
}

Response shape

Full JSON Schema
{
  "type": "object",
  "oneOf": [
    {
      "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"
        },
        "matched_by": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "found": {
          "type": "boolean",
          "enum": [
            true
          ],
          "description": "Present and true on an answer; a miss is the found:false branch."
        }
      },
      "required": [
        "results",
        "count"
      ]
    },
    {
      "type": "object",
      "description": "A miss or an unavailable upstream: found:false with a reason and a hint (the shape check-found-false-schemas.mjs expects).",
      "properties": {
        "found": {
          "type": "boolean",
          "enum": [
            false
          ]
        }
      },
      "required": [
        "found"
      ]
    }
  ]
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the airports pack
{
  "mcpServers": {
    "airports": {
      "url": "https://gateway.pipeworx.io/airports/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 15, 2026