get_airport
Pack: airports · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/get_airport for the schema, then POST the same URL with its arguments for the data.
Get airport details by IATA code (e.g., “JFK”, “LHR”). Returns name, city, country, coordinates, altitude, timezone.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
iata_code | string | yes | Three-letter IATA airport code (e.g. “JFK”) |
Example call
Arguments
{
"iata_code": "JFK"
}
curl
curl -X POST https://gateway.pipeworx.io/airports/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_airport","arguments":{"iata_code":"JFK"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_airport', {
"iata_code": "JFK"
});
More examples
{
"iata_code": "LHR"
}
Response shape
Always returns: name, city, country, iata, icao, latitude, longitude, altitude_ft, timezone
| Field | Type | Description |
|---|---|---|
name | string | Airport name |
city | string | City where airport is located |
country | string | Country where airport is located |
iata | string | Three-letter IATA code |
icao | string | Four-letter ICAO code |
latitude | number | Latitude coordinate |
longitude | number | Longitude coordinate |
altitude_ft | number | Altitude in feet |
timezone | string | Airport timezone |
Full JSON Schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Airport name"
},
"city": {
"type": "string",
"description": "City where airport is located"
},
"country": {
"type": "string",
"description": "Country where airport is located"
},
"iata": {
"type": "string",
"description": "Three-letter IATA code"
},
"icao": {
"type": "string",
"description": "Four-letter ICAO code"
},
"latitude": {
"type": "number",
"description": "Latitude coordinate"
},
"longitude": {
"type": "number",
"description": "Longitude coordinate"
},
"altitude_ft": {
"type": "number",
"description": "Altitude in feet"
},
"timezone": {
"type": "string",
"description": "Airport timezone"
}
},
"required": [
"name",
"city",
"country",
"iata",
"icao",
"latitude",
"longitude",
"altitude_ft",
"timezone"
]
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the airports pack
{
"mcpServers": {
"airports": {
"url": "https://gateway.pipeworx.io/airports/mcp"
}
}
}
See Getting Started for client-specific install steps.