
salamentic/google-flights-mcp
API developmentこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
高速フライトAPIを使用して、旅行代理店レベルのフライトプランを作成するモデルコンテキストプロトコルサーバー.
概要
高速フライトAPIを使用して、旅行代理店レベルのフライトプランを作成するモデルコンテキストプロトコルサーバー。 - 片道および往復フライトを検索 - 旅行パラメータに基づいて包括的な旅行計画を作成 - 空港コード情報を取得する - 一般的な旅行クエリのためのテンプレートを使用する 1。 Python 3.10以上インストールされていることを確認してください 2. 必要なパッケージをインストールします。 1。 Claudeデスクトップ2をインストールします。 Claudeデスクトップの設定ファイルを作成するか、編集します。 - macOS:〜/ Library /アプリケーションサポート/ Claude / claude desktop config.json - Windows:%APPDATA%\Claude\claude desktop config.json 3. フライトプランナーサーバーの設定を追加します。 4。 /PATH/TO/をサーバーファイル5に実際のパスで置き換えます。 Claudeデスクトップを再起動する テストおよび開発のために、MCPの検査官を使用できます: - search one way flights:空港間の片道便を検索 - search round trip flights:空港間の往復フライトを検索 - create travel plan:包括的な旅行計画を生成
概要(AI 翻訳)
高速フライトAPIを使用して、旅行代理店レベルのフライトプランを作成するモデルコンテキストプロトコルサーバー。
##特徴
- 片道および往復便を検索
- 旅行パラメータに基づいて包括的な旅行計画を作成する
- 空港コード情報を取得する
- 一般的な旅行クエリのテンプレートを使用する
インストール
1。 Python 3.10以上インストールされていることを確認してください 2. 必要なパッケージを取付けて下さい:
使用法
サーバーの実行
サーバを直接実行できます。
##Claudeデスクトップとの統合
- Claudeデスクトップをインストールする 2。 Claudeデスクトップ設定ファイルを作成または編集します。
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - ウィンドウ:
%APPDATA%\Claude\claude_desktop_config.json
- フライトプランナーサーバーの設定を追加します。
4。 [/PATH/TO/をサーバーファイルへの実際のパスに置き換えます
5. クロードデスクトップを再起動する
##MCPインスペクタの使用
テストおよび開発のために、MCPの検査官を使用できます:
利用可能なツール
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
Flight Planner MCP Server
A Model Context Protocol server that creates travel agent-level flight plans using the fast-flights API.
Features
- Search for one-way and round-trip flights
- Create comprehensive travel plans based on trip parameters
- Get airport code information
- Use templates for common travel queries
Installation
- Make sure you have Python 3.10 or higher installed
- Install the required packages:
pip install mcp fast-flights
Usage
Running the Server
You can run the server directly:
python flight_planner_server.py
Integrating with Claude Desktop
-
Install Claude Desktop
-
Create or edit your Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
-
Add the flight-planner server configuration:
{
"mcpServers": {
"flight-planner": {
"command": "python",
"args": [
"/PATH/TO/flight_planner_server.py"
],
"env": {
"PYTHONPATH": "/PATH/TO/PROJECT"
}
}
}
}
- Replace
/PATH/TO/with the actual path to your server file - Restart Claude Desktop
Using the MCP Inspector
For testing and development, you can use the MCP Inspector:
# Install the inspector
npm install -g @modelcontextprotocol/inspector
# Run the inspector with your server
npx @modelcontextprotocol/inspector python flight_planner_server.py
Available Tools
search_one_way_flights: Search for one-way flights between airportssearch_round_trip_flights: Search for round-trip flights between airportscreate_travel_plan: Generate a comprehensive travel plan
Available Resources
airport_codes://{query}: Get airport code information based on a search query
Available Prompts
flight_search_prompt: Template for searching flightstravel_plan_prompt: Template for creating a comprehensive travel plan
Example Queries for Claude
Once integrated with Claude Desktop, you can ask things like:
- “What flights are available from NYC to SFO on 2025-04-15?”
- “Can you create a travel plan for my business trip from LAX to TPE from 2025-05-01 to 2025-05-08?”
- “Help me find airport codes for Tokyo.”
- “What’s the best time to book flights from Boston to London for a summer vacation?”
License
MIT
インストール
npx @modelcontextprotocol/inspector python flight_planner_server.py設定
{
"mcpServers": {
"flight-planner": {
"command": "python",
"args": [
"/PATH/TO/flight_planner_server.py"
],
"env": {
"PYTHONPATH": "/PATH/TO/PROJECT"
}
}
}
}