get_departures

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

Get flights that took off from an airport during a time window. Specify airport ICAO code (e.g., “KJFK”) and start/end times. Returns departure details and flight info.

Parameters

NameTypeRequiredDescription
airportstringyesICAO airport code (e.g. “KLAX”, “EGLL”)
beginnumberyesStart of time range as Unix timestamp (seconds)
endnumberyesEnd of time range as Unix timestamp (seconds, max 7 days after begin)

Example call

Arguments

{
  "airport": "KLAX",
  "begin": 1609459200,
  "end": 1609545600
}

curl

curl -X POST https://gateway.pipeworx.io/flights/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_departures","arguments":{"airport":"KLAX","begin":1609459200,"end":1609545600}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('get_departures', {
  "airport": "KLAX",
  "begin": 1609459200,
  "end": 1609545600
});

More examples

{
  "airport": "KSFO",
  "begin": 1704067200,
  "end": 1704153600
}

Response shape

Always returns: count, flights

FieldTypeDescription
countnumberNumber of departure flights found
flightsarray
Full JSON Schema
{
  "type": "object",
  "properties": {
    "count": {
      "type": "number",
      "description": "Number of departure flights found"
    },
    "flights": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "icao24": {
            "type": "string",
            "description": "ICAO24 transponder address"
          },
          "callsign": {
            "type": [
              "string",
              "null"
            ],
            "description": "Flight callsign (trimmed)"
          },
          "first_seen": {
            "type": "number",
            "description": "Unix timestamp of first radar contact"
          },
          "last_seen": {
            "type": "number",
            "description": "Unix timestamp of last radar contact"
          },
          "departure_airport": {
            "type": [
              "string",
              "null"
            ],
            "description": "Estimated departure airport ICAO code"
          },
          "arrival_airport": {
            "type": [
              "string",
              "null"
            ],
            "description": "Estimated arrival airport ICAO code"
          }
        },
        "required": [
          "icao24",
          "callsign",
          "first_seen",
          "last_seen",
          "departure_airport",
          "arrival_airport"
        ]
      }
    }
  },
  "required": [
    "count",
    "flights"
  ]
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026