Google フライト MCP サーバー
この MCP サーバーは、バンドルされたfast_flights
ライブラリを使用して Google Flights データと対話するためのツールを提供します。
特徴
次の MCP ツールを提供します。
get_flights_on_date
: 特定の日付に 2 つの空港間で利用可能な片道航空便を取得します。引数:
origin
(str)、destination
(str)、date
(str、 YYYY-MM-DD)、adults
(int、 オプション)、seat_type
(str、 オプション)、return_cheapest_only
(bool、 オプション、 デフォルトはFalse
)。
get_round_trip_flights
: 特定の出発日と帰着日に利用可能な往復航空券を取得します。引数:
origin
(str)、destination
(str)、departure_date
(str、YYYY-MM-DD)、return_date
(str、YYYY-MM-DD)、adults
(int、オプション)、seat_type
(str、オプション)、return_cheapest_only
(bool、オプション、デフォルトはFalse
)。
find_all_flights_in_range
: 指定した日付範囲内で利用可能な往復航空券を検索します。オプションで、日付の組み合わせごとに見つかった最も安いフライトのみを返すこともできます。引数:
origin
(str)、destination
(str)、start_date_str
(str、YYYY-MM-DD)、end_date_str
(str、YYYY-MM-DD)、min_stay_days
(int、オプション)、max_stay_days
(int、オプション)、adults
(int、オプション)、seat_type
(str、オプション)、return_cheapest_only
(bool、オプション、デフォルトはFalse
)。
設定
リポジトリをクローンします。
git clone https://github.com/opspawn/Google-Flights-MCP-Server.git cd Google-Flights-MCP-Server仮想環境を作成します (推奨):
python -m venv .venv source .venv/bin/activate # On Windows use `.venv\Scripts\activate`依存関係をインストールします:
pip install -r requirements.txtPlaywright ブラウザをインストールします (
playwright install
サーバーの実行
Python を使用してサーバーを直接実行できます。
サーバーはデフォルトで STDIO トランスポートを使用します。
MCP クライアント (例: Cline、Claude Desktop) との統合
MCPクライアントの設定ファイルにサーバーを追加します。例: cline_mcp_settings.json
またはclaude_desktop_config.json
重要: command
とargs
のパスを、仮想環境の Python 実行可能ファイルとシステム上のserver.py
スクリプトへの絶対パスに置き換えます。
注記
このサーバーは、コアとなるフライトスクレイピング機能として
fast_flights
ライブラリ( https://github.com/AWeirdDev/flightsより提供)をバンドルしています。利用規約については、付属のLICENSE
ファイルをご覧ください。Googleフライトの変更やネットワーク状況によっては、フライトスクレイピングが不安定になったり、遅くなったりすることがあります。ツールには基本的なエラー処理機能が含まれています。
find_all_flights_in_range
ツールは、多くの日付の組み合わせをチェックするため、多くのリソースを消費する可能性があります。
This server cannot be installed
このMCPサーバーは、AIアシスタントがGoogleフライトを使ってオンラインでフライト情報を検索することを可能にします。特定の日付のフライトを検索したり、日付の範囲を指定してすべての選択肢や最安値のフライトだけを検索したりできます。
Related MCP Servers
- AsecurityFlicenseAqualityAn MCP (Model Context Protocol) server that provides Google search capabilities and webpage content analysis tools. This server enables AI models to perform Google searches and analyze webpage content programmatically.Last updated -11139
- -securityAlicense-qualityA Model Context Protocol (MCP) based search API server that provides standardized access to Google Maps, Google Flights, Google Hotels and other services. This server enables AI assistants to access various search services through a unified interface.Last updated -58MIT License
- -securityFlicense-qualityAn MCP server that provides access to Google's API Discovery Service, allowing agents to discover and interact with Google APIs through natural language commands.Last updated -
- -securityFlicense-qualityThis MCP Server provides a natural language interface to interact with Google's Policy Analyzer API, allowing users to analyze policies and evaluate compliance through conversations.Last updated -