get_flights
Pack: opensky · Endpoint: https://gateway.pipeworx.io/opensky/mcp
Historical flight legs (departure and arrival airports) for a past time window. NOT AVAILABLE from a hosted environment: OpenSky is the only source of this data and it cannot be reached from cloud infrastructure, while the keyless ADS-B mirrors that replace it carry live positions only. Returns an explicit not-available result naming what does work instead — live aircraft via get_states, a callsign’s scheduled route via get_flight_route, and live airport activity via get_arrivals / get_departures in the flights pack.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
begin | number | yes | Start of the interval, Unix seconds. |
end | number | yes | End of the interval, Unix seconds. |
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
}
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.