Skip to main content
Glama

avia-mcp

MCP-сервер для поиска дешёвых авиабилетов через Aviasales Data API (Travelpayouts).

Цены берутся из кэша поисков Aviasales примерно за 48 часов — это не живой поиск. Актуальную цену подтверждает ссылка на Aviasales из ответа. Покупки и бронирования через сервер нет.

Инструменты

Инструмент

Что делает

search_places

IATA-код города или аэропорта по названию. Токен не нужен.

search_flights

Самые дешёвые билеты по маршруту на дату или месяц.

price_calendar

Минимальная цена по дням месяца и три самых дешёвых дня.

cheapest_destinations

Самые дешёвые направления из города, с потолком цены.

Related MCP server: mcp-travelpayouts

Токен

Бесплатный токен: travelpayouts.com → «Инструменты» → API. Без токена работает только search_places.

Подключение

Нужен Node.js 22 или новее. Сервер запускается через npx, ставить вручную ничего не надо.

Claude Code:

claude mcp add avia --scope user -e TRAVELPAYOUTS_TOKEN=ваш_токен -- npx -y avia-mcp

Claude Desktop, Cursor и другие клиенты — в конфиге MCP-серверов (для Claude Desktop это claude_desktop_config.json):

{
  "mcpServers": {
    "avia": {
      "command": "npx",
      "args": ["-y", "avia-mcp"],
      "env": { "TRAVELPAYOUTS_TOKEN": "ваш_токен" }
    }
  }
}

Переменные окружения

Переменная

По умолчанию

Что задаёт

TRAVELPAYOUTS_TOKEN

—

Токен Travelpayouts.

AVIA_CURRENCY

rub

Валюта цен.

Разработка

git clone https://github.com/danyasnov/avia-mcp.git
cd avia-mcp
npm install
npm run build
cp .env.example .env   # впишите токен

При запуске из клона сервер читает .env в корне проекта; переменные окружения процесса важнее файла. Подключить локальную сборку:

claude mcp add avia --scope user -- node /путь/к/avia-mcp/dist/index.js

Проверка

npm test
npm run smoke

npm run smoke запускает собранный сервер и вызывает каждый инструмент по разу. Без токена отвечает только search_places, остальные возвращают подсказку про токен.

Лицензия

MIT

Available Tools

4 tools
cheapest_destinationsA
Read-only

Куда дешевле всего улететь из города: по одному самому дешёвому билету на каждое направление, от дешёвых к дорогим. Подходит для вопросов «куда слетать в ноябре до 20 000 ₽». Цены берутся из кэша поисков Aviasales примерно за 48 часов, это не живой поиск: актуальную цену подтверждает ссылка url.

Inputs: origin (required), limit, direct, currency, +3 more.

price_calendarA
Read-only

Минимальная цена по каждому дню вылета в выбранном месяце — чтобы найти самые дешёвые даты. С trip_duration цены за перелёт туда-обратно, без него — в одну сторону. Отдельно возвращает три самых дешёвых дня. Дни без данных в ответ не попадают. Цены берутся из кэша поисков Aviasales примерно за 48 часов, это не живой поиск: актуальную цену подтверждает ссылка url.

Inputs: month (required), origin (required), destination (required), direct, +2 more.

search_flightsA
Read-only

Самые дешёвые авиабилеты по маршруту на дату или месяц, от дешёвых к дорогим. Цена для туда-обратно — за весь перелёт. Цены берутся из кэша поисков Aviasales примерно за 48 часов, это не живой поиск: актуальную цену подтверждает ссылка url.

Inputs: origin (required), destination (required), departure_at (required), limit, +3 more.

search_placesA
Read-only

Находит IATA-код города или аэропорта по названию. Вызывайте перед остальными инструментами, если код неизвестен: им нужны коды вроде MOW или LED, а не названия.

Inputs: query (required), limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 4 tools

    Disambiguation4/5

    Each tool targets a distinct task: IATA code lookup (search_places), route pricing (search_flights), destination discovery (cheapest_destinations), and date-flexibility search (price_calendar). There is mild overlap between search_flights by month and price_calendar, and between search_flights and cheapest_destinations, but descriptions clarify the boundaries well.

    Naming Consistency4/5

    All names are snake_case and descriptive, but the convention is not uniform: two use a search_ verb prefix while cheapest_destinations and price_calendar are noun phrases. Still readable and predictable enough to distinguish at a glance.

    Tool Count4/5

    Four tools is a lean but well-scoped set covering code resolution, route pricing, destination discovery, and calendar pricing. Each earns its place, though the surface is on the thin side for a full flight-search domain.

    Completeness4/5

    The surface covers the core discovery workflow: resolve location, search a route, explore cheap destinations, and find cheap dates. Notable gaps include multi-city/round-trip specifics beyond trip_duration and no booking or price-alert operation, but these are workarounds rather than dead ends.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables flight price searching via Aviasales/Travelpayouts Data API, including fares by route and date, cheapest-day and flexible-date lookups, budget and inspiration searches, and airport/city/airline reference resolution.
      GPL 3.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides access to Aviasales flight data, including cheapest ticket prices, price calendars, month matrices, and popular destinations using IATA codes.
      77 npm
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables MCP clients such as Claude Desktop, Claude Code, Cursor, VS Code, and DSH to search cheap flights, inspect price calendars and popular directions, resolve IATA places, build Aviasales search URLs, and create affiliate short links with sub_id tracking.
      10
      MIT