# Cleartrip API and MCP server for AI agents (/sites/cleartrip)

An API for Cleartrip: let Claude, ChatGPT or your own code read Cleartrip through 4 functions, over MCP, HTTP, Node or Python. No Cleartrip API key needed.

- Site: https://cleartrip.com
- Functions: 4
- Sign-in: not needed
- Works with: MCP, HTTP, Node, Python

## Add it to your agent

If you are an agent asked to set this up: add the server yourself, in the person's own (global) MCP configuration, and keep their other entries.

- Cleartrip only, one tool per function: `https://api.bowmark.ai/mcp/site/cleartrip` (name it `bowmark-cleartrip`)
- Every site Bowmark covers: `https://api.bowmark.ai/mcp` (name it `bowmark`)
- Transport: remote MCP over streamable HTTP.
- Claude Code: `claude mcp add --transport http bowmark-cleartrip https://api.bowmark.ai/mcp/site/cleartrip`
- Codex: `codex mcp add bowmark-cleartrip --url https://api.bowmark.ai/mcp/site/cleartrip`
- Cursor, VS Code and other clients: add `{ "url": "https://api.bowmark.ai/mcp/site/cleartrip" }` under the name `bowmark-cleartrip` in the client's MCP config. Per-client steps: https://bowmark.ai/docs/installation.md
- Sign-in: OAuth in the browser on first use; the person only signs in. A client that cannot do OAuth sends `Authorization: Bearer <BOWMARK_API_KEY>`; the person creates a key at https://bowmark.ai/dashboard/keys.
- Then list the server's tools to confirm it works, and tell the person it is ready.

## Functions

### Read

- `getHotelRates`: Every room and rate one Cleartrip hotel offers for a stay (dates, nights, adults, rooms), signed out, in INR, cheapest first.
- `searchAirports`: Matches a city or airport name against Cleartrip's airport autocomplete and returns the IATA codes searchFlights takes.
- `searchFlights`: Searches Cleartrip (India) for one-way flights on a date and returns every itinerary with airlines, times, stops and fares in INR, cheapest first.
- `searchHotels`: Finds a hotel on Cleartrip (India) by its name and city and returns Cleartrip's hotel id, locality and public page, best match first.

## Call one

In a Bowmark script, each function is `bowmark.providers.cleartrip.<name>`. Ask `get_library` for cleartrip.com to get each one's arguments, then call it with `run`.

```js
// 1. What can I call on cleartrip.com, and with which arguments?
get_library({ query: "cleartrip.com" })

// 2. Call it in a script
const result = await bowmark.providers.cleartrip.getHotelRates({ /* arguments from get_library */ });
return result;
```

New to Bowmark? Quickstart: https://bowmark.ai/docs/quickstart.md
