About hoteldata
hoteldata is a local bridge for searching Google Hotels, intended for travel-planning tools and agents. It returns property, rate, and amenity data with extensive filters, while forwarding HasData results without storing them.
Key features
- 01Search hotels and vacation rentals
- 02Filter by price, rating, type, and amenities
- 03Return rates, reviews, and property details
- 04CLI and stdio MCP server
Use cases
- 01Compare stays for selected dates
- 02Filter properties by amenities or price
- 03Search vacation rentals by bedroom count
MCP support
Exposes a read-only hotel-search tool to MCP clients and forwards calls to the hosted HasData Google Hotels MCP server. It does not provide booking or payment tools.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
1Saved tool list · updated 2d ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| q | string | Yes | The search query for Google Hotels (e.g., a city, neighborhood, or hotel name). |
| gl | string | No | The two-letter country code for the country you want to limit the search to. Provide one exact documented value (245 allowed), e.g. `ac`, `af`. |
| hl | string | No | The two-letter language code for the language you want to use for the search. Provide one exact documented value (159 allowed), e.g. `af`, `ak`. |
| adults | number | No | Number of adult guests (1-6). |
| brands | string | No | Comma-separated list of brand IDs to filter by. Brand IDs are returned in the response under `brands` for the same query. |
| rating | enum | No | Filter by minimum overall guest rating. Options: - `threePointFivePlus` — 3.5 stars or higher - `fourPlus` — 4.0 stars or higher - `fourPointFivePlus` — 4.5 stars or higherthreePointFivePlus | fourPlus | fourPointFivePlus |
| sortBy | enum | No | Sort hotel results. Options: - `lowestPrice` — lowest price - `highestRating` — highest rating - `mostReviewed` — most reviewedlowestPrice | highestRating | mostReviewed |
| bedrooms | number | No | Minimum number of bedrooms (vacation rentals only). |
| children | number | No | Number of child guests (1-5). Total guests (adults + children) cannot exceed 6. |
| currency | string | No | Parameter defines the currency of the returned prices Provide one exact documented value (71 allowed), e.g. `ALL`, `DZD`. |
| maxPrice | number | No | Maximum price per night, in the selected currency. |
| minPrice | number | No | Minimum price per night, in the selected currency. |
| amenity__ | array | No | List of amenities to filter by (e.g., `hotelFreeWifi,hotelPool`). Values prefixed `hotel*` apply when searching hotels (the default mode). Values prefixed `rental*` apply when `vacationRentals=true`. The two sets are disjoint because Google Hotels exposes different amenity catalogs for each mode — pass values matching the mode you're querying. |
| bathrooms | number | No | Minimum number of bathrooms (vacation rentals only). |
| hotelClass | string | No | Comma-separated list of hotel star classes to include (e.g., `2,3,4,5`). |
| checkInDate | string | Yes | The check-in date in 'yyyy-MM-dd' format. |
| checkOutDate | string | Yes | The check-out date in 'yyyy-MM-dd' format. |
| childrenAges | string | No | Comma-separated list of children ages (e.g., `5,8,12`). Must match the number of children. |
| ecoCertified | boolean | No | Show only eco-certified properties. |
| nextPageToken | string | No | Token to fetch the next page of hotel results. Returned in the `pagination` field of a previous response. |
| propertyToken | string | No | Token used to retrieve details for a specific property. Returned in each property in the results. |
| specialOffers | boolean | No | Show only properties with special offers. |
| propertyType__ | array | No | List of property types to filter by (e.g., `hotelResort,hotelMotel`). Values prefixed `hotel*` apply when searching hotels (the default mode). Values prefixed `rental*` apply when `vacationRentals=true`. The two sets are disjoint because Google Hotels exposes different property-type catalogs for each mode — pass values matching the mode you're querying. |
| vacationRentals | boolean | No | Search vacation rentals instead of hotels. |
| freeCancellation | boolean | No | Show only properties offering free cancellation. |
Details
From the project READMEhoteldata
hoteldata is a small local bridge to the hosted HasData Google Hotels MCP server, which returns Google Hotels search results as JSON. Give it a place or a property name together with check-in and check-out dates, and it fetches the matching hotels and vacation rentals: each property's name, link, location, nightly and total rates, hotel class, guest rating and review counts, images, amenities and nearby places, as returned upstream. Searches can be shaped by the guest mix (adults, plus children with their ages), by localisation (country, language and currency), and by a wide filter set covering price range, sort order, property types, amenities, minimum rating, brands, hotel class, free cancellation, special offers, eco-certification, vacation-rental mode with bedroom and bathroom minimums, and paging tokens.
The bridge stores no results of its own. It serves the upstream server's tool list locally, exactly as captured from the live endpoint, and forwards each tool call upstream, returning the result untouched. The captured surface is a single read-only search: there is no booking, reservation or payment tool in it.
Tools
hasdata_google_travel_hotels_getGoogleHotels— search Google Hotels for one stay. Required:q(the search query: a city, neighbourhood or hotel name),checkInDateandcheckOutDate(both inyyyy-MM-ddform). Optional:gl(country),hl(language),currency,adults,childrenandchildrenAges(comma-separated ages matching the child count),sortBy(lowestPrice/highestRating/mostReviewed),minPriceandmaxPriceper night,propertyType__(hotel and rental property types),amenity__(hotel and rental amenities),rating(minimum guest rating),brands,hotelClass,freeCancellation,specialOffers,ecoCertified,vacationRentals,bedrooms,bathrooms,nextPageToken(paging) andpropertyToken(one property's detail). Returns per-property rates, price comparisons, ratings, reviews, amenities, deals and pagination tokens.
Configuration
HASDATA_GOOGLE_HOTELS_MCP_URL(optional) — override the upstream endpoint. Defaults tohttps://mcp.hasdata.com/mcp?apis=google_travel_hotels. (The override hook is this rebuild's own labelled reconstruction.)HASDATA_API_KEY(optional) — when set, every upstream request carries anx-api-key: <key>header, for the caller's own HasData API key. When it is not set, no key header is sent. (The header name and the env name are pinned by the original's registry record; forwarding the key from this env var is a labelled reconstruction — the original surface was captured keyless.)
Forwarding mechanics
On the first tool call the client opens a streamable
HTTP session with the upstream: a JSON-RPC
initialize request (protocolVersion 2025-03-26,
clientInfo name hoteldata), then a
notifications/initialized notification, then the
tools/call request carrying the caller's arguments
unchanged. When the upstream answers initialize
with an Mcp-Session-Id header, that value rides on
every later request of the session, which is reused
for the life of the process. Replies may arrive as
plain JSON or as server-sent events; both are read.
Successful upstream results pass through verbatim,
including any isError flag the upstream sets.
Failures — a JSON-RPC error, a non-2xx status, an
unreadable response, or a request that cannot be
completed — come back as an isError result whose
text starts with hoteldata error: (this rendering
is this rebuild's own labelled reconstruction).
CLI
The tool is also a subcommand taking one JSON argument string:
npx @reneturcios/hoteldata hasdata_google_travel_hotels_getGoogleHotels '{"q":"San Francisco","checkInDate":"2026-11-10","checkOutDate":"2026-11-12","adults":2,"sortBy":"lowestPrice"}'
npx @reneturcios/hoteldata --version
Exit codes: 0 on success, 1 on an isError
result, 2 on a usage error.
MCP server
npx -y @reneturcios/hoteldata mcp
MCP client config:
{
"mcpServers": {
"hoteldata": {
"command": "npx",
"args": ["-y", "@reneturcios/hoteldata", "mcp"]
}
}
}
Docker
docker run -i ghcr.io/cloudcorprecords/hoteldata
docker run --rm ghcr.io/cloudcorprecords/hoteldata --version
The container's default command is mcp, so the first
form is a stdio MCP server; any other arguments reach
the CLI normally.
Development
npm install
npm run build
npm test
npm run dev
The test suite runs entirely against a stubbed JSON-RPC upstream — no live network calls.
License
MIT — see LICENSE.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.