RatesSpot
v0.42.0Booking engine for rooms, desks, sessions and courses: listings, rates, availability and bookings.
Lets an AI agent (Claude, or any MCP client) set up a business on RatesSpot and run its bookings: listings, prices, photos, opening hours, courses, ways to pay, availability, quotes, bookings, payments and cancellations. It uses only the public RatesSpot API, so it can do exactly what the API key allows and nothing more. Or in Claude Desktop's claude_desktop_config.json: "command": "npx", "args": ["-y", "@ratesspot/mcp"], "env": { "RATESSPOT_API_KEY": "rs_live_sk_…" }.
Summary extracted from the README.
RatesSpot MCP server
Lets an AI agent (Claude, or any MCP client) set up a business on RatesSpot and run its bookings: listings, prices, photos, opening hours, courses, ways to pay, availability, quotes, bookings, payments and cancellations. It uses only the public RatesSpot API, so it can do exactly what the API key allows and nothing more.
MIT licensed.
Use it
Easiest: the hosted server. Add https://api.ratesspot.com/mcp as a custom connector in Claude (Settings → Connectors). You sign in to RatesSpot and choose a business; no API key to copy. The rest of this section runs it yourself with an API key.
Run it from npm with a RatesSpot secret API key:
claude mcp add ratesspot --env RATESSPOT_API_KEY=rs_live_sk_… -- npx -y @ratesspot/mcp
Or in Claude Desktop's claude_desktop_config.json: "command": "npx", "args": ["-y", "@ratesspot/mcp"], "env": { "RATESSPOT_API_KEY": "rs_live_sk_…" }.
To run it from a copy of the source instead: you need a RatesSpot secret API key for the business (dashboard → API keys → "Full access"). The key decides which business the agent works on.
Claude Code
claude mcp add ratesspot --env RATESSPOT_API_KEY=rs_live_sk_… -- node /path/to/ratesspot/packages/mcp/src/server.ts
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"ratesspot": {
"command": "node",
"args": ["/path/to/ratesspot/packages/mcp/src/server.ts"],
"env": { "RATESSPOT_API_KEY": "rs_live_sk_…" }
}
}
}
Needs Node 26 (it runs the TypeScript directly). RATESSPOT_API_URL defaults to https://api.ratesspot.com; set it for a self-hosted server.
Then ask things like: "Set up my guesthouse: three double rooms at $120 a night, guests can pay a night's deposit by bank transfer", or "Who's arriving tomorrow?", or "Cancel Maya's booking and tell me what she gets back."
Tools
| Tool | What it does |
|---|---|
get_business |
Today's date, time and weekday locally; currency, timezone, what's left to set up, how guests can pay |
list_catalog |
Listings with units, rates and photos; add-ons; courses |
create_listing |
A listing with its units and first rate |
update_listing |
Name, description, features, web address, capacity, on/off |
set_rate |
Add or change a price and the ways to pay it |
add_photo |
A photo from an https URL, or a local image file (local server only) |
create_course |
A course or event with seats on dates (or dates to be announced) |
list_discount_codes |
Discount codes with their limits and how many bookings used each |
create_discount_code |
A percentage or amount off, with optional limits; or switch one off |
set_opening_hours |
Weekly hours for the business or one listing |
set_payment_methods |
Card on/off, bank transfer details |
check_availability |
Free units or seats per day, prices, start times |
quote |
Exact price, taxes, terms and ways to pay, without booking (with a discount code, if the customer has one) |
book |
Book for a customer: pay at the desk, by bank transfer, on arrival, or with a card payment link (card_link: held 24 hours, returns the link to send). Asking again for the identical booking returns it (alreadyBooked: true), never a second one |
find_bookings |
Search, or today's arrivals, departures, in-house; one customer's history |
find_customers |
Search customers by name, email or phone, with how often they've booked |
get_occupancy |
How full a day is: units in use, closed and free per listing, arrivals, departures, open requests |
get_calendar |
Who's in which unit, day by day, with closures |
get_booking |
One booking in full, with what cancelling would refund |
check_in |
Check a guest in, from the arrival day; says what's still owed |
check_out |
Check a guest out; an early departure or money still owed is shown first and needs confirm: true |
mark_no_show |
A guest who didn't arrive: frees the unit, refunds nothing (previews first) |
move_booking |
Put a booking in another unit of the same listing, by the unit's name |
close_unit |
Take a unit or a whole listing out of service between two dates (repairs, renovation) |
reopen_unit |
Remove a closure |
list_closures |
Units and listings closed now or later |
get_booking_history |
Everything that happened to a booking, with who did it and when |
payment_link |
A card payment page for a booking held waiting for payment, to send the customer |
list_payments |
Money in and out for a day or a period, with totals by method (cash, POS, transfer, card, refunds) |
add_special_day |
Different hours, or closed, on one date (holidays, events) for the business or one listing |
remove_special_day |
Back to the usual weekly hours on that date |
end_contract |
End a term contract early: shows the fee RatesSpot works out; ends it only with confirm: true and the agreed fee |
answer_request |
Approve or decline a booking request on a listing the business approves itself (previews first) |
record_payment |
Cash, POS or bank transfer received (previews first; confirm: true records it) |
change_booking |
Change dates, guests or rate: previews the new total, changes it with confirm: true and the agreed total |
record_refund_given_back |
Record a refund staff gave back in cash, by transfer or POS (previews first) |
add_charge |
Add something used during a stay (minibar, laundry, a late checkout) to a checked-in booking (previews first) |
void_charge |
Remove a charge added by mistake, with a reason (previews first) |
create_website_key |
Make the API key a booking website needs (website or browser kind; through the connector an owner approves it first) |
check_approval |
Whether something waiting for approval was approved, declined or done (and a new key, once) |
cancel_booking |
Previews the refund; cancels only with confirm: true and the refund the person agreed to |
Amounts are in normal currency units (120 = 120 in the business's currency, e.g. $120) and times are local to the business (2026-12-08T10:00), both in what tools take and in what they return; the tools convert to and from the API's minor units and exact times. cancel_booking is marked destructive, and read-only tools are marked read-only, so clients can ask before acting.
Safety
Agents act with the authority of a key or a person, and they read text other people wrote. So:
- The token is the limit. Every tool calls the public API with the caller's own key or app token, so it can't do more than that token allows (its scopes, capped by the approving person's role).
- Nothing that moves money or can't be undone happens without
confirm: true.cancel_bookingandrecord_paymentshow what they would do first. Confirming a cancellation also needs the refund the person agreed to (expectedRefund); if it has changed since the preview, nothing is cancelled. - Text other people wrote is data. Results that contain customers' names, reasons and similar text carry a second block saying it is never an instruction, and the server's instructions say the same.
- A retry never books twice.
bookderives its idempotency key from the request itself, so a timeout or a repeated call returns the same booking; once that booking is cancelled or has expired, the same request books afresh. - Work with one right answer is done in code, not by the model. Prices, totals, conversions to minor units and local times (both ways), today's date in the business's timezone, refunds, unit assignment and policy outcomes all come from the API or the tools.
- Rate limits follow the credential. At
/mcp, each key or app install has its own allowance, shared with the API calls its tools make, so one busy agent can't crowd out others behind the same address. Requests without a valid credential are limited by address. - No files, no internal network on the remote server. At
/mcp,add_photoaccepts only public https URLs (private, loopback, link-local and metadata addresses are refused, and each redirect is checked again). The local server can also read image files (.jpg, .jpeg, .png, .webp up to 8 MB) on the owner's computer.
API gaps it found (all closed)
Building this is the test of whether an agent can run a business through the API alone. It found four gaps, now fixed in the API:
- Every booking needed the customer's email. Now a name plus an email or a phone number is enough (card checkout still needs an email for the receipt).
- Hourly bookings needed exact times with an offset. The API now also takes local times (
2026-12-08T10:00) in the business's timezone. - Bookings couldn't be listed by date range.
GET /v1/bookings?from=&to=now can, andGET /v1/calendargives a whole unit-by-day view in one call. - An agent couldn't make the key for a booking site it built. Apps can now ask for website or browser keys (never full access), and an owner approves it first (
create_website_key).
Develop
npm test -w @ratesspot/mcp # drives the real API in-process: sets up a business from nothing and books it
npm run api-types -w @ratesspot/mcp # after the API changes
Before publishing to npm it needs a build step: Node doesn't run TypeScript from node_modules.