这是一个使用 AviationStack API 的模型上下文协议(MCP)服务器,它能提供实时飞行追踪和状态信息,让你随时掌握航班动态。
本 FlightRadar MCP 服务器能为你提供便捷的航班信息查询服务,下面为你介绍它的各项功能、安装步骤和使用示例。
此 MCP 服务器提供了三个主要工具:
要通过 Smithery 自动为 Claude Desktop 安装 flightradar - mcp - server,可使用以下命令:
npx -y @smithery/cli install @Cyreslab-AI/flightradar-mcp-server --client claude
git clone https://github.com/Cyreslab-AI/flightradar-mcp-server.git
cd flightradar-mcp-server
npm install
npm run build
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
:{
"mcpServers": {
"flightradar": {
"command": "node",
"args": [],
"env": {},
"prependEnv": true,
"appendEnv": true,
"cwd": "/path/to/flightradar-mcp-server",
"name": "FlightRadar"
}
}
}
请确保将 /path/to/flightradar-mcp-server
替换为实际路径。
curl --location 'http://localhost:3000/api/v1/flight' \
--header 'Content-Type: application/json' \
--data-raw '{
"operation": "get_flight_data",
"args": {
"flight_number": "LH297"
}
}'
curl --location 'http://localhost:3000/api/v1/flight' \
--header 'Content-Type: application/json' \
--data-raw '{
"operation": "search_flights",
"args": {
"airport": "SFO"
}
}'
curl --location 'http://localhost:3000/api/v1/flight' \
--header 'Content-Type: application/json' \
--data-raw '{
"operation": "get_flight_status",
"args": {
"flight_number": "DL456"
}
}'
此服务器需要 AviationStack API 密钥才能运行。您可以在 aviationstack.com 免费获取一个密钥(每月 100 次请求)。
API 密钥应作为名为 AVIATIONSTACK_API_KEY
的环境变量提供到您的 MCP 设置配置中。
本项目采用 MIT 许可证。