MCP Server
MCP server for AI clients and tool-based integrations
The RateParity API exposes a stateless MCP server over HTTP. MCP clients can use this endpoint to list and call tools for property information, rooms, reviews, rates, shopper results, and availability.
POST https://api.rateparity.com/mcp
The MCP endpoint uses JSON-RPC 2.0 payloads following the MCP HTTP transport.
Authentication
The MCP server uses the same Bearer token authentication as the public REST API. See Authentication for the standard authentication flow.
Required headers:
Authorization
Yes
Bearer YOUR_API_KEY
Content-Type
Yes
application/json
Accept
Yes
application/json, text/event-stream
Example:
curl --location 'https://api.rateparity.com/mcp' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json, text/event-stream' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list",
"params": {}
}'MCP tools also check that the authenticated user is authorized for the requested property code.
Response Data
MCP tool responses include a short text summary and machine-readable data.
MCP clients should use:
The content array is intended for clients that display a short textual response.
List Tools
Use the tools/list JSON-RPC method to retrieve the available MCP tools.
Expected response shape:
Call a Tool
Use the tools/call JSON-RPC method. The name field is the MCP tool name, and arguments contains the tool input.
Tool Reference
get_property_info
Fetches complete external property information for a RateParity hotel code.
Input
hotelCode
string
Yes
The property code
Example request:
Expected response shape:
get_property_rooms
Fetches complete external room information for a RateParity hotel code.
Input
hotelCode
string
Yes
The property code
Example request:
Expected response shape:
get_property_reviews
Fetches review details for a RateParity hotel code.
Input
hotelCode
string
Yes
The property code
page
integer
No
Page number. Default 1
limit
integer
No
Page size. Default 10
sort
string
No
Sort field. Default dateReviewed
asc
boolean
No
Sort ascending. Default false
verbose
boolean
No
Return verbose review details. Default true
country
string
No
Reviewer country filter
reviewerLanguages
list
No
Reviewer language filters
Example request:
Expected response shape:
get_property_lowest_monthly_rates
Fetches the lowest monthly rates for a RateParity hotel code.
Input
hotelCode
string
Yes
The property code
Example request:
Expected response shape:
shop_property_rate
Shops rates for a RateParity hotel code and stay dates.
Input
hotelCode
string
Yes
The property code
checkIn
date
Yes
Check-in date in yyyy-MM-dd format
checkOut
date
Yes
Check-out date in yyyy-MM-dd format
adults
integer
No
Number of adults. Default 2
children
integer
No
Number of children. Default 0
rateId
string
No
Rate identifier
Example request:
Expected response shape:
get_property_availability_single
Fetches single-property availability rates for a RateParity hotel code.
Input
hotelCode
string
Yes
The property code
checkIn
date
Yes
Check-in date in yyyy-MM-dd format
checkOut
date
Yes
Check-out date in yyyy-MM-dd format
adults
integer
Yes
Number of adults
currency
string
Yes
Currency code, for example EUR
children
integer
No
Number of children
infants
integer
No
Number of infants
rooms
integer
No
Number of rooms
device
string
No
DESKTOP or MOBILE
lang
string
No
Language code, for example en
timezone
string
No
Timezone, for example Europe/Athens
remoteCountry
string
No
Remote country code, for example GR
Example request:
Expected response shape:
Input Format
Tool arguments must use plain JSON values. For example, hotelCode must be a string.
Correct:
Incorrect:
Error Behavior
Missing or invalid token
Requests without a valid Bearer token return:
Unauthorized property
If the authenticated user is not authorized for the requested property code, the tool call fails before fetching property data.
Invalid request body
Invalid JSON-RPC payloads, missing required headers, malformed arguments, or invalid argument types return either an HTTP transport error or an MCP error response.
Last updated