Skip to main content
Glama

flight

一个基于 SerpApiMCP 服务器,提供航班搜索和 Google Flights 路线查询工具。

工具

search_flights (flight.py)

通过 Google Flights 搜索航班。

参数

类型

说明

departure_id

str

3 字母出发机场代码(例如 AUS

arrival_id

str

3 字母到达机场代码(例如 JFK

outbound_date

str

出发日期,YYYY-MM-DD

return_date

str | None

返回日期,YYYY-MM-DD(单程时省略)

currency

str

货币代码,默认为 USD

get_directions (map.py)

通过 Google Maps 获取两个地点之间的路线和路径信息。

参数

类型

说明

start_addr

str

起始地址或地点名称

end_addr

str

目的地地址或地点名称

travel_mode

str

以下之一:bestdrivingtwo-wheelertransitwalkingcyclingflight。默认为 driving

Related MCP server: Google Flights MCP Server

设置

需要 Python 3.13+ 和 SerpApi API 密钥。

uv sync

将你的 API 密钥添加到 .env

SERPAPI_API_KEY="your-key-here"

运行

每个工具都是独立的 MCP 服务器,通过 stdio 运行:

uv run flight.py
uv run map.py

将兼容 MCP 的客户端(例如 Claude Desktop)指向这些脚本,即可使用这些工具。

Install Server
F
license - not found
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • SerpApi MCP — wraps SerpApi (serpapi.com) search engines

  • Web search, news, page retrieval, sitemaps, and trending topics through Search1API.

  • Flight search & booking for AI agents. 400+ airlines, $20-50 cheaper than OTAs.

View all MCP Connectors

Latest Blog Posts

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/nihalpatel99/mcp-flight-map'

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