Aviasales Flight Prices
v0.5.3Flight price search via Aviasales/Travelpayouts: fares by route, cheapest days, flexible dates.
Values you need
| Variable | What it is | |
|---|---|---|
AVIASALES_API_TOKEN | required secret | Travelpayouts API token (https://www.travelpayouts.com/programs/100/tools/api) |
AVIASALES_MARKET | optional | 2-letter market whose price cache to read; unset falls back to ru |
AVIASALES_DEFAULT_CURRENCY | optional | Default price currency Default: rub |
AVIASALES_PARTNER_ID | optional | 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.3Add 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.3Add 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
- Ask the user for: AVIASALES_API_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- 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, ….
- 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