@pipeworx/airports

Connect: https://pipeworx.io/mcp — every tool in the catalog, including @pipeworx/airports’s. Install: one-click buttons

Connect to just the @pipeworx/airports pack

https://gateway.pipeworx.io/airports/mcp — only @pipeworx/airports’s own tools, nothing else in the catalog.

No MCP client? Skip the connection: POST https://gateway.pipeworx.io/v1/tools/search_packs {"query":"..."} to find a tool below, GET /v1/tools/<name> for its schema, POST the same URL with arguments for the data — see For AI agents.

Tools: 8

Airport lookup, two sources side by side:

  • AirportGap (live, free, keyless) — the original tools. A static OpenFlights-derived snapshot, IATA-code and top-~150-city coverage only.
  • OurAirports (fleet #2977, D1 copy) — every airfield OurAirports tracks: ~86,000 rows including ICAO-only idents, heliports, seaplane bases, balloonports and closed fields, plus their runways, radio frequencies and navaids.

Tools

AirportGap-backed (live upstream fetch)

  • search_airports(query) — city name or IATA code, via a bundled city->IATA map (top ~150 hubs).
  • get_airport(iata_code) — single airport by IATA code.
  • calculate_distance(from, to) — great-circle distance between two IATA codes.

An IATA code AirportGap’s snapshot doesn’t have (e.g. BER, opened 2020) returns found: false with a hint rather than erroring — it’s a known dataset-age boundary, not an outage.

OurAirports-backed (D1, public domain)

  • ourairports_lookup(code) — look up ANY airfield by ICAO code, IATA code, GPS code, or OurAirports’ own local/national ident (e.g. a US local code like "00A", or a non-US ident like "AT-0001"). Returns name, type (large_airport/medium_airport/small_airport/heliport/ seaplane_base/balloonport/closed), coordinates, elevation, country/region, and scheduled-service flag.
  • airport_runways(code) — per-runway length/width/surface/lighting/ closed flag, plus both ends’ ident, coordinates, elevation, heading and displaced threshold.
  • airport_frequencies(code) — radio frequencies (ATIS/TWR/GND/CLD/DIR/ APP/DEP/CTAF/UNICOM/…), description and MHz.
  • airport_navaids(code) — navaids (NDB/VOR/DME/VOR-DME/VORTAC/TACAN/…) associated with the airfield: ident, name, type, frequency in kHz, coordinates, elevation, DME channel, power.
  • ourairports_search(query?, country?, type?, limit?, offset?) — text match against name/municipality/ident, optionally narrowed by ISO country code or airfield type. Needs at least one of query/country/type — an unscoped call would otherwise mean a full-table scan of ~86k rows. limit defaults to 20 (max 100); a response with more matching rows than returned carries truncated: true and total_matching.

Every OurAirports-backed tool accepts any of ICAO/IATA/GPS/local code for code and resolves deterministically: OurAirports’ own canonical ident wins over icao_code, which wins over gps_code, which wins over iata_code, so a code that happens to collide across columns never silently resolves to the wrong airfield. An unrecognized code is refused with a clear error, never an empty success — use ourairports_search to find the right code by name/city first if you don’t already have it. A known airfield with zero matching child rows (e.g. a heliport with no fixed-wing runway) returns an empty array with found: true and an explanatory note — that is real data, not a failure.

Auth

Keyless. The OurAirports-backed tools answer only through the Pipeworx gateway, which holds the D1 copy; a standalone npm install has no data to read there and every tool throws a clear “not bound in this runtime” error instead of returning an empty list.

Data sources

  • AirportGap (airportgap.com) — free public API, no auth.
  • OurAirports — bulk CSV export (davidmegginson.github.io/ourairports-data, a public mirror of ourairports.com’s own data). Per ourairports.com/data/: “All data is released to the Public Domain, and comes with no guarantee of accuracy or fitness for use.” The site publishes bulk files only (no live query API), so this pack builds a copy (scripts/ourairports/load-data.mjs) rather than proxying. All six files (airports, runways, airport-frequencies, navaids, countries, regions) load whole — nothing here needs aggregation or a row cap at OurAirports’ scale (the largest table is ~86k rows).

Refresh

OurAirports updates its CSVs on a rolling basis (new/changed airfields, runway edits, frequency changes). To refresh:

CLOUDFLARE_ACCOUNT_ID=ecc092eba5c5bacef3ccff9f9d7a4d8d \
  node scripts/ourairports/load-data.mjs \
  --db pipeworx-ourairports --config workers/gateway/wrangler.toml

Needs wrangler logged in to the Pipeworx Cloudflare account. The loader downloads all six CSVs fresh, rebuilds every table (DROP TABLE IF EXISTS

  • reload — OurAirports revises existing rows rather than only appending), verifies the loaded row count against the parsed row count per table, and aborts loudly (non-zero exit, no partial “loaded” claim) on a mismatch rather than leaving the database silently incomplete. Not yet on a cron — run it by hand when the data looks stale (ourairports_lookup’s data_as_of field carries the last load time).

Tools

  • search_airports — Look up an airport by city name (e.g. “Tokyo”, “New York”, “London”) OR by 3-letter IATA code (e.g. “JFK”, “LHR”). City lookup uses a bundled map of the top ~150 international hubs; cities with multip
  • get_airport — Get airport details by IATA code (e.g., “JFK”, “LHR”). Returns name, city, country, coordinates, altitude, timezone.
  • calculate_distance — Calculate straight-line distance between two airports by IATA code (e.g., “JFK” to “LHR”). Returns kilometers and miles.
  • ourairports_lookup — Look up any of ~86k OurAirports airfields by ICAO/IATA/GPS/local code.
  • airport_runways — Per-runway length/width/surface/lighting/heading for one airfield.
  • airport_frequencies — Radio frequencies (ATIS/TWR/GND/…) for one airfield.
  • airport_navaids — Navaids (NDB/VOR/DME/…) associated with one airfield.
  • ourairports_search — Text search over ~86k OurAirports airfields by name/municipality/ident.

Tools

  • airport_frequencies — Radio frequencies (ATIS/TWR/GND/...) for one airfield.
  • airport_navaids — Navaids (NDB/VOR/DME/...) associated with one airfield.
  • airport_runways — Per-runway length/width/surface/lighting/heading for one airfield.
  • calculate_distance — Calculate straight-line distance between two airports by IATA code (e.g., JFK to LHR ). Returns kilometers and miles.
  • get_airport — Get airport details by IATA code (e.g., JFK , LHR ). Returns name, city, country, coordinates, altitude, timezone.
  • ourairports_lookup — Look up any of ~86k OurAirports airfields by ICAO/IATA/GPS/local code.
  • ourairports_search — Text search over ~86k OurAirports airfields by name/municipality/ident.
  • search_airports — Look up an airport by city name (e.g. Tokyo , New York , London ) OR by 3-letter IATA code (e.g. JFK , LHR ). City lookup uses a bundled map of the top ~150 international hubs; cities with multiple ai

Regenerated from source · build October 30, 2026