Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"flight-ticket-server": {
"args": [
"flight-ticket-mcp-server@latest"
],
"command": "uvx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
一个基于模型上下文协议(MCP)的航空机票查询服务器。该服务器为AI助手提供标准化的航班实时动态查询功能接口。
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
uvx 'flight-ticket-mcp-server' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked flight-ticket-mcp-server against OSV.dev.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in maps / ecommerce
A command line tool for setting up commercetools MCP server
Hawaii MCP: tours, events, weather, restaurants, and day-plan itineraries across 4 islands.
Real-time SF Muni departures, routes, alerts, vehicle positions, and schedules.
Rent GPUs, robots, drones, and construction gear on RIGShare; also onboards equipment owners.
MCP Security Weekly
Get CVE alerts and security updates for FlightTicketMCP and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
一个基于模型上下文协议(MCP)的航空机票查询服务器。该服务器为AI助手提供标准化的航班实时动态查询功能接口。
Flight Ticket MCP Server 实现了供航空机票相关查询操作的工具和资源。它作为AI助手与航空服务系统之间的桥梁,专注于航班实时动态查询功能。
该服务器采用模块化架构,将核心功能、工具和实用程序分离,使其具有高度的可维护性和可扩展性。
flight_search_tools.py) - 航班路线查询功能flight_transfer_tools.py) - 多段航程和中转查询flight_info_tools.py) - 根据航班号查询详细信息simple_opensky_tools.py) - 基于OpenSky Network的实时航班跟踪weather_tools.py) - 基于经纬度和城市的天气查询date_tools.py) - 日期时间获取和处理cities_dict.py) - 282个城市和机场代码映射validators.py) - 输入参数验证和格式检查date_utils.py) - 日期格式化和时区处理api_client.py) - HTTP请求封装和错误处理本服务器支持三种传输协议:
# 使用pip安装
pip install flight-ticket-mcp-server
# 或使用uvx直接运行(无需安装)
uvx flight-ticket-mcp-server
# 或使用uvx安装后运行
uvx --install flight-ticket-mcp-server
# 克隆或下载项目
cd FlightTicketMCP
# 安装依赖
pip install -r requirements.txt
# 或从本地源码安装
pip install -e .
uvx 是一个现代的Python包运行工具,可以直接运行PyPI包而无需先安装到系统环境:
# 安装uv(包含uvx工具)
pip install uv
# 直接运行MCP服务器(无需安装)
uvx flight-ticket-mcp-server
# 使用最新版本(推荐)
uvx flight-ticket-mcp-server@latest
# 带参数运行
uvx flight-ticket-mcp-server --help
# 指定版本运行
uvx flight-ticket-mcp-server==1.0.1
# 强制重新安装最新版本
uvx flight-ticket-mcp-server@latest --help
uvx 的优势:
# 使用主启动文件(默认启动SSE模式,监听127.0.0.1:8000)
python flight_ticket_server.py
# 或者直接运行main.py
python main.py
# 启用调试模式,会输出详细日志
set MCP_DEBUG=true
python flight_ticket_server.py
# Linux/macOS
export MCP_DEBUG=true
python flight_ticket_server.py
# 直接启动,使用默认SSE配置(127.0.0.1:8000)
python flight_ticket_server.py
# Windows
set MCP_TRANSPORT=stdio
python flight_ticket_server.py
# Linux/macOS
export MCP_TRANSPORT=stdio
python flight_ticket_server.py
# Windows
set MCP_TRANSPORT=streamable-http
set MCP_HOST=127.0.0.1
set MCP_PORT=8000
python flight_ticket_server.py
# Linux/macOS
export MCP_TRANSPORT=streamable-http
export MCP_HOST=127.0.0.1
export MCP_PORT=8000
python flight_ticket_server.py
项目提供了 .env.example 文件作为配置模板:
复制配置模板:
# 复制配置模板
cp .env.example .env
编辑配置文件: