Aviasales

v0.1.1
io.github.danyasnov/avia-mcp Checked 3 days ago Published 1 month ago

Cheap flight search via Aviasales Data API: fares by route, price calendar, cheapest destinations.

Values you need

VariableWhat it is
TRAVELPAYOUTS_TOKENrequired secret Travelpayouts API token (free: travelpayouts.com → Tools → API)
AVIA_CURRENCYoptional Price currency, e.g. rub, usd, eur Default: rub

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add avia-mcp -e 'TRAVELPAYOUTS_TOKEN=<TRAVELPAYOUTS_TOKEN>' -- npx -y avia-mcp@0.1.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "avia-mcp": {
      "args": [
        "-y",
        "avia-mcp@0.1.1"
      ],
      "command": "npx",
      "env": {
        "TRAVELPAYOUTS_TOKEN": "<TRAVELPAYOUTS_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "avia-mcp": {
      "args": [
        "-y",
        "avia-mcp@0.1.1"
      ],
      "command": "npx",
      "env": {
        "TRAVELPAYOUTS_TOKEN": "<TRAVELPAYOUTS_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "TRAVELPAYOUTS_TOKEN",
      "id": "travelpayouts-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "avia-mcp": {
      "args": [
        "-y",
        "avia-mcp@0.1.1"
      ],
      "command": "npx",
      "env": {
        "TRAVELPAYOUTS_TOKEN": "${input:travelpayouts-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.avia-mcp]
command = "npx"
args = ["-y", "avia-mcp@0.1.1"]
env = { "TRAVELPAYOUTS_TOKEN" = "<TRAVELPAYOUTS_TOKEN>" }

For AI agents

  1. Ask the user for: TRAVELPAYOUTS_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: search_places, search_flights, price_calendar, cheapest_destinations.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json