Ctrip MCP Server
Ctrip Model Context Protocol

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.

50 free requests on signup No credit card Any language, no code

Trusted by hospitality teams at

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.

01 Search
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.

02 Rooms
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.

03 Reviews
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 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 →

Full reference — every tool, error shapes, Windows notes: MCP documentation →

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. For the same data over REST, see the Ctrip API hub.

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 Read the MCP docs
  • 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
  • Working setup on the call
  • Your properties, your prompts
  • Engineering, not sales