Variflight MCP Server
@variflight
About Variflight MCP Server
A Model Context Protocol (MCP) server implementation for Variflight services.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"variflight": {
"command": "npx",
"args": [
"-y",
"@variflight-ai/variflight-mcp"
],
"env": {
"VARIFLIGHT_API_KEY": "your_api_key_here"
}
}
}
}Tools
9Search direct flights by departure and arrival location plus date. Use depcity and arrcity when the user specifies cities such as BJS or SHA. Use dep and arr when the user specifies exact airports such as PEK or PVG. Provide one departure field and one arrival field, and do not mix city and airport codes for the same side. All codes must be valid IATA 3-letter codes. Date must be in YYYY-MM-DD format. For today's date, use getTodayDate instead of hardcoding.
Search a flight by flight number and date. The flight number must include the airline code, for example MU2157 or CZ3969. dep and arr are optional and should only be provided when the exact airports are known. Date must be in YYYY-MM-DD format. For today's date, use getTodayDate instead of hardcoding.
Search connecting flight options between a departure city and an arrival city on a specific date. Use city IATA 3-letter codes such as BJS, SHA, or LAX. This tool is for transfer or connection itineraries between cities, not for airport weather, airport facilities, or realtime tracking. Date must be in YYYY-MM-DD format. For today's date, use getTodayDate instead of hardcoding.
Use this tool when the user wants comfort-focused details for a known flight, such as punctuality, aircraft type, cabin configuration, seat comfort, meals, entertainment, or other onboard experience details. This tool works best when a specific flight number and date are already known. Do not use it for fare search, itinerary recommendation, or raw price comparison.
Get realtime flight location by aircraft registration number, also called tail number, such as B2021 or B2022. Use this only when the aircraft registration number is known. If the registration number is unknown, first try to find the flight through searchFlightsByNumber and then use the aircraft registration number from that result.
Get today's date in local timezone (YYYY-MM-DD format). Use this tool whenever you need today's date - NEVER hardcode dates.
Get the 3-day airport weather forecast for today, tomorrow, and the day after tomorrow by airport IATA 3-letter code, such as PEK, SHA, CAN, or HFE.
Use this tool when the user wants a concise recommended itinerary summary in natural language. It returns a text-style result that summarizes how many sale flights match, the overall lowest price, the shortest duration, and several recommended options. Use city IATA 3-letter codes only. If the user instead needs structured raw flight pricing data with each flight and cabin price, use getFlightPriceByCities.
Use this tool when the user needs structured raw pricing data. It returns sale flights between two cities as a list of flights, and each flight contains cabin entries with prices. This is better than searchFlightItineraries when the caller needs per-flight, per-cabin price details instead of a natural-language recommendation summary. All city codes must be valid IATA 3-letter codes (e.g. BJS for Beijing, SHA for Shanghai, CAN for Guangzhou, HFE for Hefei).
Overview
What is Variflight MCP Server?
A Model Context Protocol (MCP) server implementation that integrates VariFlight flight information services, providing tools to query flight data, weather, and comfort metrics for developers and travel applications.
How to use Variflight MCP Server?
Requires a Variflight API key, obtainable from https://mcp.variflight.com. Install by adding the server configuration to your MCP client with the command npx -y @variflight-ai/variflight-mcp and setting the VARIFLIGHT_API_KEY environment variable. Then call any of the eight available tools to retrieve flight, weather, or comfort data.
Key features of Variflight MCP Server
- Search direct flights by departure and arrival city/airport codes
- Look up flights by flight number and date
- Get connecting flight transfer options between cities
- Retrieve flight happiness index (punctuality, cabin, meals, entertainment)
- Track real-time aircraft location by tail number
- Fetch 3-day weather forecasts for any airport
- Search flight itineraries with natural-language summaries and pricing
- Get structured cabin-level flight prices between two cities
Use cases of Variflight MCP Server
- Build travel booking assistants that search and compare flights
- Integrate real-time flight tracking into logistics or travel apps
- Provide comfort and punctuality metrics for flight recommendations
- Deliver airport weather forecasts as part of pre-travel planning
- Enable users to find cheapest or shortest itineraries between cities
FAQ from Variflight MCP Server
How do I obtain a Variflight API key?
You can get a Variflight API key from https://mcp.variflight.com.
Can I search flights using city codes instead of airport codes?
Yes, you can use city codes like BJS or exact airport codes like PEK, but do not mix city and airport codes for the same side of a query.
Does the server offer real-time flight tracking?
Yes, the getRealtimeLocationByAnum tool tracks real-time aircraft location using the aircraft registration (tail) number.
What weather data is available?
The getFutureWeatherByAirport tool provides a 3-day airport weather forecast.
Does it include flight price information?
Yes, searchFlightItineraries returns natural-language summaries with lowest prices and suggested itineraries, while getFlightPriceByCities gives structured cabin-level pricing.
Frequently asked questions
How do I obtain a Variflight API key?
You can get a Variflight API key from https://mcp.variflight.com.
Can I search flights using city codes instead of airport codes?
Yes, you can use city codes like `BJS` or exact airport codes like `PEK`, but do not mix city and airport codes for the same side of a query.
Does the server offer real-time flight tracking?
Yes, the `getRealtimeLocationByAnum` tool tracks real-time aircraft location using the aircraft registration (tail) number.
What weather data is available?
The `getFutureWeatherByAirport` tool provides a 3-day airport weather forecast.
Does it include flight price information?
Yes, `searchFlightItineraries` returns natural-language summaries with lowest prices and suggested itineraries, while `getFlightPriceByCities` gives structured cabin-level pricing.
Basic information
More Other MCP servers
ICSS
chokcoco不止于 CSS
Inbox Zero AI MCP
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
Maestro
mobile-dev-incPainless E2E Automation for Mobile and Web
Nginx UI
0xJackyYet another WebUI for Nginx

YOUB
Connect your AI assistant to your own YOUB endurance training account. Read recorded activities with full analysis, planned sessions, race goals, wellness (HRV, sleep, resting HR) and your athletic profile. Create or mov
Comments