Skip to main content
RollingGo exposes its travel capabilities — flight search, hotel booking, and itinerary management — as structured tools via the Model Context Protocol (MCP). MCP is an open standard that lets AI agents discover and call external tools over a WebSocket or HTTP connection, turning your application into a capable travel assistant without hand-rolling custom integrations. If you hold an Enterprise or Developer partner account, your API Key is all you need to start making live travel calls today.

Prerequisites

Before you begin, make sure you have:

MCP Connection Parameters

Use the following parameters when configuring your MCP client: Pass your API Key as a Bearer token in the Authorization header during the WebSocket upgrade handshake:
Use the China region endpoint (mcp.rollinggo.cn) if your server is deployed within mainland China. The geographically closer endpoint significantly reduces connection latency.

Integration Steps

1

Install the RollingGo MCP SDK

Add the official client library to your project:
2

Initialize the client with your API Key

Import the client and configure it with your API Key and target region. Store your key in an environment variable — never hard-code it in source files.
rollinggo-client.js
3

Make a travel search call

Call the travel_search tool with your desired route and travel parameters:
4

Handle the response

A successful search response returns a status field and a results array. Each result includes flight identifiers, schedule details, and pricing:
Iterate over results to present options to your user or agent, and store the flightId of the chosen option for the next step.
5

Initiate a booking

Pass the selected flightId and passenger details to the booking_create tool to start the reservation flow:
Save the returned bookingReference — your user will need it to manage or cancel the reservation later.

Next Steps

Travel Search API Reference

Explore all search parameters, filters, and response fields for the travel_search tool.

Booking API Reference

Full reference for creating, retrieving, and cancelling bookings via the MCP booking tools.