AI & Agents

Connect your AI agent to plan a vacation - best flight and hotel, on any platform

A practical guide to wiring an AI agent (Claude, or any MCP-capable assistant) to live flight and hotel data - so it finds the best fare and the best room across every platform, with prices that are actually right.

By Mohammad Shakir, Co-founder & CEO · Published 26 Nov 2026 · Updated 2 Dec 2026

The promise: you tell an agent "long weekend in Goa, under ₹25K" or "JFK→LHR in March, lowest real price, 4-star hotel near the centre" - and it comes back with the actual best options, not a hallucinated list. The missing piece is never the model. It's live data the agent can trust.

Why agents fail at travel today

  • They browse → anti-bot systems block them.
  • They parse pages → they quote strikethrough prices, miss taxes, confuse per-night with total-stay.
  • They rely on training data → fares move by the minute; cached knowledge is confidently wrong.

An agent planning a real trip with real money needs live fares, the payable price, one schema across platforms, and explicit errors. We wrote up the failure modes in why AI agents quote the wrong hotel prices.

What the agent gets through ScrapeGuys MCP

ScrapeGuys ships a native MCP server, so any MCP-capable assistant - Claude, Claude Code, or your own agent framework - discovers travel data as typed tools, zero glue code:

  • search_flights - every flight on a route with live fares, from Google Flights worldwide or the MakeMyTrip and Cleartrip OTAs. The same flight contract on the REST API adds Paytm, ixigo and Goibibo - six sources in all, plus a flight metasearch source for the seller-by-seller view.
  • get_fare_families / get_flight_checkout_breakdown - the fare build-up down to what the traveller actually pays on OTA sources.
  • search_destination - every property in a destination for the stay dates, then filter.
  • get_hotel_rates / rate_shop - live room rates on an OTA, or a hotels × OTAs × dates grid in one call.
  • get_google_hotel_prices - Google Hotels' price per booking site for one hotel and stay.

Same request shape, same schema, every time. Success-based pricing, because agents retry.

How to wire it up

  1. Get an API key. Sign up at scrapeguys.com - 1,000 free credits, no card.
  2. Add the ScrapeGuys MCP server to your assistant. In Claude, paste the connector URL under Settings, Connectors, Add custom connector; in an agent framework, register https://api.scrapeguys.com/api/v1/mcp/ as a Streamable HTTP tool server. The MCP access key is issued per deployment and linked to your API key - details on MCP for AI agents.
  3. Ask for the trip in plain language. The agent picks the tools: flights first, then hotels, then the payable-price check on the shortlist.
  4. Let the agent compare like-for-like. Same room, same board, same cancellation terms; same cabin, same fare family.
  5. Human books. The agent hands over deep context: the exact itinerary, seller, room and the price it verified, live.

A worked example

A user asks: "Find me the cheapest nonstop from Delhi to Mumbai, and two nights at the Taj Mahal Palace with breakfast and free cancellation." Here is what the agent does. The outputs below are trimmed sample responses reproduced from our docs pages - the route, dates and figures are the docs' examples, shown as illustrative sample output, not a live quote.

1. Flights - breadth first. The agent calls search_flights with origin: "DEL", destination: "BOM", max_stops: 0 and source: "google_flights" to see what exists and where the price floor is:

search_flights · google_flights (illustrative sample output, from /docs/google-flights)
{
  "flights": [
    {
      "airlines": ["SpiceJet"], "carrier_code": "SG",
      "flight_numbers": ["SG510"],
      "origin": "DEL", "destination": "BOM",
      "departure_time": "2026-08-19T04:00:00",
      "arrival_time": "2026-08-19T06:15:00",
      "duration_minutes": 135, "stops": 0,
      "price": 6277, "currency": "INR"
    }
  ],
  "search_context": {
    "currency": "INR", "currency_confirmed": true,
    "top_offer_count": 3, "other_offer_count": 65
  }
}

For a shortlisted itinerary it can then get the seller spread (via the metasearch REST source) or, on an OTA source, the payable price with get_flight_checkout_breakdown.

2. Hotel - the actual room, with its terms. search_destination would shortlist properties if the user had not named one; here the agent goes straight to get_hotel_rates for the named hotel on an OTA. Every rate carries its price basis and tax status, so the agent never mixes per-night with whole-stay, or pre-tax with all-in:

get_hotel_rates · makemytrip (illustrative sample output, from /docs/makemytrip-hotels)
{
  "ota": "makemytrip",
  "hotel_name": "The Taj Mahal Palace, Mumbai",
  "check_in": "2026-12-15", "check_out": "2026-12-17",
  "nights": 2, "currency": "INR",
  "cheapest_fitting_price": 21800.0,
  "cheapest_fitting_basis": "per_night_before_taxes",
  "cheapest_fitting_tax_status": "excluded",
  "room_types": [{
    "name": "Luxury Room Palace Wing",
    "offers": [{
      "price": 21800.0, "price_basis": "per_night_before_taxes",
      "board": "Breakfast included", "free_cancellation": true,
      "cancellation_text": "Free cancellation until Dec 13",
      "tax_status": "excluded", "tax_and_fees": 3924.0
    }]
  }]
}

3. Verify across platforms. get_google_hotel_prices returns the price each booking site shows for the same stay, so the agent can check whether another platform is cheaper before it answers.

4. Present 2-3 verified options. Each with the flight, the seller, the room, the board and cancellation terms, and the price the agent verified - labelled with its basis and whether taxes are in.

Beyond travel

The same rails run on e-commerce, quick commerce, food delivery, reviews and social - any platform as deterministic JSON. Travel is where agents are learning to buy; it won't be where they stop.

Docs · MCP · Start with 1,000 free credits - plans from $25/month.

FAQ

Which assistants can use this?
Anything that speaks MCP - Claude and Claude Code natively, plus any agent framework that can register an MCP tool server. For non-MCP stacks, the same endpoints are a plain REST API.
Can the agent book the trip?
ScrapeGuys supplies the data layer - live fares, rates and payable prices. Booking stays with the traveller (or your product's own booking flow); the agent hands over a verified shortlist.
Does it work outside India?
Yes - Google Flights covers routes worldwide, the metasearch source covers the India and US markets today, hotel sources span every major OTA, and teams worldwide use the API.
What does it cost?
Credits, success-based - you only pay for successful responses. 1,000 free credits to start; plans from $25/month - see pricing.

More: best web scraping APIs for AI agents (2026) · web data for AI agents · AI agents & LLM teams.