Skip to main content

China inbound travel MCP server - search hotels, flights, attractions, plan itineraries, and get travel tips for China

Project description

China Travel MCP

PyPI version License: MIT

An MCP (Model Context Protocol) server that provides AI assistants with comprehensive China inbound travel capabilities. Powered by TripGenie API with Trip.com affiliate booking links.

Features

  • 🏨 Search Hotels — Find hotels across China with real-time pricing and Trip.com booking links
  • ✈️ Search Flights — Query domestic and international flights to/from China
  • 🎫 Search Attractions — Discover top attractions, ticket prices, and opening hours
  • 📋 Plan Itinerary — Generate complete multi-day travel itineraries
  • 💡 Travel Tips — Get practical advice on visa, transportation, payment, safety, and culture

Quick Start

Installation

pip install china-travel-mcp

Run as Standalone Server

china-travel-mcp

Configure in Claude Desktop / Cursor

Add to your MCP client configuration:

{
  "mcpServers": {
    "china-travel": {
      "command": "uvx",
      "args": ["china-travel-mcp"]
    }
  }
}

Build from Source

git clone https://github.com/mako2026/china-travel-mcp.git
cd china-travel-mcp
pip install -e .

Tools

search_hotels

Search hotels in any Chinese city with pricing and booking links.

Parameters:

  • city (required) — City name, e.g. "Beijing", "Shanghai", "Xi'an"
  • check_in — Check-in date (YYYY-MM-DD)
  • check_out — Check-out date (YYYY-MM-DD)
  • guests — Number of guests (default: 2)
  • budget — Budget level, e.g. "budget", "mid-range", "luxury"
  • preferences — Preferences, e.g. "near city center", "with breakfast"

search_flights

Search flights to, from, or within China.

Parameters:

  • origin (required) — Departure city, e.g. "Tokyo", "New York"
  • destination (required) — Arrival city, e.g. "Shanghai", "Beijing"
  • date (required) — Travel date (YYYY-MM-DD)
  • trip_type — "one way" or "round trip" (default: "one way")
  • cabin — "economy", "business", or "first" (default: "economy")

search_attractions

Discover top attractions and things to do in Chinese cities.

Parameters:

  • city (required) — City name, e.g. "Beijing", "Guilin", "Hangzhou"
  • days — Number of sightseeing days (default: 1)
  • interests — Interests, e.g. "history", "nature", "food", "photography"

plan_itinerary

Generate a complete multi-day travel itinerary.

Parameters:

  • city (required) — City name
  • days (required) — Number of days
  • travelers — Number of travelers (default: 2)
  • interests — Travel interests
  • budget — Budget level

get_travel_tips

Get practical travel advice for China.

Parameters:

  • question (required) — Your travel question in natural language

Examples

Ask your AI assistant:

  • "Find me a hotel in Shanghai near the Bund for 3 nights"
  • "What flights are available from Tokyo to Beijing next Friday?"
  • "What are the must-visit attractions in Xi'an?"
  • "Plan a 5-day trip to Chengdu for a couple interested in food and pandas"
  • "Do I need a visa to visit China? What about the 144-hour transit visa?"

Supported Languages

The server defaults to English responses. The underlying API also supports: Chinese (zh), Japanese (ja), Korean (ko), Russian (ru), Spanish (es), French (fr), German (de), Arabic (ar), Thai (th), Vietnamese (vi).

Data Source

Powered by Trip.com — the world's leading online travel platform. All booking links include affiliate tracking.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

china_travel_mcp-1.0.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

china_travel_mcp-1.0.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file china_travel_mcp-1.0.1.tar.gz.

File metadata

  • Download URL: china_travel_mcp-1.0.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for china_travel_mcp-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e3792adf1e3c58449c64a1410f67ebb103f977720124f7e181eaf6478e7583c2
MD5 e4cc0f44268c24a8cb34ce702aea627c
BLAKE2b-256 a9bb6a1c502a98178703a5296b12ae58dbc86c7f6cb4453798c8dcd27832d704

See more details on using hashes here.

File details

Details for the file china_travel_mcp-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for china_travel_mcp-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c8d62027be4b0e592df82beb26b34b13205330394baab25c12720eb3cf887ca3
MD5 4f2f034cd539d2cf6872d5fe7b38f4b0
BLAKE2b-256 7d5b50f9f048907a5a4e5d90b026ac38a87919eeecfb6480fc3f80d48c0ec136

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page