Cleartrip API and MCP server for AI agents

Let Claude, ChatGPT or your own agent read Cleartrip. No Cleartrip API key needed.

Add to your agent

Paste this into Claude Code, Cursor, Codex or any agent. It adds the server itself.

Read https://bowmark.ai/sites/cleartrip.md and add Bowmark's Cleartrip MCP server to my agent.

Functions

Open a function to see its parameters and run it with your own API key.

  • getHotelRatesEvery room and rate one Cleartrip hotel offers for a stay (dates, nights, adults, rooms), signed out, in INR, cheapest first.

    POST /v1/sites/cleartrip/getHotelRates

    Parameters

    From searchHotels.

    YYYY-MM-DD, today or later.

    YYYY-MM-DD, 1-30 nights after checkIn.

    Per room, 1-6, default 2.

    1-4, default 1.

    curl -X POST https://api.bowmark.ai/v1/sites/cleartrip/getHotelRates \
      -H "Authorization: Bearer $BOWMARK_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"args":{"hotelId":"259671","checkIn":"{\"$daysFromNow\":30}","checkOut":"{\"$daysFromNow\":31}"}}'
    Sign in to run
    Responsereturns CleartripHotelRates
    interface CleartripRate {
      roomType: string;
      roomDetail: string | null; // bed, size and capacity line
      rateName: string; // e.g. Room Only, Room with Breakfast
      pricePerNight: number; // INR, before taxes, for all rooms asked
      taxesAndFeesPerNight: number | null;
      totalPrice: number | null; // INR for the whole stay incl. taxes
      inclusions: string[];
      notIncluded: string[];
      freeCancellation: boolean;
      bookingCode: string | null;
    }
    
    interface CleartripHotelRates {
      hotelId: string;
      checkIn: string;
      checkOut: string;
      nights: number;
      adults: number;
      rooms: number;
      currency: "INR";
      rates: CleartripRate[]; // empty when nothing is available
      hotelUrl: string;
    }
  • searchAirportsMatches a city or airport name against Cleartrip's airport autocomplete and returns the IATA codes searchFlights takes.

    POST /v1/sites/cleartrip/searchAirports

    Parameters

    curl -X POST https://api.bowmark.ai/v1/sites/cleartrip/searchAirports \
      -H "Authorization: Bearer $BOWMARK_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"args":{"query":"Mumbai"}}'
    Sign in to run
    Responsereturns CleartripAirport[]
    interface CleartripAirport {
      code: string; // IATA code searchFlights takes
      label: string;
      city: string;
      countryCode: string | null;
    }
  • searchFlightsSearches Cleartrip (India) for one-way flights on a date and returns every itinerary with airlines, times, stops and fares in INR, cheapest first.

    POST /v1/sites/cleartrip/searchFlights

    Parameters

    IATA code from searchAirports.

    YYYY-MM-DD, today or later.

    curl -X POST https://api.bowmark.ai/v1/sites/cleartrip/searchFlights \
      -H "Authorization: Bearer $BOWMARK_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"args":{"from":"BOM","to":"DEL","departDate":"{\"$daysFromNow\":21}"}}'
    Sign in to run
    Responsereturns CleartripFlightSearch
    interface CleartripEndpoint {
      airport: string;
      airportName: string | null;
      city: string | null;
      terminal: string | null;
      time: string; // local ISO time with offset
    }
    
    interface CleartripFare {
      name: string; // fare family, e.g. SAVER
      totalPrice: number; // INR, all passengers
      baseFare: number;
      tax: number;
      pricePerAdult: number | null;
      refundability: string | null;
      seatsLeft: number | null;
      checkInBaggageAllowed: boolean | null;
    }
    
    interface CleartripFlight {
      id: string;
      airlines: string[];
      flightNumbers: string[];
      departure: CleartripEndpoint;
      arrival: CleartripEndpoint;
      durationMinutes: number;
      stops: number;
      stopsText: string;
      layovers: { airport: string; durationMinutes: number }[];
      cheapestFare: CleartripFare | null;
      fares: CleartripFare[];
    }
    
    interface CleartripFlightSearch {
      from: string;
      to: string;
      departDate: string;
      currency: "INR";
      totalFound: number;
      flights: CleartripFlight[];
      resultsUrl: string;
    }
  • searchHotelsFinds a hotel on Cleartrip (India) by its name and city and returns Cleartrip's hotel id, locality and public page, best match first.

    POST /v1/sites/cleartrip/searchHotels

    Parameters

    1-25, default 10.

    curl -X POST https://api.bowmark.ai/v1/sites/cleartrip/searchHotels \
      -H "Authorization: Bearer $BOWMARK_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"args":{"name":"Taj Mahal Palace","city":"Mumbai"}}'
    Sign in to run
    Responsereturns CleartripHotelSearch
    interface CleartripHotel {
      hotelId: string; // Cleartrip's numeric property id
      name: string;
      city: string; // Cleartrip's city name (Delhi, Bangalore)
      locality: string | null;
      state: string | null;
      countryCode: string | null;
      description: string | null;
      pageUrl: string;
    }
    
    interface CleartripHotelSearch {
      query: { name: string; city: string };
      hotels: CleartripHotel[];
    }