variflight-mcp

MCP.Pizza Chef: variflight

Access detailed flight information, real-time locations, weather forecasts, and comfort metrics from Variflight services directly within your AI assistant. After adding your Variflight API key and configuring the server, you can search flights by city or number, check connecting flights, track planes live, and get airport weather — all without leaving your chat or workspace. Works with MCP clients like Claude Desktop or Cursor.

Other
Web/Research

Use This MCP server To

Find direct flights between two cities on a specific date Look up a flight by its flight number and date Get connecting flight options between cities Check flight comfort details like meals and punctuality Track a flight’s real-time location by tail number Get a 3-day weather forecast for an airport See recommended flight itineraries with prices and durations

README

Variflight MCP Server

A Model Context Protocol (MCP) server implementation for VariFlight flight information services. This server provides various tools to query flight information, weather data, and flight comfort metrics.

Variflight API Key

To use the Variflight MCP server, you need to have a Variflight API key. You can get it from here.

Installation

{
    "mcpServers": {
        "variflight": {
            "command": "npx",
            "args": [
                "-y",
                "@variflight-ai/variflight-mcp"
            ],
            "env": {
                "VARIFLIGHT_API_KEY": "your_api_key_here"
            }
        }
    }
}

Available Tools

1. Search Flights by Departure and Arrival

Search direct flights by city or airport code on a specific date. Use city codes like BJS or exact airport codes like PEK, but do not mix city and airport codes for the same side:

searchFlightsByDepArr({
  dep: "PEK",  // Beijing
  arr: "SHA",  // Shanghai
  date: "2024-03-20"
})

2. Search Flights by Number

Search a specific flight by flight number and date:

searchFlightsByNumber({
  fnum: "MU2157",
  date: "2024-03-20"
})

3. Get Flight Transfer Information

Search connecting flight options between departure and arrival cities:

getFlightTransferInfo({
  depcity: "BJS",
  arrcity: "LAX",
  depdate: "2024-03-20"
})

4. Flight Happiness Index

Get comfort-focused details for a known flight, such as punctuality, aircraft type, cabin configuration, meals, and entertainment:

flightHappinessIndex({
  fnum: "MU2157",
  date: "2024-03-20"
})

5. Real-time Aircraft Location

Track realtime flight location using the aircraft registration number, also called tail number:

getRealtimeLocationByAnum({
  anum: "B2021"
})

6. Airport Weather Forecast

Get the 3-day airport weather forecast:

getFutureWeatherByAirport({
  airport: "PEK"
})

7. Search Flight Itineraries

Get a natural-language summary with recommended flight options, overall lowest price, shortest duration, and several suggested itineraries:

searchFlightItineraries({
  depCityCode: "BJS",  // Beijing
  arrCityCode: "SHA",  // Shanghai
  depDate: "2025-04-20"
})

8. Get Flight Prices by Cities

Get structured raw sale-flight data between two cities, with each flight returning cabin-level prices:

getFlightPriceByCities({
  dep_city: "BJS",  // Beijing
  arr_city: "SHA",  // Shanghai
  dep_date: "2026-04-20"
})

License

ISC License - See LICENSE for details.

Author

Variflight (https://mcp.variflight.com)

Version

Current version: 1.0.3

variflight-mcp FAQ

Can I use this to find flights between two cities?
Yes — you can search direct flights by city or airport codes and dates.
Can I get real-time flight locations with this?
Yes — it provides real-time aircraft location tracking by tail number.
Does this work without an API key?
No — you need a Variflight API key to use this server.
Is it easy to set up in my existing app?
Yes — setup involves pasting a small config snippet with your API key.
Which AI assistants or apps support this server?
It works with any MCP-compatible client that supports adding custom servers, such as Claude Desktop or Cursor.
Can I get weather forecasts for airports?
Yes — it offers 3-day weather forecasts for airports.
Can I get flight comfort details like meals and entertainment?
Yes — it provides a flight happiness index with comfort info.