Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
cyanheads avatar

Ourairports Mcp Server

  • 1 repo stars
  • Updated July 18, 2026
  • cyanheads/ourairports-mcp-server

Offline global aviation reference - airports, runways, navaids, frequencies from OurAirports.

About

Offline global aviation reference - airports, runways, navaids, frequencies from OurAirports. Exposes 5 MCP tools including | Tool | Description |, |. Offline global aviation reference - airports, runways, navaids, frequencies from OurAirports. <h1>@cyanheads/ourairports-mcp-server</h1> [![Framework](https://img.shields.io/badge/Built%20on-@cyanheads/mcp--ts--core-67E8F9?style=flat-square)](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) Install via Claude Desktop, Cursor, or any MCP-compatible client using the server manifest from the upstream repository.

  • Offline global aviation reference - airports, runways, navaids, frequencies from OurAirports.
  • 5 registered MCP tools for structured agent access.
  • Category: AI & LLM Tools with build/integrations journey placement.
  • Compatible with Claude Desktop, Cursor, and MCP clients.
  • Upstream manifest: ourairports-mcp-server.

Ourairports Mcp Server by the numbers

  • Exposes 5 verified tools (MCP introspection)
  • Data as of Jul 19, 2026 (Skillselion catalog sync)
terminal
claude mcp add --env MCP_LOG_LEVEL=YOUR_MCP_LOG_LEVEL ourairports-mcp-server -- npx -y @cyanheads/ourairports-mcp-server run

Add your badge

Show developers this MCP server is listed on Skillselion. Paste this into your README.

Listed on Skillselion
repo stars1
Package@cyanheads/ourairports-mcp-server
TransportSTDIO, HTTP
AuthNone
Tools5
Last updatedJuly 18, 2026
Repositorycyanheads/ourairports-mcp-server

How do I connect Ourairports Mcp Server to my MCP client?

Offline global aviation reference - airports, runways, navaids, frequencies from OurAirports.

Who is it for?

Teams wiring Ourairports Mcp Server into Claude, Cursor, or custom agents for ai & llm tools.

Skip if: Skip when you need a non-MCP SDK or hosted API without stdio/SSE transport.

What you get

Working Ourairports Mcp Server MCP server with verified tool registration and client config.

By the numbers

  • [object Object]
At a glance

Ourairports Mcp Server capabilities & compatibility

Capabilities
ourairports mcp server mcp tool registration · ourairports mcp server client configuration · ourairports mcp server agent workflow integratio
Use cases
api development
Runs
Runs locally

Tools 5

Public tool metadata - what this server can do for an agent.

ourairports_search_airports6 params

Search the bundled OurAirports corpus by free-text (name / municipality / keywords) and/or facets (country, region, type). Every query token must match (word order and partial words are handled). Returns ranked airport summaries — operational and larger airports first — each with its full code set and coordinates, ready to chain into ourairports_get_airport. Closed airports are excluded unless include_closed is set. Use ourairports_list_countries for valid country/region codes. For "nearest airport to a coordinate" use ourairports_find_airports instead. OurAirports is community-edited — not authoritative for flight operations.

  • querystringFree-text search over airport name, municipality, and keywords. Tokens are AND-matched. Omit to browse purely by facets.
  • countrystringISO 3166-1 alpha-2 country code filter (e.g. US). Exact match. Discover codes with ourairports_list_countries.
  • regionstringISO 3166-2 region code filter (e.g. US-WA). Exact match.
  • typestringRestrict to one airport type: large_airport, medium_airport, small_airport, heliport, seaplane_base, balloonport, or closed.
  • include_closedbooleanInclude airports of type "closed". Off by default — closed airports pollute the live-flight grounding use case.
  • limitintegerMaximum airports to return (1–100). Defaults to OURAIRPORTS_DEFAULT_SEARCH_LIMIT (20).
ourairports_get_airport2 params

Fetch the full record for one airport resolved by ANY code — IATA (SEA), ICAO (KSEA), GPS, national/local, or the OurAirports ident — with its runways and radio frequencies inline. The single `code` param is resolved case-insensitively across all five identifier spaces (priority: ident, then ICAO, IATA, GPS, local). The response always echoes the airport's complete code set and a resolution_note naming which space matched, so a wrong resolution from an ambiguous national code is self-correcting (re-query with the IATA or ICAO code, or the ident). Absent codes are reported as null, never an error. Closed airports always resolve. OurAirports is community-edited — not authoritative for flight operations.

  • codestringrequiredAny airport code: IATA (SEA), ICAO (KSEA), GPS code, national/local code, or the OurAirports ident. Case-insensitive.
  • includearrayWhich related records to include inline. Defaults to both. Pass a subset to trim the response.
ourairports_find_airports6 params

Find airports within a radius of a latitude/longitude, ranked nearest-first by great-circle distance, each with its distance (km) and bearing (degrees true) from the query point. The grounding tool for "nearest airport to here" — pair it with a live aviation server to fetch weather or positions for the result. Takes a coordinate only: no geocoding, so resolve place names to lat/lon upstream first (e.g. an OpenStreetMap or Open-Meteo geocode tool). Closed airports are excluded unless include_closed is set. OurAirports is community-edited — not authoritative for flight operations.

  • latitudenumberrequiredQuery point latitude in decimal degrees (WGS84), −90 to 90.
  • longitudenumberrequiredQuery point longitude in decimal degrees (WGS84), −180 to 180.
  • radius_kmnumberSearch radius in kilometers (1–500). Defaults to 100.
  • typestringRestrict to one airport type (e.g. large_airport for major fields only).
  • include_closedbooleanInclude airports of type "closed". Off by default.
  • limitintegerMaximum airports to return (1–50). Defaults to 10.
ourairports_find_navaids6 params

Find navigation aids (VOR, VOR-DME, DME, NDB, NDB-DME, TACAN, VORTAC) two ways: spatially, by passing latitude+longitude (with an optional radius_km); or relationally, by passing airport_code to get the navaids that serve that airport. Supply exactly one mode — both or neither is a validation error. Coordinate mode ranks nearest-first with distance (km) and bearing (degrees true). Frequencies are stored in kHz for every navaid type (a VOR on 114.5 MHz reads frequencyKhz 114500) and are also surfaced in MHz. Airport mode returns an empty list (not an error) when the airport exists but has no associated navaids; an unknown airport_code is an error. OurAirports is community-edited — not authoritative for flight operations.

  • latitudenumberCoordinate mode: query point latitude (−90 to 90). Provide with longitude; mutually exclusive with airport_code.
  • longitudenumberCoordinate mode: query point longitude (−180 to 180). Provide with latitude.
  • radius_kmnumberCoordinate mode: search radius in kilometers (1–500). Defaults to 100. Ignored in airport mode.
  • airport_codestringAirport mode: any airport code (IATA/ICAO/GPS/local/ident); returns the navaids serving that airport. Mutually exclusive with latitude/longitude.
  • typestringRestrict to one navaid type: NDB, VOR-DME, VORTAC, TACAN, VOR, DME, or NDB-DME.
  • limitintegerMaximum navaids to return (1–50). Defaults to OURAIRPORTS_DEFAULT_SEARCH_LIMIT (20).
ourairports_list_countries2 params

List the countries present in the bundled OurAirports dataset with their ISO 3166-1 alpha-2 codes and airport counts. This is the lookup table for valid `country` (and, with include_regions, `region`) filter values used by ourairports_search_airports. Optionally restrict to a continent or nest each country's regions. Counts exclude closed airports.

  • continentstringRestrict to one continent: AF (Africa), AN (Antarctica), AS (Asia), EU (Europe), NA (North America), OC (Oceania), SA (South America).
  • include_regionsbooleanWhen true, nest each country's ISO 3166-2 regions (with airport counts) under it. Off by default to keep the response compact.
README.md

@cyanheads/ourairports-mcp-server

Resolve airport codes (IATA/ICAO/GPS/local), search airports, find the nearest by coordinate, and look up runways, navaids, and radio frequencies from the bundled public-domain OurAirports dataset via MCP. STDIO or Streamable HTTP.

5 Tools • 1 Resource

Version License Docker MCP SDK npm TypeScript Bun

Install in Claude Desktop Install in Cursor Install in VS Code

Framework


Overview

ourairports-mcp-server is the static aviation reference layer for resolving airport identifiers and grounding coordinates. It answers what exists — the catalog of airports, their codes, runways, navaids, and radio frequencies — to complement live aviation services that answer what is happening (weather, positions).

The entire OurAirports dataset is dedicated to the public domain and published as flat CSVs. Those six CSV files — airports, runways, navaids, airport frequencies, countries, and regions (~178k rows, ~20 MB) — are bundled into the package and baked into the Docker image at build time. At startup the server parses them into in-memory indices; every tool is then a local query. The result has no API key, no rate limit, and no upstream dependency to inherit an outage from.

How the working model fits together:

  • Code resolution across five identifier spaces. Airports carry IATA, ICAO, GPS, local, and the OurAirports ident. A single code parameter resolves against a unified index (priority: ident → ICAO → IATA → GPS → local), and the response echoes the full code set so an ambiguous national code is self-correcting. A missing code (no IATA for a small field) is reported as null, never a 404.
  • Nearest-neighbour by great-circle distance. Coordinate lookups run a haversine scan over a flat Float64Array of every airport (or navaid) position and return the nearest results ranked by distance, each with its bearing — sub-millisecond at this scale, no spatial index needed.
  • Honest sparsity. Absent upstream fields (no elevation, null runway dimensions) surface as unknown. Capped result lists disclose truncation.

OurAirports is community-edited. The data is surfaced as-is and is not authoritative for real flight operations — treat it the way you would any crowd-sourced reference.

Tools

Five read-only tools, all local queries against the bundled index — code resolution and detail, search, coordinate grounding, navaids, and the country/region lookup table:

Tool Description
ourairports_search_airports Full-text and faceted search over the airport corpus by name, municipality, country, region, or type. Ranked summaries, closed airports excluded by default.
ourairports_get_airport Full record for one airport resolved by any code (IATA/ICAO/GPS/local/ident), with its runways and radio frequencies inline.
ourairports_find_airports Airports within a radius of a coordinate, ranked nearest-first by great-circle distance, with distance and bearing.
ourairports_find_navaids Navigation aids (VOR, VOR-DME, DME, NDB, NDB-DME, TACAN, VORTAC) near a coordinate or serving a specific airport.
ourairports_list_countries Countries present in the dataset with ISO codes and airport counts; optional continent filter and nested regions. The lookup table for valid country/region filter values.

ourairports_search_airports

The common entry point — search by free text, facets, or both.

  • Free-text search over name, municipality, and keywords; tokens are AND-matched (word order and partial words handled)
  • Faceted filters: country (ISO 3166-1 alpha-2), region (ISO 3166-2), and type
  • Closed airports excluded by default; opt in with include_closed
  • Results ranked operational/larger-airports-first, each with its full code set and coordinates for chaining into ourairports_get_airport
  • Truncation disclosure — total matched count, applied cap, and guidance to broaden or narrow

ourairports_get_airport

The detail tool — one call returns everything the common case needs.

  • Resolves a single code case-insensitively across all five identifier spaces (priority: ident → ICAO → IATA → GPS → local)
  • Runways and radio frequencies inline; include trims the response to a subset
  • Echoes the airport's complete code set plus a resolvedVia / resolutionNote, with an ambiguity warning for shared national codes so a wrong resolution is self-correcting
  • Absent codes reported as null; closed airports always resolve
  • unknown_code error with a recovery hint when no identifier space matches

ourairports_find_airports

The grounding tool — turn a latitude/longitude into the nearest airport(s).

  • Great-circle (haversine) ranking, nearest-first, each result with distanceKm and bearingDeg (degrees true) from the query point
  • radius_km (1–500, default 100), optional type filter, include_closed opt-in
  • Coordinate in, ranked airports out — no geocoding; resolve place names to lat/lon upstream first
  • Empty-radius guidance suggesting a wider radius_km

ourairports_find_navaids

Navigation aids two ways — spatially or by airport.

  • Coordinate mode: latitude + longitude (+ optional radius_km) ranks navaids nearest-first with distance and bearing
  • Airport mode: airport_code returns the navaids serving that airport
  • Exactly one mode required — supplying both or neither is a validation error
  • Frequencies surfaced in both kHz (the stored value — a VOR on 114.5 MHz reads frequencyKhz 114500) and MHz
  • Airport mode distinguishes "airport not found" (unknown_code error) from "airport found but has no associated navaids" (empty list with a note)

Resource and prompt

Type Name Description
Resource airport://{code} Single airport record by any code (IATA/ICAO/GPS/local/ident), with runways and frequencies inline.

The airport://{code} resource is a stable-URI twin of ourairports_get_airport for clients that inject resource context. All data is reachable from the tools alone — tool-only clients lose nothing. The corpus is not exposed as a resource list (enumerating 85k airports is a dump, not a discovery aid); discovery is ourairports_search_airports.

Features

Built on @cyanheads/mcp-ts-core:

  • Declarative tool and resource definitions — single file per primitive, framework handles registration and validation
  • Unified error handling — handlers throw, framework catches, classifies, and formats
  • Pluggable auth: none, jwt, oauth
  • Swappable storage backends: in-memory, filesystem, Supabase, Cloudflare KV/R2/D1
  • Structured logging with optional OpenTelemetry tracing
  • Runs locally (stdio/HTTP) or on Cloudflare Workers from the same codebase

OurAirports-specific:

  • Bundled, public-domain dataset baked into the package and Docker image — zero runtime API, no key, no rate limit, no upstream outage
  • In-memory indices built once at startup: id maps, a priority-ordered unified code index, airport-ref joins for runways and frequencies, an ident-keyed navaid join, a flat Float64Array of coordinates, country/region maps, and a tokenized text-search index
  • Brute-force haversine nearest-neighbour over the coordinate array — sub-millisecond across 85k airports, no spatial-index dependency
  • CSVs parsed by header name, not column position, so an upstream column reorder can't silently misalign fields

Agent-friendly output:

  • Honest sparsity — absent upstream fields (no IATA, no elevation, null runway dimensions) surface as null, never fabricated
  • Self-correcting resolution — every airport record echoes its full code set and a resolvedVia / resolutionNote, with an ambiguity warning for shared national codes
  • Truncation and empty-result disclosure — total counts, applied caps, and recovery guidance so callers can broaden, narrow, or re-query without parsing prose

Getting started

Public Hosted Instance

A public instance is available at https://ourairports.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP, with this client config:

{
  "mcpServers": {
    "ourairports-mcp-server": {
      "type": "streamable-http",
      "url": "https://ourairports.caseyjhand.com/mcp"
    }
  }
}

Local / self-hosted

Add the following to your MCP client configuration file.

{
  "mcpServers": {
    "ourairports-mcp-server": {
      "type": "stdio",
      "command": "bunx",
      "args": ["@cyanheads/ourairports-mcp-server@latest"],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "MCP_LOG_LEVEL": "info"
      }
    }
  }
}

Or with npx (no Bun required):

{
  "mcpServers": {
    "ourairports-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@cyanheads/ourairports-mcp-server@latest"],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "MCP_LOG_LEVEL": "info"
      }
    }
  }
}

