get_arrivals
Pack: flights · Endpoint: https://gateway.pipeworx.io/flights/mcp
Get flights that landed at an airport during a time window. Specify airport ICAO code (e.g., “KJFK”) and start/end times. Returns arrival details and flight info.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
airport | string | yes | ICAO airport code (e.g. “KLAX”, “EGLL”) |
begin | number | yes | Start of time range as Unix timestamp (seconds) |
end | number | yes | End of time range as Unix timestamp (seconds, max 7 days after begin) |
Example call
Arguments
{
"airport": "KJFK",
"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_arrivals","arguments":{"airport":"KJFK","begin":1609459200,"end":1609545600}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_arrivals', {
"airport": "KJFK",
"begin": 1609459200,
"end": 1609545600
});
More examples
{
"airport": "EGLL",
"begin": 1704067200,
"end": 1704153600
}
Response shape
Always returns: count, flights
| Field | Type | Description |
|---|---|---|
count | number | Number of arrival flights found |
flights | array |
Full JSON Schema
{
"type": "object",
"properties": {
"count": {
"type": "number",
"description": "Number of arrival 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.