io.github.theYahia/travelpayouts-mcp
MCP server for Travelpayouts API -- flight search, popular routes, price calendar.
Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
@theyahia/travelpayouts-mcpclaude mcp add travelpayouts-mcp -e 'TRAVELPAYOUTS_TOKEN=<your travelpayouts_token>' -- npx -y @theyahia/travelpayouts-mcp@1.0.0
{
"mcpServers": {
"travelpayouts-mcp": {
"command": "npx",
"args": [
"-y",
"@theyahia/travelpayouts-mcp@1.0.0"
],
"env": {
"TRAVELPAYOUTS_TOKEN": "<your travelpayouts_token>"
}
}
}
}
Environment variables
TRAVELPAYOUTS_TOKENrequired secret API key for the service
Documentation
From the project's README on GitHub, refreshed weekly. Links open on GitHub.
Contents
Travelpayouts MCP — flight and hotel search for AI assistants
If you were looking for a way to have Claude or another AI assistant find the cheapest flight on a route, show a price calendar across flexible dates, resolve an airport or airline code or search hotels, this is it. 13 tools sit on the Travelpayouts (Aviasales) API: flight search, price calendars, hotel search, airport/airline/city lookup, direct routes and flexible date pricing.
Install
npm install -g @theyahia/travelpayouts-mcp
Or use directly with npx:
npx @theyahia/travelpayouts-mcp
Environment Variables
| Variable | Required | Description |
|---|---|---|
TRAVELPAYOUTS_TOKEN | Yes | API token from Travelpayouts |
Claude Desktop Config
{
"mcpServers": {
"travelpayouts": {
"command": "npx",
"args": ["-y", "@theyahia/travelpayouts-mcp"],
"env": {
"TRAVELPAYOUTS_TOKEN": "your-token"
}
}
}
}
Tools (13)
Flights (8)
| Tool | Description |
|---|---|
search_flights_prices | Search cheap flights by route, dates, and currency |
get_cheapest_month | Find cheapest flights for an entire month |
get_calendar_prices | Price calendar showing cheapest price per day |
get_popular_directions | Popular flight directions from a city with prices |
get_airline_directions | Routes served by a specific airline |
get_special_offers | Current special flight deals across all routes |
get_direct_routes | Search only non-stop flights between two cities |
get_nearest_prices | Prices for ±N days around a target date (flexible travel) |
Hotels (2)
| Tool | Description |
|---|---|
search_hotels | Search hotels by city with dates and guest count |
get_hotel_prices | Get prices for a specific hotel by ID |
Lookup (3)
| Tool | Description |
|---|---|
lookup_airports | Search/autocomplete airports by name or IATA code |
lookup_airlines | Search airlines by name or IATA/ICAO code |
lookup_cities | Search/autocomplete cities by name or IATA code |
Auth
API token passed via X-Access-Token header or query parameter. Retries on 429 (rate limit) and 5xx (server errors) with exponential backoff.
Demo Prompts
- "Find the cheapest flights from Moscow to Istanbul in June"
Uses
lookup_citiesto resolve IATA codes, thenget_cheapest_monthto find the best deals for the month. - "What are the popular destinations from Saint Petersburg right now?"
Uses
get_popular_directionswith origin LED to show trending routes and current prices. - "Search hotels in Sochi for July 10-17 for 2 adults, then find flights there from Moscow"
Uses
search_hotelsfor accommodation options, thensearch_flights_pricesfor matching flight dates. - "I want to fly Moscow → Dubai around March 15, but ±3 days is fine if it's cheaper"
Uses
get_nearest_pricesto compare prices across 7 dates centered on March 15. - "Find only direct flights from Moscow to Minsk"
Uses
get_direct_routeswith direct=true filter.
Development
npm install
npm run dev # Run with tsx
npm test # Run tests
npm run build # Compile TypeScript
License
MIT
Telegram: @vhodvai
Frequently asked questions
What is io.github.theYahia/travelpayouts-mcp?
MCP server for Travelpayouts API -- flight search, popular routes, price calendar.
How do I install io.github.theYahia/travelpayouts-mcp?
It runs on your machine. In Claude Code: claude mcp add travelpayouts-mcp -e 'TRAVELPAYOUTS_TOKEN=<your travelpayouts_token>' -- npx -y @theyahia/travelpayouts-mcp@1.0.0. For other clients, paste the JSON configuration from this page into their MCP settings.
Does io.github.theYahia/travelpayouts-mcp need an API key?
Yes. It expects TRAVELPAYOUTS_TOKEN, which you set in its configuration.
Is io.github.theYahia/travelpayouts-mcp open source?
Yes. Its code is on GitHub under the MIT license.
Who maintains io.github.theYahia/travelpayouts-mcp?
It is published by theYahia. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.