routes
Pack: aviationstack · Endpoint: https://gateway.pipeworx.io/aviationstack/mcp
Query scheduled flight routes from Aviationstack by departure IATA (dep_iata), arrival IATA (arr_iata), airline IATA code, or flight number; returns scheduled service pairings.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
dep_iata | string | no | |
arr_iata | string | no | |
airline_iata | string | no | |
flight_number | string | no | |
limit | number | no |
Example call
Arguments
{
"dep_iata": "JFK",
"arr_iata": "LAX"
}
curl
curl -X POST https://gateway.pipeworx.io/aviationstack/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"routes","arguments":{"dep_iata":"JFK","arr_iata":"LAX"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('routes', {
"dep_iata": "JFK",
"arr_iata": "LAX"
});
More examples
{
"airline_iata": "AA",
"flight_number": "100"
}
Response shape
| Field | Type | Description |
|---|---|---|
data | array | Array of route objects |
pagination | object | Pagination metadata |
Full JSON Schema
{
"type": "object",
"properties": {
"data": {
"type": "array",
"description": "Array of route objects",
"items": {
"type": "object",
"properties": {
"departure_airport_iata": {
"type": "string",
"description": "Departure airport IATA"
},
"departure_airport_icao": {
"type": "string",
"description": "Departure airport ICAO"
},
"departure_airport_name": {
"type": "string",
"description": "Departure airport name"
},
"arrival_airport_iata": {
"type": "string",
"description": "Arrival airport IATA"
},
"arrival_airport_icao": {
"type": "string",
"description": "Arrival airport ICAO"
},
"arrival_airport_name": {
"type": "string",
"description": "Arrival airport name"
},
"airline_iata": {
"type": "string",
"description": "Airline IATA code"
},
"airline_icao": {
"type": "string",
"description": "Airline ICAO code"
},
"airline_name": {
"type": "string",
"description": "Airline name"
},
"flight_number": {
"type": "string",
"description": "Flight number"
},
"aircraft_type": {
"type": "string",
"description": "Aircraft type code"
}
}
}
},
"pagination": {
"type": "object",
"description": "Pagination metadata",
"properties": {
"limit": {
"type": "number"
},
"offset": {
"type": "number"
},
"count": {
"type": "number"
}
}
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"aviationstack": {
"url": "https://gateway.pipeworx.io/aviationstack/mcp"
}
}
}
See Getting Started for client-specific install steps.