
谷歌航班的MCP服务器!!
概览
一个模型上下文协议(MCP)服务器实现,将您的代理或大型语言模型与 Google 航班数据连接起来。访问航班信息,查找最便宜的选项,按时间限制筛选,获取 Google 航班的最佳推荐! 该MCP服务器无缝访问Google Flights数据,使您的AI客服能够: - 检索 - 查找 - 根据 - 获取谷歌推荐航班筛选航班 目前,这个工具只支持单程(如果你要求往返,它会支持两次单程!),我把它当作一个有趣的个人项目,学习MCP。如果有人觉得这个有用或者想让我做,我可以着手添加往返和多城市功能!!只要提出PR或者联系我! 只需按照快速入门设置,即可在Claude Desktop、光标或其他MCP客户端上设置,然后随时提问,了解你想要的飞行信息!! 1.
概述(AI 翻译)
一个模型上下文协议(MCP)服务器实现,将您的代理或大型语言模型与 Google 航班数据连接起来。访问航班信息,查找最便宜的选项,按时间限制筛选,获取 Google 航班的最佳推荐!
🌍 概述
该MCP服务器无缝访问Google Flights数据,使您的AI客服能够:
- 检索 综合飞行信息
- 查找最便宜的可用航班
- 基于特定时间限制的过滤航班
- 获取谷歌航班推荐的最佳航班
注: 目前这个工具只做单向(如果你要求往返,它会做两趟单程!),我把它当作一个有趣的个人项目来学习MCP。
如果有人觉得这有用或者希望我帮忙,我可以帮忙添加往返和多城市功能!!只要提出PR或者联系我!
🎥 使用与演示
只需按照快速入门设置,即可在Claude Desktop、光标或其他MCP客户端上设置,然后随时提问,了解你想要的飞行信息!!
[插入Claude桌面演示视频]
🛠️ 工具
可用功能/工具
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Google Flights MCP Server
A Model Context Protocol (MCP) server implementation that connects your Agents or LLMs to Google Flights data. Access flight information, find the cheapest options, filter by time restrictions, and get Google Flights’ best recommendations!
🌍 Overview
This MCP server provides seamless access to Google Flights data, enabling your AI agents to:
- Retrieve Comprehensive Flight Info
- Find the Cheapest Available Flights
- Filter flights based on Specific Time Constraints
- Get Google Flights’ recommended Best Flights
Note: Currently, this tool only does one-ways (if you ask for a round-trip, it’ll do two one-ways though!) as I built it as a fun pet project to learn about MCPs.
If anyone actually finds this useful or wants me to, I can work on adding Round-Trip and Multi-City functionality!! Just raise a PR or hit me up!
🎥 Usage & Demo
Just follow the Quick Start to set this up for Claude Desktop, Cursor, or another MCP Client and just ask away to find out about your desired flight info!!
[Insert Claude Desktop Demo Video]
🛠️ Tools
Available Functions/Tools
-
get_general_flights_info(): Retrieve comprehensive flight information for a given route- Provides detailed flight details for up to 40 flights
- Returns a list of human-readable flight descriptions
-
get_cheapest_flights(): Find the most affordable flight options- Sorts and returns flights by lowest price
- Includes current overall route pricing information
-
get_best_flights(): Get Google Flights’ top recommended flights- Identifies and returns flights marked as “best” by Google Flights
- Helps users find optimal flight choices
-
get_time_filtered_flights(): Filter flights by specific time constraints- Search for flights before or after a target time
- Allows precise scheduling preferences
Input Parameters
Required Parameters
-
origin: str- Origin airport IATA code (e.g., “ATL”, “SCL”, “JFK”) -
destination: str- Destination airport IATA code (e.g., “DTW”, “ICN”, “LIR”) -
departure_date: str- Departure date in YYYY-MM-DD format
Optional Parameters
-
trip_type: str- Trip type, either “one-way” or “round-trip” (default: “one-way”) -
seat: str- Seat type: “economy”, “premium-economy”, “business”, or “first” (default: “economy”) -
adults: int- Number of adult passengers (default: 1) -
children: int- Number of child passengers (default: 0) -
infants_in_seat: int- Number of infants requiring a seat (default: 0) -
infants_on_lap: int- Number of infants traveling on a lap (default: 0)
Additional Parameters for Specific Functions
-
n_flights: int- Number of flights to return (default: 40, only forget_general_flights_info()) -
state: str- Time filter state, either “before” or “after” (only forget_time_filtered_flights())
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"flights": {
"command": "/ABSOLUTE/PATH/.local/bin/uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER",
"run",
"flights.py"
]
}
}
}