Skip to main content
Glama

Google-Flights-MCP-Server

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 )。

設定

  1. リポジトリをクローンします。
    git clone https://github.com/opspawn/Google-Flights-MCP-Server.git cd Google-Flights-MCP-Server
  2. 仮想環境を作成します (推奨):
    python -m venv .venv source .venv/bin/activate # On Windows use `.venv\Scripts\activate`
  3. 依存関係をインストールします:
    pip install -r requirements.txt
  4. Playwright ブラウザをインストールします ( fast_flightsに必要)。
    playwright install

サーバーの実行

Python を使用してサーバーを直接実行できます。

python server.py

サーバーはデフォルトで STDIO トランスポートを使用します。

MCP クライアント (例: Cline、Claude Desktop) との統合

MCPクライアントの設定ファイルにサーバーを追加します。例: cline_mcp_settings.jsonまたはclaude_desktop_config.json

{ "mcpServers": { "google-flights": { "command": "/path/to/your/.venv/bin/python", // Use absolute path to venv python "args": [ "/absolute/path/to/flight_mcp_server/server.py" // Use absolute path to server script ], "env": {}, "disabled": false, "autoApprove": [] } // ... other servers } }

重要: commandargsのパスを、仮想環境の Python 実行可能ファイルとシステム上のserver.pyスクリプトへの絶対パスに置き換えます。

注記

  • このサーバーは、コアとなるフライトスクレイピング機能としてfast_flightsライブラリ( https://github.com/AWeirdDev/flightsより提供)をバンドルしています。利用規約については、付属のLICENSEファイルをご覧ください。
  • Googleフライトの変更やネットワーク状況によっては、フライトスクレイピングが不安定になったり、遅くなったりすることがあります。ツールには基本的なエラー処理機能が含まれています。
  • find_all_flights_in_rangeツールは、多くの日付の組み合わせをチェックするため、多くのリソースを消費する可能性があります。
-
security - not tested
A
license - permissive license
-
quality - not tested

このMCPサーバーは、AIアシスタントがGoogleフライトを使ってオンラインでフライト情報を検索することを可能にします。特定の日付のフライトを検索したり、日付の範囲を指定してすべての選択肢や最安値のフライトだけを検索したりできます。

  1. 特徴
    1. 設定
      1. サーバーの実行
        1. MCP クライアント (例: Cline、Claude Desktop) との統合
          1. 注記

            Related MCP Servers

            • A
              security
              F
              license
              A
              quality
              An 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 2 months ago
              3
              34
              52
              TypeScript
            • -
              security
              A
              license
              -
              quality
              A 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 2 months ago
              48
              Python
              MIT License
              • Apple
            • -
              security
              F
              license
              -
              quality
              An 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 6 days ago
              Python
              • Linux
              • Apple
            • -
              security
              F
              license
              -
              quality
              This 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 6 days ago
              Python
              • Linux
              • Apple

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/opspawn/Google-Flights-MCP-Server'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server