mcpField
H
hoteldata

hoteldata

Local
github.com/CloudCorpRecordsMaps & Travel0Updated 2d ago

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

  1. 01Search hotels and vacation rentals
  2. 02Filter by price, rating, type, and amenities
  3. 03Return rates, reviews, and property details
  4. 04CLI and stdio MCP server

Use cases

  1. 01Compare stays for selected dates
  2. 02Filter properties by amenities or price
  3. 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.

mcp.json · Universal config
{
"mcpServers": {
"cloudcorprecords-hoteldata": {
"command": "npx",
"args": [
"-y",
"@reneturcios/hoteldata"
]
}
}
}
Run commandnpx -y @reneturcios/hoteldata

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@reneturcios/hoteldata0.1.0
ocighcr.io/cloudcorprecords/hoteldata:0.1.0

Tools

1

Saved tool list · updated 2d ago

ParameterTypeRequiredDescription
qstringYesThe search query for Google Hotels (e.g., a city, neighborhood, or hotel name).
glstringNoThe 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`.
hlstringNoThe 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`.
adultsnumberNoNumber of adult guests (1-6).
brandsstringNoComma-separated list of brand IDs to filter by. Brand IDs are returned in the response under `brands` for the same query.
ratingenumNoFilter 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
sortByenumNoSort hotel results. Options: - `lowestPrice` — lowest price - `highestRating` — highest rating - `mostReviewed` — most reviewedlowestPrice | highestRating | mostReviewed
bedroomsnumberNoMinimum number of bedrooms (vacation rentals only).
childrennumberNoNumber of child guests (1-5). Total guests (adults + children) cannot exceed 6.
currencystringNoParameter defines the currency of the returned prices Provide one exact documented value (71 allowed), e.g. `ALL`, `DZD`.
maxPricenumberNoMaximum price per night, in the selected currency.
minPricenumberNoMinimum price per night, in the selected currency.
amenity__arrayNoList 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.
bathroomsnumberNoMinimum number of bathrooms (vacation rentals only).
hotelClassstringNoComma-separated list of hotel star classes to include (e.g., `2,3,4,5`).
checkInDatestringYesThe check-in date in 'yyyy-MM-dd' format.
checkOutDatestringYesThe check-out date in 'yyyy-MM-dd' format.
childrenAgesstringNoComma-separated list of children ages (e.g., `5,8,12`). Must match the number of children.
ecoCertifiedbooleanNoShow only eco-certified properties.
nextPageTokenstringNoToken to fetch the next page of hotel results. Returned in the `pagination` field of a previous response.
propertyTokenstringNoToken used to retrieve details for a specific property. Returned in each property in the results.
specialOffersbooleanNoShow only properties with special offers.
propertyType__arrayNoList 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.
vacationRentalsbooleanNoSearch vacation rentals instead of hotels.
freeCancellationbooleanNoShow only properties offering free cancellation.

Details

From the project README

hoteldata

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), checkInDate and checkOutDate (both in yyyy-MM-dd form). Optional: gl (country), hl (language), currency, adults, children and childrenAges (comma-separated ages matching the child count), sortBy (lowestPrice / highestRating / mostReviewed), minPrice and maxPrice per 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) and propertyToken (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 to https://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 an x-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

Markdown supported

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.