mcpField
T
travelpayouts-mcp

travelpayouts-mcp

Local
github.com/theYahiaMaps & Travel0Updated 8w ago

About travelpayouts-mcp

travelpayouts-mcp gives AI assistants access to flight, hotel, and travel-location searches through the Travelpayouts (Aviasales) API. It includes price calendars, flexible-date comparisons, and airport, airline, and city lookups; an API token is required.

Key features

  1. 01Search flights by route, dates, and currency
  2. 02Find monthly and daily lowest fares
  3. 03View popular routes and airline routes
  4. 04Search hotels and retrieve hotel prices
  5. 05Look up airports, airlines, and cities
  6. 06Find direct routes and flexible-date prices

Use cases

  1. 01Compare fares for a route and travel dates
  2. 02Check low fares for a month or nearby dates
  3. 03Find hotels by city, dates, and guest count
  4. 04Resolve airport, airline, or city codes

MCP support

It exposes 13 Travelpayouts API tools to MCP clients for flights, hotels, and travel-location lookups. `TRAVELPAYOUTS_TOKEN` is required.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"theyahia-travelpayouts": {
"command": "npx",
"args": [
"-y",
"@theyahia/travelpayouts-mcp"
],
"env": {
"TRAVELPAYOUTS_TOKEN": "<TRAVELPAYOUTS_TOKEN>"
}
}
}
}
Run commandnpx -y @theyahia/travelpayouts-mcp
Environment variables to set
TRAVELPAYOUTS_TOKENSecretAPI key for the service

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@theyahia/travelpayouts-mcp1.0.0

Tools

3

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
limitnumberNoNumber of results
originstringYesDeparture city code (IATA, e.g. MOW)
one_waybooleanNoOne-way only
destinationstringYesArrival city code (IATA, e.g. LED)
departure_atstringNoDeparture date YYYY-MM or YYYY-MM-DD

Details

From the project README

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

VariableRequiredDescription
TRAVELPAYOUTS_TOKENYesAPI token from Travelpayouts

Claude Desktop Config

{
  "mcpServers": {
    "travelpayouts": {
      "command": "npx",
      "args": ["-y", "@theyahia/travelpayouts-mcp"],
      "env": {
        "TRAVELPAYOUTS_TOKEN": "your-token"
      }
    }
  }
}

Tools (13)

Flights (8)
ToolDescription
search_flights_pricesSearch cheap flights by route, dates, and currency
get_cheapest_monthFind cheapest flights for an entire month
get_calendar_pricesPrice calendar showing cheapest price per day
get_popular_directionsPopular flight directions from a city with prices
get_airline_directionsRoutes served by a specific airline
get_special_offersCurrent special flight deals across all routes
get_direct_routesSearch only non-stop flights between two cities
get_nearest_pricesPrices for ±N days around a target date (flexible travel)
Hotels (2)
ToolDescription
search_hotelsSearch hotels by city with dates and guest count
get_hotel_pricesGet prices for a specific hotel by ID
Lookup (3)
ToolDescription
lookup_airportsSearch/autocomplete airports by name or IATA code
lookup_airlinesSearch airlines by name or IATA/ICAO code
lookup_citiesSearch/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

  1. "Find the cheapest flights from Moscow to Istanbul in June" Uses lookup_cities to resolve IATA codes, then get_cheapest_month to find the best deals for the month.

  2. "What are the popular destinations from Saint Petersburg right now?" Uses get_popular_directions with origin LED to show trending routes and current prices.

  3. "Search hotels in Sochi for July 10-17 for 2 adults, then find flights there from Moscow" Uses search_hotels for accommodation options, then search_flights_prices for matching flight dates.

  4. "I want to fly Moscow → Dubai around March 15, but ±3 days is fine if it's cheaper" Uses get_nearest_prices to compare prices across 7 dates centered on March 15.

  5. "Find only direct flights from Moscow to Minsk" Uses get_direct_routes with 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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.