一个 Claude 桌面 MCP 服务器,利用 Flightradar24 的数据帮助你实时跟踪航班。非常适合航空爱好者、旅行规划者或任何对头顶飞行感兴趣的人!
将此仓库克隆到您计算机上的某个位置:
git clone https://github.com/sunsetcoder/flightradar24-mcp-server.git

安装依赖并构建项目:
cd flightradar24-mcp-server
npm install
npm run build

打开您的 Claude Desktop 配置文件:
# 在 Mac 上: ~/Library/Application Support/Claude/claude_desktop_config.json # 在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json
在配置文件中的 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"
}
}
}
}

重要步骤:
/FULL/PATH/TO/flightradar24-mcp-server
替换为您实际克隆仓库的完整路径env
部分添加您的 Flightradar24 API 密钥/
),即使是在 Windows 上也是如此重启 Claude Desktop 使更改生效
将 .env.example
复制为 .env
:
cp .env.example .env

更新 .env
文件,填入您的实际 Flightradar24 API 密钥:
FR24_API_KEY=your_actual_api_key_here
注意:切勿将实际 API 密钥提交到版本控制系统。出于安全考虑,.env
文件被 git 忽略。
一旦服务器配置完成,您可以向 Claude 提出如下问题:
与 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
中的路径是否正确MIT
为航空爱好者用心制作 ❤️