# Aviasales Flight Prices

Aviasales Flight Prices — an MCP server for flight price search via Aviasales and Travelpayouts API. Thirteen tools: route and month search, cheapest departure day, flexible dates, airport lookup.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 9 repo stars
- Author: stufently
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/stufently/aviasales-mcp
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/aviasales-flight-prices

## What it does

The server exposes thirteen tools for working with the Travelpayouts API: fare search by route and month, price calendar for a given month, comparison of departure and return dates with one-day shifts, budget destination search, city and airport name resolution. Unlike Google Flights scrapers, the agent does not have to guess IATA codes: `lookup_cities` and `find_nearest_airports` resolve place names.

Running it requires Docker and a Travelpayouts API token (free, issued on the partner program site). Without Docker, install via `uvx aviasales-mcp` (Python 3.12+). The token is passed through the `AVIASALES_API_TOKEN` variable, market and currency through `AVIASALES_MARKET` and `AVIASALES_DEFAULT_CURRENCY`.

The image is packaged in the `ghcr.io/stufently/aviasales-mcp:latest` Docker container, versions are tagged. An invalid token does not block process startup — the error surfaces on the first search request.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Environment variables: `AVIASALES_API_TOKEN`, `AVIASALES_MARKET`, `AVIASALES_DEFAULT_CURRENCY`, `AVIASALES_PARTNER_ID` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env AVIASALES_API_TOKEN=<AVIASALES_API_TOKEN> --env AVIASALES_MARKET=<AVIASALES_MARKET> --env AVIASALES_DEFAULT_CURRENCY=<AVIASALES_DEFAULT_CURRENCY> --env AVIASALES_PARTNER_ID=<AVIASALES_PARTNER_ID> --transport stdio aviasales-flight-prices -- uvx aviasales-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from aviasales-mcp <command>

### Codex

**Platform CLI**
```bash
codex mcp add aviasales-flight-prices --env AVIASALES_API_TOKEN=<AVIASALES_API_TOKEN> --env AVIASALES_MARKET=<AVIASALES_MARKET> --env AVIASALES_DEFAULT_CURRENCY=<AVIASALES_DEFAULT_CURRENCY> --env AVIASALES_PARTNER_ID=<AVIASALES_PARTNER_ID> -- uvx aviasales-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from aviasales-mcp <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "aviasales-flight-prices": {
            "command": "uvx",
            "args": [
                "aviasales-mcp"
            ],
            "env": {
                "AVIASALES_API_TOKEN": "<AVIASALES_API_TOKEN>",
                "AVIASALES_MARKET": "<AVIASALES_MARKET>",
                "AVIASALES_DEFAULT_CURRENCY": "<AVIASALES_DEFAULT_CURRENCY>",
                "AVIASALES_PARTNER_ID": "<AVIASALES_PARTNER_ID>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from aviasales-mcp <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "aviasales-flight-prices": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "aviasales-mcp"
            ],
            "env": {
                "AVIASALES_API_TOKEN": "<AVIASALES_API_TOKEN>",
                "AVIASALES_MARKET": "<AVIASALES_MARKET>",
                "AVIASALES_DEFAULT_CURRENCY": "<AVIASALES_DEFAULT_CURRENCY>",
                "AVIASALES_PARTNER_ID": "<AVIASALES_PARTNER_ID>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from aviasales-mcp <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e AVIASALES_API_TOKEN=<AVIASALES_API_TOKEN> -e AVIASALES_MARKET=<AVIASALES_MARKET> -e AVIASALES_DEFAULT_CURRENCY=<AVIASALES_DEFAULT_CURRENCY> -e AVIASALES_PARTNER_ID=<AVIASALES_PARTNER_ID> aviasales-flight-prices uvx aviasales-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from aviasales-mcp <command>

## When to use it
- find flight fares by route and month
- determine the cheapest departure day
- compare departure and return dates with one-day offsets
- find destinations from a city within budget
- resolve a city or resort name to an airport code

## Example prompts
- How much does a flight from Moscow to Istanbul cost in March?
- I'm flying Berlin to Lisbon on May 12, returning on the 19th. Will it be cheaper if I shift the dates by a day?
- Where can I fly from St Petersburg for less than 30,000 rubles?

## Similar
- [pricewin-flight-search](https://affpapa.org/en/nevibecode/skills/pricewin-flight-search.md) — skill · 10600 installs
- [ScraperCompany: hotel, rental and flight prices](https://affpapa.org/en/nevibecode/mcp/scrapercompany-hotel-rental-and-flight-prices.md) — MCP server
- [pp-flight-goat](https://affpapa.org/en/nevibecode/skills/pp-flight-goat.md) — skill · 4700 installs
- [Hyperliquid Spot — 454 Tokens, Prices, Balances](https://affpapa.org/en/nevibecode/mcp/hyperliquid-spot-454-tokens-prices-balances.md) — MCP server · 3947 installs
- [Token Price — Real-Time Crypto Prices for 10K+ Tokens](https://affpapa.org/en/nevibecode/mcp/token-price-real-time-crypto-prices-for-10k-tokens.md) — MCP server · 2799 installs
- [flight](https://affpapa.org/en/nevibecode/skills/flight.md) — skill · 2 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
