PA

pradumnasaraf/aviationstack-mcp

开发工具

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

29 stars 12 forks 质量 73 趋势 20MIT

一个MCP服务器,利用AviationStack API获取包括航空公司航班、机场时刻表、未来航班和飞机类型的✈️实时航班数据。

概览

该项目提供了一套与 AviationStack API 交互的工具。它提供了获取实时及未来飞行数据、飞机及飞机细节以及核心参考数据(机场、航空公司、航线、税务)的终端,使航空数据易于集成到您的应用程序中。 你也可以在以下知名的MCP服务器仓库中找到Aviationstack MCP服务器,方便访问: - ModelContextprotocol/servers - punkpeye/awesome-mcp-servers - glama - smithery - mcpservers.org https://github.com/user-attachments/assets/9325fcce-8ecc-4b01-8923-4ccb2f6968f4 ——————(从明天到大约12个月)———————— 所有端点都以MCP工具的形式实现,并已准备好在兼容MCP的环境中使用。 每个工具返回相同的 JSON 信封。成功时:{“ok”: true, “count”: N, “data”: [...]},加上 list_* 工具上的分码块和无匹配时的消息。失败时: {“ok”: false, “context”: “...

概述(AI 翻译)

Aviationstack MCP 服务器

该项目是一个MCP(模型上下文协议)服务器,提供一套与AviationStack API交互的工具。它展示了用于获取实时及未来飞行数据、飞机和飞机细节以及核心参考数据(机场、航空公司、航线、税务)的终端,便于将航空数据集成到你的应用程序中。

你也可以在以下知名的MCP服务器仓库中找到Aviationstack MCP服务器,方便访问:

  • modelcontextprotocol/servers
  • Punkpeye/Awesome-MCP-服务器
  • 格拉玛
  • 史密瑟里
  • mcpservers.org

演示

https://github.com/user-attachments/assets/9325fcce-8ecc-4b01-8923-4ccb2f6968f4

特色

  • 通过航班号查询单航班
  • 获取特定航空公司的航班
  • 按日期查找历史航班
  • 获取机场的到达和出发时刻表
  • 获取未来的航班时刻表(从明天到大约12个月后)
  • 随机获取飞机类型
  • 获取关于随机飞机的详细信息
  • 获取随机国家的详细信息
  • 获取随机城市的详细信息
  • 列出机场、航空公司、航线和税收

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

README

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

Aviationstack MCP Server

This project is an MCP (Model Context Protocol) server that provides a set of tools to interact with the AviationStack API. It exposes endpoints for retrieving real-time and future flight data, aircraft and airplane details, and core reference data (airports, airlines, routes, taxes), making it easy to integrate aviation data into your applications.

You can also find the Aviationstack MCP server in these well-known MCP server repositories for easy access:

Demo

https://github.com/user-attachments/assets/9325fcce-8ecc-4b01-8923-4ccb2f6968f4

Features

  • Look up a single flight by its flight number
  • Get flights for a specific airline
  • Fetch historical flights by date
  • Retrieve arrival and departure schedules for airports
  • Fetch future flight schedules (from tomorrow through about 12 months ahead)
  • Get random aircraft types
  • Get detailed info on random airplanes
  • Get detailed info on random countries
  • Get detailed info on random cities
  • List airports, airlines, routes, and taxes

All endpoints are implemented as MCP tools and are ready to be used in an MCP-compatible environment.

Every tool returns the same JSON envelope. On success: {"ok": true, "count": N, "data": [...]}, plus a pagination block on the list_* tools and a message when there were no matches. On failure: {"ok": false, "context": "...", "error": "..."}. Any limit is capped at 100 records per call.

Prerequisites

  • Aviationstack API Key (You can get a FREE API Key from Aviationstack)
  • Python 3.13 or newer
  • uv package manager installed

Available Tools

Tool Description Parameters
get_flight_status(flight_iata: str, flight_date: str = "") Look up one flight by its IATA flight number, for today or a given date. - flight_iata: Flight IATA number (e.g., “AA100”) - flight_date: Optional date in YYYY-MM-DD format
flights_with_airline(airline_name: str, number_of_flights: int, flight_status: str = "") Get live flights for a specific airline. - airline_name: Name of the airline (e.g., “Delta Air Lines”) - number_of_flights: Number of flights to return - flight_status: Optional status filter: scheduled, active, landed, cancelled, incident, diverted
在 GitHub 查看完整 README

安装

uvx aviationstack-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "Aviationstack MCP": { "command": "uvx", "args": [ "aviationstack-mcp" ], "env": { "AVIATION_STACK_API_KEY": "<your-api-key>" } } } }