flightradar24-mcp-server

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Uses .env files for configuration management, particularly for storing sensitive Flightradar24 API credentials securely outside of version control.

  • Allows tracking and querying United Airlines flights specifically, as demonstrated in the example query 'What's the status of flight UA123?'

Flightradar24 MCP 服务器🛩️

Claude Desktop MCP 服务器,可帮助您使用 Flightradar24 数据实时追踪航班。非常适合航空爱好者、旅行规划师或任何对飞行感兴趣的人!

这能做什么?✨

  • 🔍 实时追踪任何航班
  • ⏰ 获取特定航班的到达和起飞时间
  • 🌉 查看机场的航班状态
  • 🚨 监控紧急航班

设置指南🚀

1. 先决条件

2.安装

  1. 将此存储库克隆到您的计算机上的某个位置:
    git clone https://github.com/sunsetcoder/flightradar24-mcp-server.git
  2. 安装依赖项并构建项目:
    cd flightradar24-mcp-server npm install npm run build

3. 与 Claude Desktop 集成

  1. 打开您的 Claude Desktop 配置文件:
    # On Mac: ~/Library/Application Support/Claude/claude_desktop_config.json # On Windows: %APPDATA%/Claude/claude_desktop_config.json
  2. 将以下内容添加到配置中的mcpServers对象:
    { "mcpServers": { "flightradar24-server": { "command": "node", "args": [ "/Users/<username>/<FULL_PATH...>/flightradar24-mcp-server/dist/index.js" ], "env": { "FR24_API_KEY": "your_api_key_here", "FR24_API_URL": "https://fr24api.flightradar24.com" } } } }
  3. 重要步骤:
    • /FULL/PATH/TO/flightradar24-mcp-server替换为您克隆存储库的实际完整路径
    • env部分添加您的 Flightradar24 API 密钥
    • 确保在路径中使用正斜杠 ( / ),即使在 Windows 上
  4. 重新启动 Claude Desktop 以使更改生效

环境设置

  1. .env.example复制到.env
    cp .env.example .env
  2. 使用您的实际 Flightradar24 API 密钥更新.env文件:
    FR24_API_KEY=your_actual_api_key_here

注意:切勿将实际的 API 密钥提交到版本控制。出于安全原因,git 会忽略.env文件。

快来尝试一下吧!🎮

服务器配置完成后,您可以向 Claude 询问以下问题:

  1. “联合航空 UA123 航班的预计到达时间是什么时候?”
  2. “显示目前在旧金山国际机场的所有航班”
  3. “该地区有紧急航班吗?”
  4. “显示未来 2 小时内抵达旧金山国际机场的所有国际航班”
  5. “目前有多少商业航班飞越太平洋?”
  6. “确定在加州地区宣布紧急状态的所有航班”

与 Claude 的对话示例:

You: What's the status of flight UA123? Claude: Let me check that for you... [Claude will use the MCP server to fetch real-time flight information]

常见问题和故障排除🤔

“克劳德无法连接到服务器”

  • 检查claude_desktop_config.json中的路径是否正确
  • 确保使用完整的绝对路径
  • 验证您的 API 密钥是否正确
  • 尝试重启 Claude Desktop

“服务器没有响应”

  • 确保您的 Flightradar24 API 密钥有效
  • 检查API URL是否正确
  • 在服务器日志中查找任何错误消息

FlightRadar API 访问

  • 注意:使用 Flightradar24 的 API 需要订阅

需要更多帮助?🆘

  1. 确保 Claude Desktop 已正确安装
  2. 验证您的 Flightradar24 API 密钥是否有效
  3. 检查配置文件中的路径是否正确
  4. 在 MCP 服务器日志中查找错误消息

许可证📄

麻省理工学院


为航空爱好者倾情打造

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Claude Desktop MCP 服务器,可帮助您使用 Flightradar24 数据实时追踪航班。非常适合航空爱好者、旅行规划师或任何对飞行感兴趣的人!

  1. What Can This Do? ✨
    1. Setup Guide 🚀
      1. 1. Prerequisites
      2. 2. Installation
      3. 3. Integration with Claude Desktop
    2. Environment Setup
      1. Let's Try It Out! 🎮
        1. Common Questions & Troubleshooting 🤔
          1. "Claude can't connect to the server"
          2. "The server isn't responding"
          3. FlightRadar API Access
        2. Need More Help? 🆘
          1. License 📄
            ID: 5w29onbypp