Aviasales Flight Prices

v0.5.3
io.github.stufently/aviasales-mcp Checked 4 days ago Published 1 month ago

Flight price search via Aviasales/Travelpayouts: fares by route, cheapest days, flexible dates.

Values you need

VariableWhat it is
AVIASALES_API_TOKENrequired secret Travelpayouts API token (https://www.travelpayouts.com/programs/100/tools/api)
AVIASALES_MARKEToptional 2-letter market whose price cache to read; unset falls back to ru
AVIASALES_DEFAULT_CURRENCYoptional Default price currency Default: rub
AVIASALES_PARTNER_IDoptional Travelpayouts partner ID embedded in booking links

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

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

Docker

Requires Docker

Run in a terminal
claude mcp add aviasales-mcp -e 'AVIASALES_API_TOKEN=<AVIASALES_API_TOKEN>' -- docker run -i --rm -e AVIASALES_API_TOKEN ghcr.io/stufently/aviasales-mcp:0.5.3
Add to claude_desktop_config.json
{
  "mcpServers": {
    "aviasales-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "AVIASALES_API_TOKEN",
        "ghcr.io/stufently/aviasales-mcp:0.5.3"
      ],
      "command": "docker",
      "env": {
        "AVIASALES_API_TOKEN": "<AVIASALES_API_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "aviasales-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "AVIASALES_API_TOKEN",
        "ghcr.io/stufently/aviasales-mcp:0.5.3"
      ],
      "command": "docker",
      "env": {
        "AVIASALES_API_TOKEN": "<AVIASALES_API_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "AVIASALES_API_TOKEN",
      "id": "aviasales-api-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "aviasales-mcp": {
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "AVIASALES_API_TOKEN",
        "ghcr.io/stufently/aviasales-mcp:0.5.3"
      ],
      "command": "docker",
      "env": {
        "AVIASALES_API_TOKEN": "${input:aviasales-api-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.aviasales-mcp]
command = "docker"
args = ["run", "-i", "--rm", "-e", "AVIASALES_API_TOKEN", "ghcr.io/stufently/aviasales-mcp:0.5.3"]
env = { "AVIASALES_API_TOKEN" = "<AVIASALES_API_TOKEN>" }

For AI agents

  1. Ask the user for: AVIASALES_API_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_flights, get_prices_calendar, get_flexible_date_prices, get_latest_prices, get_popular_directions, get_city_directions, get_alternative_directions, search_by_price_range, ….
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json