Variflight Tripmatch MCP Server
OfficialProvides tools for querying flight information using IATA airport and city codes, allowing users to search flights by departure/arrival locations, flight numbers, and get transfer information.
Uses TypeScript interface definitions for API calls, enabling type-safe interaction with the Variflight Tripmatch service when querying flight and train information.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Variflight Tripmatch MCP Server search for flights from Beijing to Shanghai on March 25th"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Variflight Tripmatch MCP Server
Variflight Tripmatch MCP Server provides a set of tools to query flight and train information.
Variflight API Key
To use the Variflight Tripmatch MCP server, you need to have a Variflight API key. You can get it from here.
Related MCP server: TripNow (航班管家)
Installation
{
"mcpServers": {
"variflight": {
"command": "npx",
"args": [
"-y",
"@variflight-ai/tripmatch-mcp"
],
"env": {
"VARIFLIGHT_API_KEY": "your_api_key_here"
}
}
}
}Available Tools
1. Search Flights by Departure and Arrival
Search for flights between airports or cities by date. For cities with multiple airports, use depcity and arrcity parameters; otherwise use dep and arr parameters. Date must be in YYYY-MM-DD format. For today's date, use the getTodayDate tool. All airport/city codes must be valid IATA 3-letter codes (e.g.BJS for city of Beijing, PEK for Beijing Capital Airport).
searchFlightsByDepArr({
dep: "PEK", // Departure airport IATA 3-letter code (optional)
depcity: "BJS", // Departure city IATA 3-letter code (optional)
arr: "SHA", // Arrival airport IATA 3-letter code (optional)
arrcity: "SHA", // Arrival city IATA 3-letter code (optional)
date: "2024-03-20" // Flight date in YYYY-MM-DD format
})2. Search Flights by Number
Search flights by flight number and date. Flight number should include airline code (e.g. MU2157, CZ3969). dep and arr are optional, keep empty if you don't know them. Date format: YYYY-MM-DD. IMPORTANT: For today's date, you MUST use getTodayDate tool instead of hardcoding any date. Airport codes (optional) should be IATA 3-letter codes.
searchFlightsByNumber({
fnum: "MU2157", // Flight number including airline code
date: "2024-03-20", // Flight date in YYYY-MM-DD format
dep: "HFE", // Departure airport IATA 3-letter code (optional)
arr: "CAN" // Arrival airport IATA 3-letter code (optional)
})3. Get Flight and Train Transfer Information
Get flight and train transfer info by departure city and arrival city and departure date. Date format: YYYY-MM-DD. IMPORTANT: For today's date, you MUST use getTodayDate tool instead of hardcoding any date. Airport codes should be IATA 3-letter codes.
getFlightAndTrainTransferInfo({
depcity: "BJS", // Departure airport IATA 3-letter code
arrcity: "LAX", // Arrival airport IATA 3-letter code
depdate: "2024-03-20" // Flight date in YYYY-MM-DD format
})4. Flight Happiness Index
Using this tool when you need information related to following topics: Detailed flight comparisons (punctuality, amenities, cabin specs), Health safety protocols for air travel, Baggage allowance verification, Environmental impact assessments, Aircraft configuration visualization, Comfort-focused trip planning (seat dimensions, entertainment, food), etc.
flightHappinessIndex({
fnum: "MU2157", // Flight number including airline code
date: "2024-03-20", // Flight date in YYYY-MM-DD format
dep: "HFE", // Departure airport IATA 3-letter code (optional)
arr: "CAN" // Arrival airport IATA 3-letter code (optional)
})5. Get Today's Date
Get today's date in local timezone (YYYY-MM-DD format). Use this tool whenever you need today's date - NEVER hardcode dates.
getTodayDate({})6. Airport Weather Forecast
Get airport future weather for 3days (today、tomorrow、the day after tomorrow) by airport IATA 3-letter code. Airport codes should be IATA 3-letter codes (e.g. PEK for Beijing, SHA for Shanghai, CAN for Guangzhou, HFE for Hefei).
getFutureWeatherByAirport({
airport: "PEK" // Airport IATA 3-letter code
})7. Search Train Tickets
Search for train tickets between two cities on a specific date. Date must be in YYYY-MM-DD format.
searchTrainTickets({
from: "合肥", // Departure city name
to: "北京", // Arrival city name
date: "2024-03-25" // Travel date in YYYY-MM-DD format
})8. Get Flight Price By Cities
Get flight price information by departure city, arrival city, and departure date. All city codes must be valid IATA 3-letter codes (e.g. HFE for Hefei, CAN for Guangzhou). Date must be in YYYY-MM-DD format.
getFlightPriceByCities({
dep_city: "HFE", // Departure city IATA 3-letter code
arr_city: "CAN", // Arrival city IATA 3-letter code
dep_date: "2024-03-25" // Departure date in YYYY-MM-DD format
})9. Search Train Stations
Search for train stations by keyword.
searchTrainStations({
query: "北京" // Keyword to search for train stations
})License
ISC License - See LICENSE for details.
Author
Variflight (https://ai.variflight.com)
Version
Current version: 0.0.2
Available Tools
9 toolsflightHappinessIndexC
using this tool when you need information related to following topics: Detailed flight comparisons (punctuality, amenities, cabin specs),Health safety protocols for air travel,Baggage allowance verification,Environmental impact assessments,Aircraft configuration visualization,Comfort-focused trip planning (seat dimensions, entertainment, food). etc.
Inputs: fnum (required), date (required), dep, arr.
getFlightAndTrainTransferInfoA
Get flight and train transfer info by departure city and arrival city and departure date. Date format: YYYY-MM-DD. IMPORTANT: For today's date, you MUST use getTodayDate tool instead of hardcoding any date. Airport codes should be IATA 3-letter codes.
Inputs: depdate (required), depcity (required), arrcity (required).
getFlightPriceByCitiesB
Get flight price information by departure city, arrival city, and departure date. All city codes must be valid IATA 3-letter codes (e.g. HFE for Hefei, CAN for Guangzhou). Date must be in YYYY-MM-DD format.
Inputs: dep_city (required), arr_city (required), dep_date (required).
getFutureWeatherByAirportA
Get airport future weather for 3days (today、tomorrow、the day after tomorrow) by airport IATA 3-letter code. Airport codes should be IATA 3-letter codes (e.g. PEK for Beijing, SHA for Shanghai, CAN for Guangzhou, HFE for Hefei).
Inputs: airport (required).
getTodayDateA
Get today's date in local timezone (YYYY-MM-DD format). Use this tool whenever you need today's date - NEVER hardcode dates.
Inputs: random_string.
searchFlightsByDepArrA
Search for flights between airports or cities by date. For cities with multiple airports, use depcity and arrcity parameters; otherwise use dep and arr parameters. Date must be in YYYY-MM-DD format. For today's date, use the getTodayDate tool. All airport/city codes must be valid IATA 3-letter codes (e.g.BJS for city of Beijing, PEK for Beijing Capital Airport).
Inputs: date (required), dep, depcity, arr, +1 more.
searchFlightsByNumberA
Search flights by flight number and date. Flight number should include airline code (e.g. MU2157, CZ3969). dep and arr are optional, keep empty if you don't know them. Date format: YYYY-MM-DD. IMPORTANT: For today's date, you MUST use getTodayDate tool instead of hardcoding any date. Airport codes (optional) should be IATA 3-letter codes.
Inputs: fnum (required), date (required), dep, arr.
searchTrainStationsC
Search for train stations by keyword.
Inputs: query (required).
searchTrainTicketsC
Search for train tickets between two cities on a specific date. Date must be in YYYY-MM-DD format.
Inputs: from (required), to (required), date (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools have distinct purposes, such as flight price lookup, flight search by number, and train ticket search, but there is some overlap between getFlightPriceByCities and searchFlightsByDepArr, which both retrieve flight information based on cities and dates, potentially causing confusion. The flightHappinessIndex is broad and could overlap with comfort aspects of other tools, but descriptions help clarify.
The naming follows a consistent verb_noun pattern with camelCase, as seen in getFlightPriceByCities and searchFlightsByNumber, with minor deviations like flightHappinessIndex (which lacks a verb prefix) and getTodayDate (which is more direct). Overall, the pattern is readable and mostly uniform.
With 9 tools, the count is well-scoped for a travel and flight information server, covering key areas like flight searches, pricing, transfers, weather, and train services. Each tool serves a specific function without redundancy, making the set efficient and appropriate for the domain.
The tool surface covers core travel planning needs, including flight and train searches, pricing, transfers, and weather, with good CRUD-like coverage for information retrieval. Minor gaps exist, such as no explicit tools for booking or updating reservations, but agents can work around this with the provided search and info tools.
Maintenance
Related MCP Connectors
TravelMind: 8 MCP tools for travel (12306 trains, flights, hotels, geocode, planning, policy).
Read-only airport delay, weather, and 24h forecast tools for AI assistants. Airport-level only.
Travel tools for AI agents: plan and edit real trips, search stays and tours, import travel videos.
Give AI assistants access to real-time data. Search the web, compare flights, find hotels, and more.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables searching for train tickets on China's 12306 railway system, including ticket availability queries, train filtering, station stopover information, and transfer route planning.9,691 npm2MIT
- FlicenseNot gradedqualityDmaintenanceProvides real-time flight and train ticket queries, live status tracking, and a professional knowledge base for air and rail travel. It enables users to monitor departures, check ticketing policies, and manage travel information through a unified interface.-
- AlicenseNot gradedqualityDmaintenanceProvides tools for searching flights, creating and canceling bookings, and retrieving user reservations through natural language.MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to query flight routes, real-time flight tracking, weather, and transfer flights via standardized MCP tools.10MIT