Flight Search

io.github.arjunprabhulal由 GitHub 帳號 arjunprabhulal 發布v0.3.0更新於 Oct 24, 2026

Search Google Flights through SerpApi: one-way and round-trip flights by IATA airport code.

概覽

AI 產生的概覽

一個本機 MCP 伺服器,透過 SerpApi 搜尋 Google Flights,依 IATA 機場代碼回傳單程與來回航班。

可以做什麼
依 IATA 代碼搜尋兩地之間的航班,可選回程日期以查詢來回,回傳航空公司、美元價格、時長、轉機次數、出發與抵達時間及艙等。查看伺服器運作狀態與版本。
適用情境
適合讓助理查詢兩地之間的航班選項與價格,例如在別處訂票前比較單程或來回行程。
執行需求
以本機 Python 套件執行(需 Python 3.10 以上,或使用 uv,透過 uvx 或 pip install 啟動),也可用 Docker。需要在 SERP_API_KEY 環境變數中提供 SerpApi 金鑰,並需要連線至 SerpApi 的網路存取。
安裝前請注意
SerpApi 金鑰屬於機密資訊,透過 SERP_API_KEY 傳入,避免寫入共用設定。查詢內容與機場代碼會傳送給 SerpApi,使用量可能計入你的 SerpApi 方案或額度。僅為唯讀查詢,不會進行訂票。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Flight Search,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

MCP Flight Search

An MCP server that searches Google Flights through SerpApi, for Claude, Cursor and other MCP clients. One-way and round-trip searches by IATA airport code, with prices, durations, stops and times.

[CI] [PyPI]

Requirements

  • Python 3.10 or later (or uv)
  • A SerpApi key in SERP_API_KEY (serpapi.com has a free tier)

Use it from an MCP client

Add it to your client's MCP configuration (Claude Desktop, Claude Code, Cursor, ...):

json
{  "mcpServers": {    "flight-search": {      "command": "uvx",      "args": ["mcp-flight-search"],      "env": { "SERP_API_KEY": "your-serpapi-key" }    }  }}

Or install it with pip install mcp-flight-search and use "command": "mcp-flight-search".

Run it yourself

bash
export SERP_API_KEY="your-serpapi-key"mcp-flight-search                                    # stdio (default)mcp-flight-search --connection_type http --port 3001 # Streamable HTTP at http://127.0.0.1:3001/mcp

LOG_LEVEL=DEBUG shows more detail on stderr. The API key is never logged.

With Docker:

bash
docker build -t mcp-flight-search .docker run -i --rm -e SERP_API_KEY=your-serpapi-key mcp-flight-search

Tools

ToolWhat it does
search_flights_toolFlights between two airports. origin, destination: IATA codes such as ATL, LAX. outbound_date: YYYY-MM-DD. return_date (optional): YYYY-MM-DD for a round trip. Returns structured results: airline, price (USD), duration, stops, departure, arrival, cabin class.
server_statusChecks the server is running and reports its version.

Development

bash
uv syncuv run pytestuv run ruff check .

License

MIT

來源:README.md,提交 c379625

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.3.0最新Oct 15, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分