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.
To use the Variflight MCP server, you need to have a Variflight API key. You can get it from here.
{
"mcpServers": {
"variflight": {
"command": "npx",
"args": [
"-y",
"@variflight-ai/variflight-mcp"
],
"env": {
"VARIFLIGHT_API_KEY": "your_api_key_here"
}
}
}
}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"
})Search a specific flight by flight number and date:
searchFlightsByNumber({
fnum: "MU2157",
date: "2024-03-20"
})Search connecting flight options between departure and arrival cities:
getFlightTransferInfo({
depcity: "BJS",
arrcity: "LAX",
depdate: "2024-03-20"
})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"
})Track realtime flight location using the aircraft registration number, also called tail number:
getRealtimeLocationByAnum({
anum: "B2021"
})Get the 3-day airport weather forecast:
getFutureWeatherByAirport({
airport: "PEK"
})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"
})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"
})ISC License - See
Variflight (https://mcp.variflight.com)
Current version: 1.0.3