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.Run this in a terminal, then sign in when the browser opens. Claude Code keeps its own sign-in (a claude.ai sign-in does not carry over), so add only this one server. Adding the Bowmark plugin as well lists every tool twice.
claude mcp add --transport http bowmark-cleartrip https://api.bowmark.ai/mcp/site/cleartripPress the button, or add this to ~/.cursor/mcp.json.
{
"mcpServers": {
"bowmark-cleartrip": {
"url": "https://api.bowmark.ai/mcp/site/cleartrip"
}
}
}Press the button, or run this in a terminal.
code --add-mcp '{"name":"bowmark-cleartrip","type":"http","url":"https://api.bowmark.ai/mcp/site/cleartrip"}'Run this in a terminal.
codex mcp add bowmark-cleartrip --url https://api.bowmark.ai/mcp/site/cleartripIn Claude, open Plugins → Add → Add custom connector, paste this URL, and pick Sign in now.
https://api.bowmark.ai/mcp/site/cleartripIn ChatGPT, open Plugins, press +, choose Add custom MCP server and paste this URL.
https://api.bowmark.ai/mcp/site/cleartripAny MCP client that takes a remote (streamable HTTP) server: give it this URL.
https://api.bowmark.ai/mcp/site/cleartripFunctions
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}"}}'import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.cleartrip.getHotelRates({ hotelId: "259671", checkIn: "{\"$daysFromNow\":30}", checkOut: "{\"$daysFromNow\":31}" });import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.cleartrip.getHotelRates({ "hotelId": "259671", "checkIn": "{\"$daysFromNow\":30}", "checkOut": "{\"$daysFromNow\":31}" }))Responsereturns CleartripHotelRatesinterface 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"}}'import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.cleartrip.searchAirports({ query: "Mumbai" });import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.cleartrip.searchAirports({"query": "Mumbai"}))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}"}}'import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.cleartrip.searchFlights({ from: "BOM", to: "DEL", departDate: "{\"$daysFromNow\":21}" });import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.cleartrip.searchFlights({ "from": "BOM", "to": "DEL", "departDate": "{\"$daysFromNow\":21}" }))Responsereturns CleartripFlightSearchinterface 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"}}'import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.cleartrip.searchHotels({ name: "Taj Mahal Palace", city: "Mumbai" });import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.cleartrip.searchHotels({"name": "Taj Mahal Palace", "city": "Mumbai"}))Responsereturns CleartripHotelSearchinterface 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[]; }