Skip to main content
Glama
salamentic

Flight Planner MCP Server

by salamentic

フライトプランナーMCPサーバー

fast-flights API を使用して旅行代理店レベルのフライト プランを作成するモデル コンテキスト プロトコル サーバー。

特徴

  • 片道・往復航空券を検索

  • 旅行パラメータに基づいて包括的な旅行計画を作成する

  • 空港コード情報を取得する

  • よくある旅行関連の問い合わせにテンプレートを使用する

Related MCP server: fli

インストール

  1. Python 3.10以降がインストールされていることを確認してください

  2. 必要なパッケージをインストールします。

pip install mcp fast-flights

使用法

サーバーの実行

サーバーを直接実行できます:

python flight_planner_server.py

Claude Desktopとの統合

  1. Claude Desktopをインストールする

  2. Claude Desktop 構成ファイルを作成または編集します。

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

    • Windows: %APPDATA%\Claude\claude_desktop_config.json

  3. フライトプランナー サーバーの構成を追加します。

{
  "mcpServers": {
    "flight-planner": {
      "command": "python",
      "args": [
        "/PATH/TO/flight_planner_server.py"
      ],
      "env": {
        "PYTHONPATH": "/PATH/TO/PROJECT"
      }
    }
  }
}
  1. /PATH/TO/サーバーファイルへの実際のパスに置き換えます

  2. Claudeデスクトップを再起動します

MCPインスペクターの使用

テストと開発には、MCP Inspector を使用できます。

# Install the inspector
npm install -g @modelcontextprotocol/inspector

# Run the inspector with your server
npx @modelcontextprotocol/inspector python flight_planner_server.py

利用可能なツール

  • search_one_way_flights : 空港間の片道便を検索

  • search_round_trip_flights : 空港間の往復航空券を検索

  • create_travel_plan : 包括的な旅行計画を作成する

利用可能なリソース

  • airport_codes://{query} : 検索クエリに基づいて空港コード情報を取得します

利用可能なプロンプト

  • flight_search_prompt : フライト検索用テンプレート

  • travel_plan_prompt : 包括的な旅行計画を作成するためのテンプレート

クロードのクエリ例

Claude Desktop と統合すると、次のようなことを質問できるようになります。

  • 「2025年4月15日にニューヨークからサンフランシスコへのフライトはどれですか?」

  • 「2025年5月1日から2025年5月8日までのLAXからTPEへの出張の旅行プランを作成できますか?」

  • 「東京の空港コードを調べるのを手伝ってください。」

  • 「夏休みにボストンからロンドンへの航空券を予約するのに最適な時期はいつですか?」

ライセンス

マサチューセッツ工科大学

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    Integrates Google Flights data into AI workflows for natural language flight searches, price comparisons, flexible date searches, and multi-city itinerary planning with support for various cabin classes and passenger types.
    9
    7
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables flight search and fare calendar exploration by interacting with Google Flights' API, supporting detailed filters for origin, destination, dates, cabin class, airlines, and more.
    4,499 PyPI
    3,206
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables live flight search and pricing via the Duffel Flights API, allowing AI agents to query flight data and pricing.
    153 npm
    MIT