SF

sunsetcoder/flightradar24-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

47 stars 6 forks 质量 66 趋势 13MIT

飞行跟踪模型上下文协议服务器

概览

一台Claude桌面MCP服务器,利用Flightradar24数据帮助你实时追踪航班。非常适合航空爱好者、旅行规划者或任何对头顶航班感兴趣的人! - 🔍 实时跟踪任何航班 - ⏰ 获取特定航班的到达和起飞时间 - 🌉 查看机场航班状态 - 🚨 监控紧急航班 - 安装在电脑上的Claude桌面- Flightradar24 API密钥(可从Flightradar24官网获取)* 1. 在你的电脑某处克隆这个仓库: 2. 安装依赖并构建项目: 1. 打开你的Claude Desktop配置文件: 2. 在配置中的mcpServers对象中添加以下内容: 3. 重要步骤: - 用你克隆仓库的完整路径替换 /FULL/PATH/TO/flightradar24-mcp-server。- 在环境部分添加你的Flightradar24 API密钥。- 确保路径中使用斜杠(/),即使在Windows上也是如此。

概述(AI 翻译)

一台Claude桌面MCP服务器,利用Flightradar24数据帮助你实时追踪航班。非常适合航空爱好者、旅行规划者或任何对头顶航班感兴趣的人!

这能做什么?✨

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

设置指南 🚀

1.前提条件

  • 安装在您电脑上的Claude桌面
  • Flightradar24 API 密钥(可从 Flightradar24 官网获取)*

2.安装

  1. 在你的电脑某处克隆这个仓库:

  2. 安装依赖并构建项目:

3.与 Claude Desktop 的集成

  1. 打开你的Claude Desktop配置文件:

  2. 在配置中的 mcpServers 对象中添加以下内容:

  3. 重要步骤:

  • 将/FULL/PATH/TO/flightradar24-mcp-server替换为你克隆仓库的完整路径
  • 在env部分添加你的Flightradar24 API密钥
  • 确保路径中使用前斜杠(/),即使在Windows上也是如此
  1. 重启 Claude Desktop 以使更改生效

环境设置

  1. 复制.env.example到.env:

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Flightradar24 MCP Server 🛩️

A Claude Desktop MCP server that helps you track flights in real-time using Flightradar24 data. Perfect for aviation enthusiasts, travel planners, or anyone curious about flights overhead!

What Can This Do? ✨

  • 🔍 Track any flight in real-time
  • ⏰ Get arrival and departure times for specific flights
  • 🌉 View the status of flights at an airport
  • 🚨 Monitor emergency flights

Setup Guide 🚀

1. Prerequisites

2. Installation

  1. Clone this repository somewhere on your computer:

    git clone https://github.com/sunsetcoder/flightradar24-mcp-server.git
    
  2. Install dependencies & build the project:

    cd flightradar24-mcp-server
    npm install
    npm run build
    

3. Integration with Claude Desktop

  1. Open your Claude Desktop configuration file:

    # On Mac:
    ~/Library/Application Support/Claude/claude_desktop_config.json
    
    # On Windows:
    %APPDATA%/Claude/claude_desktop_config.json
    
  2. Add the following to the mcpServers object in your config:

    {
      "mcpServers": {
        "flightradar24-server": {
          "command": "node",
          "args": [
            "/Users///flightradar24-mcp-server/dist/index.js"
          ],
          "env": {
            "FR24_API_KEY": "your_api_key_here",
            "FR24_API_URL": "https://fr24api.flightradar24.com"
          }
        }
      }
    }
    
  3. Important Steps:

    • Replace /FULL/PATH/TO/flightradar24-mcp-server with the actual full path to where you cloned the repository
    • Add your Flightradar24 API key in the env section
    • Make sure to use forward slashes (/) in the path, even on Windows
  4. Restart Claude Desktop for the changes to take effect

Environment Setup

  1. Copy .env.example to .env:

    cp .env.example .env
    
  2. Update the .env file with your actual Flightradar24 API key:

    FR24_API_KEY=your_actual_api_key_here
    

Note: Never commit your actual API key to version control. The .env file is ignored by git for security reasons.

Let’s Try It Out! 🎮

Once the server is configured, you can ask Claude questions like:

  1. “What’s the ETA for United Airlines flight UA123?”
  2. “Show me all flights currently at SFO”
  3. “Are there any emergency flights in the area?”
  4. “Show me all international flights arriving at SFO in the next 2 hours”
  5. “How many commercial flights are currently over the Pacific Ocean?”
  6. “Identify any flights that have declared an emergency in the California region”

Example conversation with Claude:

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "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" } } } }