LF

lukashaas/flighty-mcp

效率工作流

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

23 stars 9 forks 质量 72 趋势 19MIT

用于访问本地Flighty应用飞行数据的MCP服务器

概览

一个本地MCP(模型上下文协议)服务器,让AI助手访问你的Flighty飞行数据。直接读取Flighty macOS应用本地SQLite数据库。 - - 查看您自己的即将航班、过去航班或全部航班 - - 查看已连接朋友的航班,可按名称筛选 - - 按航班号或ID查询任意航班 - - 按航空公司、机场、日期范围筛选 - - 查看当前状态、延误、登机口、天气 - - 历史准点表现统计 - - 按航班代码和日期添加航班,可选自动查询机场 - - 按IATA代码、城市或名称查询机场 - - 按IATA代码、名称或联盟查询航空公司 - - 汇总统计数据(距离、顶级航线、航空公司) - 查看中转时间和转机时间 - macOS 安装 Flighty 应用 - Python 3.11+ - uv 包管理器 - (可选)免费 AirLabs API 密钥,用于添加航班时自动查询机场 把这点记到你的claude_desktop_config里。

概述(AI 翻译)

一个本地MCP(模型上下文协议)服务器,让AI助手访问你的Flighty飞行数据。直接读取Flighty macOS应用本地SQLite数据库。

特色

  • 列出您的航班 - 查看您自己的即将航班、过去航班或全部航班
  • 列出朋友航班 - 查看已连接朋友航班,可按姓名筛选
  • 获取航班详情 - 通过编号或ID查询任何航班
  • 搜索航班 - 按航空公司、机场、日期范围筛选
  • 航班状态 - 查看当前状态、延误、登机口、天气
  • 延误预测 - 历史准时绩效统计
  • 添加航班 - 按航班代码和日期添加航班,并可选自动查询机场
  • 机场搜索 - 通过IATA代码、城市或名称查询机场
  • 航空公司搜索 - 通过IATA代码、名称或联盟查询航空公司
  • 航班统计 - 综合统计(距离、顶级航线、航空公司)
  • 转机 - 查看中转时间和转机时间

先修条件

  • 安装Flighty应用的macOS
  • Python 3.11+
  • UV包管理器
  • (可选)免费AirLabs API密钥,用于添加航班时自动查询机场

布置

克劳德桌面

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

README

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

Flighty MCP

A local MCP (Model Context Protocol) server that gives AI assistants access to your Flighty flight data. Reads directly from the Flighty macOS app’s local SQLite database.

Features

  • List your flights - View your own upcoming, past, or all flights
  • List friends’ flights - View connected friends’ flights, filterable by name
  • Get flight details - Look up any flight by number or ID
  • Search flights - Filter by airline, airport, date range
  • Flight status - Check current status, delays, gates, weather
  • Delay forecast - Historical on-time performance statistics
  • Add flights - Add a flight by flight code and date, with optional auto-lookup of airports
  • Airport search - Look up airports by IATA code, city, or name
  • Airline search - Look up airlines by IATA code, name, or alliance
  • Flight stats - Aggregate statistics (distance, top routes, airlines)
  • Connections - View layovers and connection times

Prerequisites

  • macOS with the Flighty app installed
  • Python 3.11+
  • uv package manager
  • (Optional) Free AirLabs API key for automatic airport lookup when adding flights

Setup

Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "flighty": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/flighty-mcp",
        "run",
        "main.py"
      ]
    }
  }
}

To enable automatic airport lookup when adding flights, add your AirLabs API key:

{
  "mcpServers": {
    "flighty": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/flighty-mcp",
        "run",
        "main.py"
      ],
      "env": {
        "AIRLABS_API_KEY": "your-api-key-here"
      }
    }
  }
}

You can get a free API key at airlabs.co.

Claude Code

claude mcp add flighty -- uv --directory /path/to/flighty-mcp run main.py

With AirLabs API key:

claude mcp add flighty -e AIRLABS_API_KEY=your-api-key-here -- uv --directory /path/to/flighty-mcp run main.py

Configuration

By default, the server reads from:

~/Library/Containers/com.flightyapp.flighty/Data/Documents/MainFlightyDatabase.db

Override with the FLIGHTY_DB_PATH environment variable if needed.

Environment Variables

Variable Required Description
FLIGHTY_DB_PATH No Override the default Flighty database path
AIRLABS_API_KEY No AirLabs API key for automatic airport lookup when adding flights. Without this, you must provide departure and arrival airports manually.

Tools

Tool Description
list_flights List your own flights with filters (upcoming/past/archived)
在 GitHub 查看完整 README

安装

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

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

配置

{ "mcpServers": { "flighty": { "command": "uv", "args": [ "--directory", "/path/to/flighty-mcp", "run", "main.py" ] } } }