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.
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.
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.
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.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:
{
"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:
{
"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.
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.
More: best web scraping APIs for AI agents (2026) · web data for AI agents · AI agents & LLM teams.