Ctrip MCP Server
  ![Ctrip](/assets/logos/trip_logo-60cce01cca0d3ec969b85cfdfd2df08f2250e3260cc55e431bdab29455a1411f.png) ![Model Context Protocol](/assets/logos/mcp_logo-5491d9a62e32c642cb83f2f0ba7d7d7efcaefa6f44e5d305f7dc3f28b6587cee.svg) 

# Get Ctrip hotel data by chatting with AI.

Paste one prompt into **Claude Code, Cursor, or your agent** and it installs itself. Your agent then pulls Ctrip data from plain-English prompts. Same API key, same billing as the REST API.

[Install it in your agent](#setup)[Read the MCP docs](/docs/mcp)

**50** free requests on signupNo credit cardAny language, no code

Trusted by hospitality teams at

 ![EHL](/assets/logos/ehl-51e6ac832bd7a1b8c1f3c17ea48e7f7464f2aaead02a54b7cab2f2ee05b06c86.png) ![Skyscanner](/assets/logos/skyscanner-47f9fed400d4f828b0499892968e393aa1435240b8a573988d36fceb7f0433ae.png) ![Mews](/assets/logos/mews-e52288ca26c3e8d5e3878b522b92b521916a7df9c07556910102ad7bebbd216b.svg) ![CBRE](/assets/logos/cbre-f38211cf61a47f45d021ab25957f592fb2043bcff716539e3f2f54fd7fde91be.png) ![Ripe](/assets/logos/ripe-9fec989e25c3a18f2fec0357610bc743f12bf0e96cfa4824f457c4aa2c95db60.svg)

What you can ask
## Ask in plain English. Get real Ctrip answers.

Whatever you'd ask a junior analyst about a hotel, ask your agent. No syntax to learn.

\>

Find hotels in Hangzhou on Ctrip for March 1 to 3, 2027.

\>

Turn this Ctrip hotel URL into a hotel ID and show its amenities and policies.

\>

What is the lowest advertised Ctrip price for hotel 18078321 for my dates?

\>

Summarize the latest Ctrip reviews for hotel 18078321 in English.

Behind the scenes
## You type plain English. Your agent calls the right Ctrip tool.

Real examples. You ask, the agent picks a tool and fills the parameters, you read the answer. These outputs are illustrative.

01Search

You ask

Find hotels in Hangzhou on Ctrip for March 1 to 3, 2027.

Behind the scenes`ctrip_lookup_destination(query="Hangzhou") -> ctrip_search_hotels(city_id=17, check_in="2027-03-01", check_out="2027-03-03")`

You see

Up to 13 hotels from the first results page, with hotel IDs, ratings, and location.

02Rooms

You ask

What is the lowest advertised Ctrip price for hotel 18078321 for my dates?

Behind the scenes`ctrip_hotel_rooms(hotel_id=18078321, check_in="2027-03-01", check_out="2027-03-03", adults=2)`

You see

Room types and availability with the advertised lowest price in CNY. Per-rate-plan prices are null.

03Reviews

You ask

Summarize the latest Ctrip reviews for hotel 18078321 in English.

Behind the scenes`ctrip_hotel_reviews(hotel_id=18078321)`

You see

Up to 10 reviews from the first page with ratings, room types, and owner responses, summarized in English.

Connect it
## Paste one sentence. Your agent does the rest.

Copy the prompt into the agent you already have open. It reads our setup page and wires up the connector itself.

 Paste into Claude Code

```
Read https://stayapi.com/install and set up the StayAPI MCP server for me.
```

Then open a **new** session and run `claude mcp list`: `stayapi` should read `✓ Connected`.

**No key yet?** [Sign up](/users/sign_up) for 50 free requests. The agent asks you for it.

**Claude on the web, desktop, or mobile** doesn't need this prompt: add StayAPI under Settings → Connectors and sign in. **ChatGPT** : add it as an MCP app in developer mode and sign in. Other clients: manual setup below.

No key
### Claude on the web, desktop & mobile

Add StayAPI as a connector and sign in. Nothing to paste.

1. In Claude, open **Settings → Connectors → Add custom connector**.
2. Name it `StayAPI` and set the URL to `https://api.stayapi.com/mcp`.
3. Click **Connect** , sign in to StayAPI, and choose **Allow**.

No key
### ChatGPT (developer mode)

Add StayAPI as an MCP app and sign in. Plus, Pro, Business, Enterprise, or Edu, on the web.

1. In ChatGPT, turn on **Settings → Security and login → Developer mode**.
2. Open `chatgpt.com/plugins`, click **+** , and choose **Create MCP app**.
3. Name it `StayAPI`, set the URL to `https://api.stayapi.com/mcp`, and pick **OAuth**. Leave the client ID and secret blank.
4. Sign in to StayAPI, choose **Allow** , then install StayAPI from your personal plugins.
5. In a **Work** chat, type `@StayAPI` and ask.

#Manual setup — paste the config yourself

01
### Claude Code

One terminal command.

bash

```
claude mcp add --scope user --transport http stayapi https://api.stayapi.com/mcp --header "X-API-Key: YOUR_API_KEY"
```

1. Run the command in any terminal.
2. Open a **new** Claude Code session.
3. Confirm with `claude mcp list`.

02
### Cursor

Edit `~/.cursor/mcp.json`.

json

```
{
  "mcpServers": {
    "stayapi": {
      "type": "http",
      "url": "https://api.stayapi.com/mcp",
      "headers": { "X-API-Key": "YOUR_API_KEY" }
    }
  }
}
```

1. Open or create the file.
2. Paste, swap `YOUR_API_KEY`, save.
3. Restart Cursor.

03
### Claude Desktop

Edit `claude_desktop_config.json`.

json

```
{
  "mcpServers": {
    "stayapi": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote@0.1.18",
        "https://api.stayapi.com/mcp",
        "--header", "X-API-Key:YOUR_API_KEY"
      ]
    }
  }
}
```

1. Open the config file in your OS.
2. Paste, swap the key, save.
3. Quit Claude with ⌘ Q, relaunch.

On Windows, a bare `npx` can fail with `spawn npx ENOENT`. Use the absolute path to `npx.cmd`. [Windows setup notes →](/docs/mcp)

Full reference — every tool, error shapes, Windows notes: [MCP documentation →](/docs/mcp)

Tools for Ctrip
## The Ctrip tools your agent can call.

Most agents pick the right tool from your prompt, so you never name it. One tool call counts as one request, the same as a REST request.

`ctrip_lookup_destination`

Resolve a city or exact place name (English or Chinese, 2–100 characters) to the Ctrip city\_id that search needs; optional country filters homonyms, limit 1–15. Several matching cities, or a region instead of a city, return invalid\_input with suggestions to choose from.

`ctrip_search_hotels`

First-page Ctrip hotel search (up to 13 hotels) by city\_id, with IDs, names, ratings, location and an optional sample room. Optional paired stay dates, today or later, 1–30 nights; the default stay is one night two weeks out.

`ctrip_hotel_url_to_id`

Extract the numeric Ctrip hotel\_id locally from a ctrip.com hotel URL, for details, rooms and reviews.

`ctrip_hotel_details`

Ctrip hotel content by hotel\_id: description, address, coordinates, contacts, rating and subratings, amenities, policies and photos.

`ctrip_hotel_rooms`

Ctrip room types, availability and the advertised lowest price (CNY) for a stay by hotel\_id; adults and rooms 1–8, up to 8 children\_ages of 0–17. Per-rate-plan prices need a Ctrip login, so they are null. Can take up to about a minute; returns rate\_limited with retry\_after when busy.

`ctrip_hotel_reviews`

Up to 10 reviews from Ctrip's first page by hotel\_id, with rating, text, dates, room type, source and owner response. A hotel with no reviews returns no\_results.

Full parameters and response shapes live in the [MCP docs](/docs/mcp). For the same data over REST, see the [Ctrip API hub](/apis/ctrip).

## Point your agent at Ctrip.

Sign up, paste one prompt, let your agent install itself. Both paths end with your agent answering Ctrip questions in plain English.

01 · the fast path

### Get your key

50 free requests on signup. Paste one prompt into your agent, then start asking it for Ctrip data.

[Start free](/users/sign_up)[Read the MCP docs](/docs/mcp)
- 50 free requests, no credit card
- Same key as the REST API
- Any language, no code

02 · talk to us

### Talk through your use case

15 minutes. We screen-share and help you wire Claude or Cursor to your real properties. Free of charge.

[Book a call](/book-demo)
- Working setup on the call
- Your properties, your prompts
- Engineering, not sales
