get_flights

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

Get all flights within a time interval (max 2 hours). Returns ICAO24 address, callsign, departure/arrival airports. Provide begin and end as Unix timestamps. Example: get_flights(1696118400, 1696125600).

Parameters

NameTypeRequiredDescription
beginnumberyesStart of time interval as Unix timestamp (seconds)
endnumberyesEnd of time interval as Unix timestamp (seconds, max 2h after begin)

Example call

Arguments

{
  "begin": 1696118400,
  "end": 1696125600
}

curl

curl -X POST https://gateway.pipeworx.io/opensky/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_flights","arguments":{"begin":1696118400,"end":1696125600}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('get_flights', {
  "begin": 1696118400,
  "end": 1696125600
});

More examples

{
  "begin": 1704067200,
  "end": 1704074400
}

Response shape

Always returns: begin, end, count, flights

FieldTypeDescription
beginstringStart of time interval as ISO 8601 timestamp
endstringEnd of time interval as ISO 8601 timestamp
countnumberTotal number of flights in the interval
flightsarrayUp to 100 flights with details
Full JSON Schema
{
  "type": "object",
  "properties": {
    "begin": {
      "type": "string",
      "description": "Start of time interval as ISO 8601 timestamp"
    },
    "end": {
      "type": "string",
      "description": "End of time interval as ISO 8601 timestamp"
    },
    "count": {
      "type": "number",
      "description": "Total number of flights in the interval"
    },
    "flights": {
      "type": "array",
      "description": "Up to 100 flights with details",
      "items": {
        "type": "object",
        "properties": {
          "icao24": {
            "type": [
              "string",
              "null"
            ],
            "description": "ICAO24 transponder address"
          },
          "callsign": {
            "type": [
              "string",
              "null"
            ],
            "description": "Aircraft callsign (trimmed)"
          },
          "departure_airport": {
            "type": [
              "string",
              "null"
            ],
            "description": "Estimated departure airport code"
          },
          "arrival_airport": {
            "type": [
              "string",
              "null"
            ],
            "description": "Estimated arrival airport code"
          },
          "first_seen": {
            "type": [
              "string",
              "null"
            ],
            "description": "First sighting time as ISO 8601 timestamp"
          },
          "last_seen": {
            "type": [
              "string",
              "null"
            ],
            "description": "Last sighting time as ISO 8601 timestamp"
          }
        }
      }
    }
  },
  "required": [
    "begin",
    "end",
    "count",
    "flights"
  ]
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026