flights-mcp
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., "@flights-mcp Search flights from JFK to LAX next Monday"
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.
✈️ Flights MCP Server
A Model Context Protocol (MCP) server that provides flight search capabilities using the Aviasales Flight Search API. This server allows you to search for flights, filter results, get detailed flight information, and generate booking links.
https://github.com/user-attachments/assets/87d79d54-c4ab-4938-9792-18572315f1ba
How to use
You can either use the remote MCP server or deploy your own instance:
Remote MCP
A public instance is available at:https://findflights.me/sse
This server uses the SSE transport protocol and is ready to use without setup.⚠️ Important: Currently not all LLM clients support remote MCP connections. For example, Claude.ai supports remote MCP integrations only on Pro+ plans.
Self-Hosted Deployment
If you prefer to run your own server, follow the instructions in the Installation section.Note: To deploy your own server, you must obtain an Aviasales API Key and Marker ID.
Related MCP server: cheapflights-mcp
Features
Flight Search: Search for one-way, round-trip, and multi-city flights
Advanced Filtering: Filter results by price, duration, airlines, departure/arrival times, and number of stops
Multiple Sorting Options: Sort by price, departure time, arrival time, or duration
Detailed Flight Information: Get comprehensive flight details including baggage allowances and airline information
Booking Links: Generate booking links for selected flights
Local Storage: Performed searches are stored locally so LLM can access past searches without waiting
Multiple MCP Transport Options: Supports stdio, HTTP, and SSE transports
Installation
Prerequisites
Aviasales API key
Python 3.12 or higher
UV package manager
Setup
Clone the repository:
git clone <repository-url>
cd flights-mcpSet up environment variables (see Environment Variables section)
Run the server
uv run src/flights-mcp/main.pyThe server binds to 0.0.0.0, making it accessible on all network interfaces of the host machine.
Environment Variables
The following environment variables are required:
FLIGHTS_AVIASALES_API_TOKEN(required): Your Aviasales API tokenFLIGHTS_AVIASALES_MARKER(required): Your Aviasales marker IDFLIGHTS_TRANSPORT(optional): Transport protocol to useOptions:
stdio(default),streamable_http,sse
FLIGHTS_HTTP_PORT(optional): Port for HTTP/SSE transportOnly used when
FLIGHTS_TRANSPORTisstreamable_httporsseDefault:
4200
FLIGHTS_HTTP_PATH(optional): URI path for the endpointOnly used when
FLIGHTS_TRANSPORTisstreamable_httporsseDefault:
/mcp
MCP Tools
The server provides the following MCP tools:
Tool | Description |
| Searches for flights using the Aviasales Flight Search API. Returns search description with |
| Retrieves, filters, and sorts flight options from a previous search. Returns a paginated list of filtered flight options. |
| Returns detailed flight information including segments, pricing, baggage allowances, and agency terms. |
| Generates a booking link for a specific flight option. |
Typical Usage Pattern
Search for flights using
search_flights()- Call multiple times for flexible datesFilter and browse options using
get_flight_options()- Lightweight tool, call multiple times with different filters and sorting optionGet detailed information using
get_flight_option_details()- For user's preferred optionsGenerate booking link using
request_booking_link()- Only when user confirms booking intent
Support
For issues related to:
MCP Server: Open an issue in this repository
MCP Protocol: See Model Context Protocol Documentation
Available Tools
4 toolsget_flight_option_detailsA
Retrieve detailed information about a specific flight option from the search results. This tool provides detailed information about a flight option, including its segments, price, baggage info. It is useful for getting more granular information about a specific flight option.
Inputs: search_id (required), offer_id (required).
get_flight_optionsA
Get flight options from the previously performed search. This tool allows you to filter the found flight options by price, departure and arrival times, and airlines. It returns a paginated list of flight options that match the specified filters and sorting option.IMPORTANT: This is very cheap operation, so you can call it as many times as needed to find the best flight options.
Inputs: search_id (required), filters (required), page, page_size.
request_booking_linkA
Request link for booking a flight option. This tool generates a booking link for a specific flight option.This tool is recommended to be used after the user expressed intention to book the flight option.
Inputs: search_id (required), offer_id (required), agency_id (required).
search_flightsA
Search for flights using the Aviasales Flight Search API. This tool performs search based on the provided flight segments, number of passengers, trip class, currency, and locale. It provides search_id and description of search results and saves found options internally.After receiving the result client can use get_flight_options tool to retrieve the found options with more granular filters.IMPORTANT: All times are local to departure/arrival locations and use HH:MM 24-hour format.IMPORTANT: Call this tool as many times as needed to find the best flight options.
Inputs: request (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a distinct role: initiating search, retrieving filtered results, getting detailed info on a specific option, and requesting a booking link. No overlap in functionality.
All tool names follow a consistent verb_noun pattern (search_flights, get_flight_options, get_flight_option_details, request_booking_link), making them predictable and easy to use.
With 4 tools, the surface is well-scoped for a flight search and booking workflow—lean yet covering essential steps without redundancy.
The tools cover the core flight search workflow: initiate search, filter results, view details, and obtain a booking link. Minor gaps (e.g., no tool for managing bookings) are acceptable given the server's focused purpose.
Maintenance
Related MCP Connectors
Flight search MCP server providing search, pagination, and itinerary details for AI assistants.
Geo-based flight search MCP server. Find more flights between any two places on earth
Skiplagged MCP Server for flight search, hotel booking, and travel planning
Search and compare flight offers through a cache-aware Streamable HTTP MCP server for AI agents.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server searching flights with granular filtering, sorting options, and purchase integration.415PythonGPL 3.0
- AlicenseAqualityCmaintenanceAn MCP server that finds cheap flights with flexible dates and smart suggestions using the Google Flights API.3MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that integrates with the Amadeus Flight Availabilities Search API to allow users to search for available flights and view seat availability in real-time.MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for the Travelpayouts (Aviasales) API. It provides 13 tools for flight search, price calendars, hotel search, and airport/airline/city lookup.52 npmMIT