Or with Docker:

{
  "mcpServers": {
    "ourairports-mcp-server": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "MCP_TRANSPORT_TYPE=stdio",
        "ghcr.io/cyanheads/ourairports-mcp-server:latest"
      ]
    }
  }
}

No API key is required — the dataset ships with the package and the image.

For Streamable HTTP, set the transport and start the server:

MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
# Server listens at http://localhost:3010/mcp

Prerequisites

  • Bun v1.3.2 or higher (or Node.js v24+).
  • No API key, account, or external service — all data is bundled.

Installation

  1. Clone the repository:
git clone https://github.com/cyanheads/ourairports-mcp-server.git
  1. Navigate into the directory:
cd ourairports-mcp-server
  1. Install dependencies:
bun install
  1. Fetch and bundle the dataset (writes the six CSVs into data/):
bun run build:data

Refreshing the data

The bundled snapshot is as fresh as the last build:data run (or, for the Docker image, the last build). To pull the latest daily drop from the OurAirports mirror, re-run bun run build:data and rebuild. To point at an existing local data drop without rebuilding, set OURAIRPORTS_DATA_DIR.

Configuration

Variable Description Default
OURAIRPORTS_DATA_DIR Directory holding the six OurAirports CSV files. Overridable to point at a fresher local data drop. Bundled data/
OURAIRPORTS_DEFAULT_SEARCH_LIMIT Default result cap for the search/find tools when the caller omits limit (1–100). 20
MCP_TRANSPORT_TYPE Transport: stdio or http. stdio
MCP_HTTP_PORT Port for the HTTP server. 3010
MCP_HTTP_ENDPOINT_PATH HTTP endpoint path where the server is mounted. /mcp
MCP_AUTH_MODE Auth mode: none, jwt, or oauth. none
MCP_LOG_LEVEL Log level (RFC 5424). info
LOGS_DIR Directory for log files (Node.js only). <project-root>/logs
STORAGE_PROVIDER_TYPE Storage backend (unused on the data path — the index is in-memory). in-memory
OTEL_ENABLED Enable OpenTelemetry instrumentation. false

