travelpayouts-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| TRAVELPAYOUTS_TRS | No | ID проекта (trs), напр. YOUR_TRS (для Links API). | |
| TRAVELPAYOUTS_TOKEN | Yes | Партнёрский API-токен (X-Access-Token). | |
| TRAVELPAYOUTS_DOMAIN | No | Хост Aviasales для сырых ссылок (www.aviasales.ru / www.aviasales.com). | |
| TRAVELPAYOUTS_LOCALE | No | Локаль справочника/названий: ru, en, es. | |
| TRAVELPAYOUTS_MARKER | No | Партнёрский маркер, напр. YOUR_MARKER (для Links API). | |
| TRAVELPAYOUTS_MARKET | No | Маркет Data API: ru (по умолчанию), us, … | ru |
| TRAVELPAYOUTS_TIMEOUT | No | Таймаут HTTP, секунды (по умолчанию 20). | 20 |
| TRAVELPAYOUTS_API_BASE | No | Переопределение API (тесты, мок). | |
| TRAVELPAYOUTS_CURRENCY | No | Валюта: rub (по умолчанию), usd, eur. | rub |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Travelpayouts / Aviasales MCP: flight deals, price calendars, popular directions and partner links. Prices come from the Aviasales cache (up to 7 days old). Affiliate links are created only via create_partner_links (Partner Links API).
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_cheapest_ticketsA | Cheapest Aviasales tickets found during the last 48 hours for a route or dates (Travelpayouts Data API, cached up to 7 days). Returns prices, airline, transfers and plain search URLs. Use create_partner_links to turn a URL into a tracked affiliate link. |
| get_price_calendarB | Cheapest ticket for every day of a month for a route (v1/prices/calendar). Good for 'when is it cheaper to fly' answers. |
| get_month_matrixC | Cheapest price per day of a month (v2/prices/month-matrix), grouped by transfers. Alternative calendar view. |
| get_special_offersA | Abnormally cheap flight deals (v3/get_special_offers) — the best starting point for 'deal of the day' content. |
| get_popular_directionsB | Cheapest origins flying to a destination (v3/get_popular_directions) — useful for destination landing pages. |
| get_city_directionsC | Popular destinations from a city (v1/city-directions). |
| get_latest_pricesC | Recently found prices for a period (v3/get_latest_prices): dates or directions, sorted by price. |
| resolve_placeA | Resolve a city name or IATA code to IATA codes (cities + airports) using the Travelpayouts directory. Use before search tools. |
| build_search_urlA | Build a plain Aviasales search URL (params string + filled form URL + results URL). No tracking: for affiliate links call create_partner_links. |
| create_partner_linksA | Create Travelpayouts affiliate links from brand URLs via the Partner Links API (branded short links, tracked by sub_id). Requires TRAVELPAYOUTS_TOKEN, TRAVELPAYOUTS_MARKER and TRAVELPAYOUTS_TRS. Limits: max 10 URLs per call, 100 calls/min per marker. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
Most tools target clearly distinct endpoints (deals, popular directions, place resolution, URL/affiliate building), but get_price_calendar and get_month_matrix both return 'cheapest price per day of a month' and differ only by API version and transfer grouping, which invites misselection. search_cheapest_tickets vs get_latest_prices is also a close pair, though descriptions distinguish cached-route results from period-wide recent prices.
Every tool follows a consistent snake_case verb_noun pattern (get_*, search_*, resolve_*, build_*, create_*), with verbs that accurately reflect the operation. No camelCase or stylistic mixing.
10 tools is well within the ideal range and each maps to a distinct Travelpayouts API endpoint or a necessary helper (place resolution, URL building, affiliate link creation). No filler tools.
The surface covers the full affiliate workflow: resolve place → search prices/calendars/deals → build search URL → create tracked links. Minor gaps exist, such as no tool for airline/route metadata or batch multi-route queries, but agents can work around them with existing tools.