Airports
live TravelSearch airports by name/city, get airport details by IATA code, and calculate distances between airports
3 tools
0ms auth
free tier 50 calls/day
Tools
search_airports
required: query Search airports by name, city, or country
Parameters
Name Type Description
query req string Search query page opt number Page number (default 1) Try it
Response
get_airport
required: iata_code Get airport details by IATA code
Parameters
Name Type Description
iata_code req string IATA airport code (e.g. JFK) Try it
Response
calculate_distance
required: from, to Calculate distance between two airports
Parameters
Name Type Description
from req string Origin IATA code to req string Destination IATA code Try it
Response
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
List available tools
bash
curl -X POST https://gateway.pipeworx.io/airports/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' Call a tool
bash
curl -X POST https://gateway.pipeworx.io/airports/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_airports","arguments":{"query": "hello"}}}' Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("search_airports", {"query":"example"}); ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("search airports by name/city, get airport details by iata code, and calculate distances between airports"); Related packs
Other Pipeworx packs in the same categories (Travel):