mcpField
F
flight-search

flight-search

github.com/olafs-world生産性6166 回インストール37 週間前に更新
リポジトリ

flight-search について

flight-search は、Google Flights を検索するコマンドラインツールです。API キーなしで利用でき、結果を構造化 JSON として取得できます。

主な機能

  1. 01空港コードでの検索
  2. 02片道・往復の検索
  3. 03人数と座席クラスの指定
  4. 04構造化 JSON の出力

活用シーン

  1. 01路線ごとの価格と所要時間の比較
  2. 02指定日の往復便の検索
  3. 03検索結果の後続データ処理への利用

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/olafs-world/flight-search --skill flight-search

インストール後、Claude Code で/flight-searchを入力して読み込まれたか確認します。

同梱ファイル

SKILL.md と一緒にインストールされる参考資料やスクリプト。

.gitignore
CHANGELOG.md
AGENTS.md
LICENSE
.python-version
README.md
pyproject.toml
pytest.ini
install.sh
uv.lock
.github/workflows/
ci.yml
flight_search/
search.py
__init__.py
cli.py
tests/
test_cli.py
__init__.py
test_search.py

詳細

フライト検索

コマンドラインから Google Flights を検索できます。価格、時刻、航空会社を確認できます。API キーは不要です。

fast-flights を使用しています。

クイックスタート

# one-off search (no install needed)
uvx flight-search DEN LAX --date 2026-03-01

# or install globally
uv tool install flight-search
flight-search JFK LHR --date 2026-06-15 --return 2026-06-22

オプション

positional arguments:
  origin                Origin airport code (e.g., DEN, LAX, JFK)
  destination           Destination airport code

options:
  --date, -d            Departure date (YYYY-MM-DD) [required]
  --return, -r          Return date for round trips (YYYY-MM-DD)
  --adults, -a          Number of adults (default: 1)
  --children, -c        Number of children (default: 0)
  --class, -C           Seat class: economy, premium-economy, business, first
  --limit, -l           Max results (default: 10)
  --output, -o          Output format: text or json (default: text)

使用例

# One-way flight
flight-search DEN LAX --date 2026-03-01

# Round trip with passengers
flight-search JFK LHR --date 2026-06-15 --return 2026-06-22 --adults 2

# Business class
flight-search SFO NRT --date 2026-04-01 --class business

# JSON output for parsing
flight-search ORD CDG --date 2026-05-01 --output json

出力例

✈️  DEN → LAX
   One way · 2026-03-01
   Prices are currently: typical

──────────────────────────────────────────────────
   Frontier ⭐ BEST
   🕐 10:43 PM → 12:30 AM +1
   ⏱️  2 hr 47 min
   ✅ Nonstop
   💰 $84

──────────────────────────────────────────────────
   United ⭐ BEST
   🕐 5:33 PM → 7:13 PM
   ⏱️  2 hr 40 min
   ✅ Nonstop
   💰 $139

JSON 出力

構造化データを返します。

{
  "origin": "DEN",
  "destination": "LAX",
  "date": "2026-03-01",
  "current_price": "typical",
  "flights": [
    {
      "airline": "Frontier",
      "departure_time": "10:43 PM",
      "arrival_time": "12:30 AM",
      "duration": "2 hr 47 min",
      "stops": 0,
      "price": 84,
      "is_best": true
    }
  ]
}

リンク

コメント