Variflight Mcp

io.github.variflightPublished by GitHub account variflightv1.1.0Updated Oct 24, 2026

VariFlight's official MCP server provides tools to query flight, weather, comfort, and fare data.

VerifiedSTDIODesktop onlyLocation & LifestyleFinance

Overview

AI-generated overview

VariFlight's official MCP server that lets an assistant search flights, compare fares and itineraries, check aircraft location and airport weather.

What you can do
  • Search flights by departure and arrival city or airport code, or by flight number, with optional paging and summary detail
  • Find connecting flight options between two cities
  • Get itinerary suggestions with lowest price, shortest duration and recommended options, plus cabin-level fares between two cities
  • Look up comfort details for a known flight: punctuality, aircraft type, cabin, meals and entertainment
  • Track real-time aircraft location by tail number and get a 3-day airport weather forecast
When to use it
Useful when an assistant needs to answer travel questions about Chinese and international flights: finding options on a date, comparing prices and durations, checking a specific flight's comfort or punctuality, or tracking an aircraft and checking airport weather.
Requirements
Runs locally over stdio via npx from the npm package @variflight-ai/variflight-mcp, so Node.js is needed. Requires a VariFlight API key supplied in the VARIFLIGHT_API_KEY environment variable, obtained by signing up at the VariFlight AI Open Platform. Network access to the VariFlight service is required.
Before you install
The API key is a billable credential: each page of paged results is a separate billed call, and pricing is documented on the provider's platform, so usage can cost money beyond any trial credits. Queries send flight search parameters to VariFlight's servers. Keep the key out of shared configuration files.

Installation

In SourceWeft

  1. Open Variflight Mcp in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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.

This package is the stdio distribution of VariFlight Aviation MCP on the VariFlight AI Open Platform. Full documentation, including client setup, tool reference and pricing: ai.variflight.com/docs/aviation (中文).

Variflight API Key

To use the Variflight MCP server, you need to have a Variflight API key. Sign up at ai.variflight.com and create one in the console; new accounts receive ¥50 in trial credits.

Remote server

The same tools are available as a remote MCP server over streamable HTTP, with no local process required:

bash
claude mcp add --transport http variflight-aviation https://ai.variflight.com/servers/aviation/mcp \  --header "X-API-Key: YOUR_API_KEY"

Clients that support OAuth 2.1 can add https://ai.variflight.com/servers/aviation/mcp without a key and sign in when prompted.

Installation

json
{    "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:

typescript
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:

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

3. Get Flight Transfer Information

Search connecting flight options between departure and arrival cities:

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

searchFlightsByDepArr and getFlightTransferInfo also accept optional paging parameters. Busy routes can return dozens of results with many fields each, so use these to keep responses small:

  • limit: maximum number of results to return
  • offset: number of results to skip; pass next_offset from the previous response to get the next page. Each page is a separate billed call.
  • detail: "summary" returns only the core fields of each result; "full" (the default) returns every field

When any of them is set, the response also includes total, offset, returned and, if more results exist, next_offset. Without them, the response is unchanged.

typescript
searchFlightsByDepArr({  depcity: "BJS",  arrcity: "SHA",  date: "2024-03-20",  limit: 20,  detail: "summary"})

4. Flight Happiness Index

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

typescript
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:

typescript
getRealtimeLocationByAnum({  anum: "B2021"})

6. Airport Weather Forecast

Get the 3-day airport weather forecast:

typescript
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:

typescript
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:

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

License

ISC License - See LICENSE for details.

Author

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

Version

Current version: 1.1.0

Source: README.md at commit acc170e

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

2
  1. v1.1.0LatestSep 26, 2026
  2. v1.0.2Sep 16, 2026

Score

40% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.