Cheap flight search via Aviasales Data API: fares by route, price calendar, cheapest destinations.
MCP-сервер для поиска дешёвых авиабилетов через Aviasales Data API (Travelpayouts).
Цены берутся из кэша поисков Aviasales примерно за 48 часов — это не живой поиск. Актуальную цену подтверждает ссылка на Aviasales из ответа. Покупки и бронирования через сервер нет.
| Инструмент | Что делает |
|---|---|
search_places | IATA-код города или аэропорта по названию. Токен не нужен. |
search_flights | Самые дешёвые билеты по маршруту на дату или месяц. |
price_calendar | Минимальная цена по дням месяца и три самых дешёвых дня. |
cheapest_destinations | Самые дешёвые направления из города, с потолком цены. |
Бесплатный токен: 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
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
npx -y avia-mcpMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-danyasnov-avia-mcp": {
"command": "npx",
"args": [
"-y",
"avia-mcp"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referenceavia-mcpnpmAviasales works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.