See .env.example for the full list of optional overrides.

Running the server

Local development

  • Build and run:

    # One-time data fetch + build
    bun run build:data
    bun run rebuild
    
    # Run the built server
    bun run start:stdio
    # or
    bun run start:http
    
  • Run checks and tests:

    bun run devcheck   # Lint, format, typecheck, security
    bun run test       # Vitest test suite
    bun run lint:mcp   # Validate MCP definitions against spec
    

Docker

docker build -t ourairports-mcp-server .
docker run --rm -e MCP_TRANSPORT_TYPE=stdio ourairports-mcp-server

The build stage runs bun run build:data so the dataset is fetched and baked into the image — the resulting container is fully self-contained and makes no network calls at runtime. The Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/ourairports-mcp-server. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.

Project structure

Directory Purpose
src/index.ts createApp() entry point — registers tools/resources and loads the bundled index at setup().
src/config Server-specific environment variable parsing and validation with Zod.
src/mcp-server/tools Tool definitions (*.tool.ts). Five read-only airport/navaid tools.
src/mcp-server/resources Resource definitions. The airport://{code} record.
src/services/airport-data The bundled-data service — CSV parsing, in-memory indices, code resolution, search, and the haversine geo scan.
scripts/build-data.ts Build-time fetcher that bundles the six OurAirports CSVs into data/.
tests/ Unit and integration tests mirroring src/.

Development guide

See CLAUDE.md/AGENTS.md for development guidelines and architectural rules. The short version:

  • Handlers throw, framework catches — no try/catch in tool logic
  • Use ctx.log for request-scoped logging, ctx.state for tenant-scoped storage
  • Register new tools and resources via the barrels in src/mcp-server/*/definitions/index.ts
  • Surface upstream data as-is: report absent fields as null, never fabricate missing values

Attribution

Airport, runway, navaid, and frequency data from OurAirports, dedicated to the public domain. Attribution is a courtesy, not a requirement. Source CSVs are published daily at davidmegginson.github.io/ourairports-data.

Contributing

Issues and pull requests are welcome. Run checks and tests before submitting:

bun run devcheck
bun run test

License

Apache-2.0 — see LICENSE for details.

Recommended MCP Servers

FAQ

What does ourairports mcp server MCP do?

Offline global aviation reference - airports, runways, navaids, frequencies from OurAirports.

When should I use ourairports mcp server?

User asks about Ourairports Mcp Server mcp, offline global aviation reference - airports, runways, navaids, freque.

Is this MCP server safe to install?

Review the Security Audits panel and upstream source before connecting in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.