Bluerails Hotels
Hotel search and booking for AI agents in Germany, Austria, Switzerland, the UK and 10 US cities. Live rooms and prices, and books in the chat: the guest pays at the hotel, or via a payment link. No API key or signup.
Hosted MCP Server
npx add-mcp 'https://402.bluerails.com/mcp'Installs into Claude Code, Codex, Cursor and more
Documentation
Bluerails Skill
Bluerails gives AI agents hotel search with live prices and booking. One call finds properties near a place and, when you pass a stay, reads real rooms, their prices for the stay in the currency you ask in, and their cancellation terms; a second tool books one of those rooms.
The MCP endpoint exposes two public tools: list_hotels, which searches and prices, and
hotel_reserve, which books one of the rooms it priced. Neither needs an auth header.
MCP Endpoint
https://402.bluerails.com/mcp (Streamable HTTP, MCP protocol 2025-06-18)
Tools
list_hotels (public — no auth)
Search hotel properties, and price them for a stay in the same call.
Search inputs:
query(string, optional): full-text search on name/description/tagscity(string, optional): any place name we cover — all of Germany, Austria and Switzerland, the towns and resorts around thirty United Kingdom cities, and the towns, boroughs and resorts inside ten United States metro areas, e.g. berlin, munich, silvaplana, windermere, brighton, brooklyn, miami beach, kissimmee. UK AND US COVERAGE IS THOSE CIRCLES ONLY, so a name outside them may resolve to a small place that happens to share it — "Phoenix" finds Phoenix, Illinois, not Arizona. For a city you are unsure of, passcoordinatesyou estimate plus aradiusand tell the guest you estimated the point. A name two countries share is NOT settled by size alone: a German, Austrian or Swiss place wins outright over an American one, so "Bellevue" stays near Geneva and "Bergen" stays in Germany however large the US namesake is; a British place wins only when it is the more populous, which is why "Cambridge" is the English one and "Kendal" is the Kendall in Miami.country: "gb"orcountry: "us"picks that country's table outright and is the only way to reach the smaller namesake on purpose —de,atandchfilter the results but do NOT change which place the name resolves to. Pass the place name ALONE, not a phrase. Accents are folded before lookup, so a German spelling can collide with a smaller place of the same folded name — prefer the English name where one exists ("Munich", not "München"). Results come back nearest first, each withdistanceKmcoordinates(object, optional):{"lat": 48.1512, "lon": 11.5757}— a point to search around, for anywhere smaller than a town: a street, a landmark, a station, a named district. ESTIMATE IT YOURSELF for the place the guest named —citytakes town names only, and a smaller name sent there is either refused or resolved to a different place of the same name. Same shape as thecoordinateson a hotel in the answer. Takes precedence overcitywhen both are sent: the point decides what is searched and which row leads,cityonly names the place. Pair it with a smallradiusradius(object, optional): how far aroundcity— or aroundcoordinates, when you sent a point — to look, as a value and its unit —{"value": 10, "unit": "mi"}. Defaults to 20 km, may not exceed 100 km. When a search comes back empty,nearestBeyondRadiusKmsays how far the nearest property lies outside it, so you can widen to that rather than guess. It can benull, andnearestSearchedToKmthen says how far that search itself looked before giving up. The distance is measured with yourquerystill applied, so anullwhile you set one does NOT mean the area is empty — read thehintbefore saying anything about the placecountry(string, optional): de | at | ch | gb | usstarRating(string, optional): 1-star | 2-star | 3-star | 4-star | 5-starstyle(string, optional): boutique. Independent ofstarRating— a property can be a 4-star boutique hotel, so pass both to ask for bothlimit(integer, optional, default 10, maximum 20): how many results in TOTAL across both groups; pass a smaller number for fewer, and a larger value is rejected rather than reduced.unpricedcarries at most 5 whatever you pass, so a largerlimitbuys more PRICED hotels and never a longer list of names we hold no price forlanguage(string, optional): the language the guest is WRITING in, unless they asked for another. A bare code or a full BCP 47 tag both work ("de", "de-AT", "en-GB"). German and English are rendered, anything else falls back to English rather than failing the search. It changes ONLY the labels WE write on the results card — never a room name or a rate plan, which stay in the property's own words. A cancellation term carries the property's own figures inside an English sentence, whatever language the card is in
Stay inputs — REQUIRED. Ask the guest for these before you search: a call missing any of them runs no search at all and comes back with a hint naming what is still to be asked. "Hotels in Berlin for a couple" is not yet a search:
checkIn(string, required): arrival date (YYYY-MM-DD). Never choose it yourself — "next month" is a question, not a datecheckOut(string, required): departure date (YYYY-MM-DD)adults(integer, required): adults in the party (1–20). Properties price by party sizechildrenAges((integer|null)[], optional): ONE ENTRY PER CHILD — their age, ornullwhen you have not asked it yet. Send[null]the moment a child is mentioned: the search is then REFUSED until you replace it with the real age. NOT a count — properties price each child by age, and none may be invented. ASK whether anyone under 18 is travelling, in the same message asadults. A child left out is priced as though they are not coming, so the guest can book a room that will not sleep them. Optional only because most parties have none: leave it out when there are none, or send an empty list, which says the same thing. An age of 0 is a real age — an infant is a child, not nobodycurrency(string, required): ISO 4217 code —EUR,CHF,GBP. It names the currency ofmaxPricePerNightAND the one every price in the answer comes back in. use the currency the guest already named ("200 euros" is EUR, "CHF 165" is CHF) and ask them only when they gave a bare number you cannot place. The answer names it back to you in its owncurrencyfield — read that rather than assuming one. A currency we cannot get a rate for is refused rather than assumed to be euromaxPricePerNight(integer, required): budget incurrency, taken from a figure the GUEST gave — never inferred from "a budget hotel", "cheap" or a star rating. Ask them roughly what they want to spend a night; if they say they have no limit, ask for the most they would still pay and send that. It FILTERS:pricedholds only the hotels and rooms at or under it; dearer hotels come back only when not one fits, inaboveBudget- A hotel the guest names is the exception to both
currencyandmaxPricePerNightbeing required: send its name asquerywithcheckIn,checkOutandadultsand leave the two out. A name matching at most three properties is priced for the stay with no budget applied; a broader name is refused with nothing priced.
One search returns one set of rows — at most limit of them, with no second page to ask for, so
calling again with the same filters returns the same hotels. No response carries a count of the
whole match either, so do not tell a guest how many hotels a place has — say what you can show
them, and narrow the search to see different ones.
The answer is also rendered as a results card — an MCP Apps UI resource served from the same endpoint — so a host that supports it shows the rooms and prices without you restating them.
The two groups
A dated call answers in two groups, and limit is the total across both, priced first.
priced — the hotels whose live rates we read, at most limit of them. They come back in a
deliberate order — show them in the order you are given, and lead with the top row. That order is
neither distance nor price, so do not call a row the nearest or the cheapest. Each carries rooms: one entry per room AND rate plan, each with its own price for the WHOLE stay, its cancelTerms
where we hold any and null where we do not, whether breakfast is included, its photos where we hold them, and an offerId
to book it with through hotel_reserve — read the next section.
Show them all, not just the cheapest — with maxPricePerNight you are
handed only the rooms at or under the budget, so do not say a property has only that many room
types. The hotel also carries
stayTotal and pricePerNight for its cheapest offer — the second is the total divided by
nights, a stay AVERAGE, so say it that way rather than as a nightly rate. Every price is in the
currency you sent, named back to you as currency on the answer.
aboveBudget — only with a maxPricePerNight, and only when NOT ONE hotel fits it. Same shape as
priced, with real prices, so this is the answer to "then what does the nearest thing cost". While
any hotel fits, dearer ones are not returned at all: priced is what fits, it can be shorter than
your limit, and it is NOT every hotel in the area. Read the hint, which says how many were
left out.
unpriced — everything else. On a dated call that means the property publishes no rates we can read, or it does and did not
answer us, or the hotel was past the read ceiling. Those are the same thing to you: each
row carries websiteUrl, the property's own site, and no booking link of any kind. Hand that site
over as their website, never as a way to book. An EMPTY websiteUrl means we hold no site either,
so that row has nothing to open at all.
A property that TOLD US it is full for these dates is in neither group — it is
left out of the answer entirely, because its link would open on a property with no rooms.
The hint says how many. Nothing else in the answer means full.
A dateless call returns every match in unpriced and no priced at all, because nothing was
priced.
Booking a room, and what websiteUrl is for
offerId is how a room in priced or aboveBudget is booked: pass it to hotel_reserve. No
row carries a booking link to the hotel's own booking page, so never promise the guest one.
websiteUrl is the property's own site, and it is the only link an unpriced row carries. Offer
it as a website and never as a way to book or check rates: we do not know that site sells rooms
online. Do not go looking for a booking page of your own to offer in its place. Where it is EMPTY we
hold no site either: say we have nowhere to send them rather than inventing somewhere.
hotel_reserve (public — no auth)
Book a room list_hotels priced, without the guest leaving the conversation.
Inputs: the room's offerId, passed back exactly as it was given, plus the guest's full name,
email, phone and address. The handle names the hotel, the room, the rate, the stay and the price,
which is why none of those are separate arguments. Ask the guest for their own phone number and
billing address — the property puts them on the reservation and uses them to reach the guest — and
never invent them. Set acceptedTerms once the guest has agreed to book that rate.
Two answers, and the reply says which. A confirmationNumber means the room is BOOKED: give the
guest the number and tell them they pay the property at the desk, because nothing has been charged.
A paymentUrl means the room is NOT held yet: give the guest that link to pay, their card is held
rather than charged, and the booking is placed once they have paid. An agent paying with a Stripe agent
wallet may pay the link itself: POST to it, and if it answers HTTP 402 with a Machine Payments
Protocol challenge (method "stripe"), pay the challenge with a Shared Payment Token.
A handle expires after 30 minutes. Call list_hotels again with that same offerId to re-price
the one room rather than searching the whole property afresh. Where a rate's cancelTerms is null
we hold no cancellation terms for it: say so, say the property's own terms apply and arrive with its
confirmation, and book once the guest agrees on that basis — a blank is not a reason to refuse.
If a call comes back ambiguous, do NOT call again: a reservation may already exist.
Recommended Flow
-
Call
list_hotelswith the guest's place name AND their dates and party, plus country, star rating or radius if they gave one. One call is the whole search — there is no second tool to fan out to. -
Present
pricedfirst: every room with its price for the stay, in thecurrencyyou sent, whether breakfast is included, and its cancellation terms wherecancelTermscarries any. A nullcancelTermsmeans we hold none for that rate — say so plainly and that the hotel's own terms apply; it is not a reason to withhold the room or to refuse a booking. These rooms carry no link: book the one the guest picks withhotel_reserve, at step 7. -
Present
unpricedas properties whose price you could not read, offering the property's own website where there is one. Say the price is unknown; never that they are full. NEVER RECOMMEND ONE — when the guest asks what to book, or you put a hotel forward yourself, it comes frompriced. We hold no rate for an unpriced property, so naming it answers the guest's budget with a figure nobody has. -
For a row with
datesApplied: false, tell the guest the link opens the booking page but they will have to enter the dates there themselves. -
If
pricedcomes back empty, checkaboveBudgetfirst. Hotels there were priced fine and cost more than the budget — quote what they cost. Then read thehint: it is the only place that says properties were left out because they are full. With no suchhint, an empty answer means the rates could not be read — hand over the links, and do not call that "sold out". -
If the whole answer is empty, read
nearestBeyondRadiusKmand offer to widen the search to that distance. Anullthere means we found nothing to widen to, which is three different things: you were already searching at the 100 km ceiling, or nothing matching your filters exists out to it, or — if you set aquery— nothing matching those WORDS does, which says nothing about the place itself. So drop thequeryand search again before you tell a guest an area has nothing, and read thehint. IfplaceNotRecognisedcame back instead, the NAME was not understood — try the English name. Do NOT substitute a larger town: if what the guest named is a street, a landmark, a station or a district, sendcoordinatesyou estimate for it instead. -
To book, call
hotel_reservewith that room'sofferId, passed back exactly as it was given — it names the hotel, the room, the rate, the stay and the price, so none of those are separate arguments. It needs the guest's full name, email, phone and address: ask for those once they have chosen a room, not before. It answers one of two ways. AconfirmationNumbermeans the room is booked and the guest pays the hotel at the desk. ApaymentUrlmeans the room is not held yet and that link is where the guest pays to get it booked. An agent paying with a Stripe agent wallet may pay that link itself: POST to it, and if it answers HTTP 402 with a Machine Payments Protocol challenge (method "stripe"), pay the challenge with a Shared Payment Token. A handle expires after 30 minutes; calllist_hotelsagain with that sameofferIdto re-price the one room rather than searching the property afresh.
Booking is part of this tool surface. A priced room carries an offerId and NO booking link,
because we can book it for the guest ourselves — call hotel_reserve rather than sending them to a
website. A property in unpriced carries no booking link at all: those are exactly the ones
hotel_reserve cannot take, and their own websiteUrl is how the guest reaches them.
Never offer to book or pay for a room unless the tools/list you actually received contains a tool
that does it — trust that list over this document, which is served identically to every environment.
Where it carries no booking tool, every priced room carries its link instead, and that is the way.
Critical Guardrails
- NEVER fabricate a hotel, a room, a price or availability — every one of those must come from a tool response
- An EMPTY
pricedAND an emptyaboveBudgetmeans the rates could not be read. That is UNKNOWN, never sold out — say "I could not read this hotel's availability", not "it is full". Thehintis the ONLY thing that can tell you a property has no space, and it speaks about properties that are no longer in the answer, never about a row you can see. An emptypricedwith hotels inaboveBudgetis a different fact: we read those rates and they cost more than the budget - Answer the dates the guest asked for. If those dates are unavailable or unreadable, say so; do not substitute different dates and present them as the answer
- A hotel whose rates we could not read carries only its
websiteUrl: say we could not read its rates and offer the site as the property's website - NEVER offer a
websiteUrlas a way to book or to check rates. It is the property's own site, and we do not know it sells rooms online - We price at most
limithotels, so when none of them fits a budget say "of the ones I could price, none are under X" — quoting what they cost fromaboveBudget— never "nothing is available", and never that the area has nothing under X pricePerNightis the stay total divided by nights, a stay average — do not quote it as the rate charged on every night- If
list_hotelsreturnsplaceNotRecognised, the NAME was not understood — that does not mean the place has no hotels. Correct an obvious misspelling and search again; otherwise ask the guest which town or village they mean, and do not substitute a region or a nearby town of your own — a similar name can resolve to an unrelated village far from where they mean
Discovery
Full OpenAPI spec: GET /openapi.json
MCP server manifest: GET /.well-known/mcp.json
Install
The MCP endpoint is https://402.bluerails.com/mcp (streamable HTTP). It needs no API key and no sign-in.
-
Claude (claude.ai and Claude Desktop): add it as a custom connector. This link opens Claude's Add custom connector dialog with the name and address already filled in.
-
ChatGPT: open our page in ChatGPT's plugin directory and press Install plugin.
-
Cursor: install in one click.
-
VS Code: install in one click.
-
Claude Code: run
claude mcp add --transport http Bluerails https://402.bluerails.com/mcp -
GitHub Copilot CLI: run
copilot mcp add --transport http Bluerails https://402.bluerails.com/mcp -
OpenClaw: run
openclaw mcp add Bluerails --url https://402.bluerails.com/mcp --transport streamable-http -
Any other client that reads an
mcpServersconfig:{ "mcpServers": { "Bluerails": { "type": "http", "url": "https://402.bluerails.com/mcp" } } }