airports
Pack: aviationstack · Endpoint: https://gateway.pipeworx.io/aviationstack/mcp
Airport directory — name, IATA/ICAO codes, country, GPS, timezone.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
search | string | no | Free-text — name / city |
iata_code | string | no | 3-letter IATA code |
icao_code | string | no | 4-letter ICAO code |
country_iso2 | string | no | ISO 3166-1 alpha-2 country |
limit | number | no | |
offset | number | no |
Example call
Arguments
{
"iata_code": "JFK"
}
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":"airports","arguments":{"iata_code":"JFK"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('airports', {
"iata_code": "JFK"
});
More examples
{
"search": "London",
"country_iso2": "GB"
}
Response shape
| Field | Type | Description |
|---|---|---|
pagination | object | Pagination metadata |
data | array | Array of airport objects |
Full JSON Schema
{
"type": "object",
"properties": {
"pagination": {
"type": "object",
"properties": {
"offset": {
"type": "number"
},
"limit": {
"type": "number"
},
"count": {
"type": "number"
},
"total": {
"type": "number"
}
},
"description": "Pagination metadata"
},
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"gmt": {
"type": "string",
"description": "GMT offset"
},
"airport_id": {
"type": "string"
},
"iata_code": {
"type": "string",
"description": "3-letter IATA code"
},
"city_iata_code": {
"type": "string",
"description": "City IATA code"
},
"icao_code": {
"type": "string",
"description": "4-letter ICAO code"
},
"country_iso2": {
"type": "string",
"description": "ISO 3166-1 alpha-2 country code"
},
"geoname_id": {
"type": "string"
},
"latitude": {
"type": "string",
"description": "Latitude coordinate"
},
"longitude": {
"type": "string",
"description": "Longitude coordinate"
},
"airport_name": {
"type": "string",
"description": "Full airport name"
},
"country_name": {
"type": [
"string",
"null"
],
"description": "Country name"
},
"phone_number": {
"type": "null"
},
"timezone": {
"type": "string",
"description": "IANA timezone"
}
}
},
"description": "Array of airport objects"
}
}
}
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.