
HasData Google Hotels
com.hasdata由 hasdata.com 发布官方发布者v1.0.2更新于 Oct 24, 2026
All HasData scraping tools in one MCP server: Google, TikTok, Instagram, maps, e-commerce and more.
发布方自己的服务:HasData Airbnb
概览
HasData 托管服务器,提供一个 Google Hotels 工具,让助手搜索酒店和度假短租,并查看某房源在各预订网站的价格。
- 可以做什么
- 按目的地和入住日期搜索酒店或度假短租,可按价格、评分、星级、设施、品牌、免费取消和排序筛选
- 用 propertyToken 打开单个房源,获取 Google 比价的各预订网站价格、典型价格区间、优惠判断、地址、电话和详细设施
- 以资源形式读取国家、语言、货币、排序、房型、设施和评分筛选的固定取值列表,不消耗额度
- 适用场景
- 适合需要针对具体日期比较住宿选项、查看某房源在多个预订网站的价格,或按卧室数和设施筛选短租的场景。它只读,实际预订仍由用户完成。
- 运行要求
- 需要 HasData 仪表盘创建的 API 密钥:远程端点通过 x-api-key 请求头传入,npm 或 PyPI 的 stdio 启动器通过 HASDATA_API_KEY 环境变量传入。npm 启动器需要 Node.js,Python 启动器需要 uvx,并需能访问托管端点。
安装
在 SourceWeft 中
- 打开 控制台中的 HasData Google Hotels,将其添加到工作区。
- 连接 x-api-key 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/com.hasdata%2Fgoogle-hotels/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"hasdata-google-hotels": {
"type": "http",
"url": "https://mcp.hasdata.com/mcp?apis=google_travel_hotels",
"headers": {
"x-api-key": "<YOUR_API_KEY>"
}
}
}
}README
Google Hotels MCP Server
A hosted Google Hotels MCP server that gives Claude, Cursor, Windsurf and any other MCP client one Google Hotels tool. Search hotels and vacation rentals for a destination and a pair of dates, then open any property in full with the rate every booking site is charging, ratings, a review breakdown by topic, amenities, photos and coordinates, all as structured JSON, with no Google account and no Places API quota.
1,000 free credits every month, no card required, which is about 100 hotel searches.
[Glama score] [tool contract] [MCP] [Tools]
Contents
- What you need
- Quick start
- Example prompts
- Tools
- Errors and failure paths
- Pricing, free tier and limits
- Tool selection
- How it compares
- FAQ
- HasData links
- Development
- Contributing
- License
What you need
An MCP client and a HasData API key from the dashboard, free to create with no card, and the free tier covers about 100 calls a month at the 10-credit rate. This is a remote server, so the simplest path is a URL and an x-api-key header, with no container to run and no Google Cloud project anywhere in the flow. A client that only speaks stdio reaches it through a thin launcher, published as @hasdata/google-hotels-mcp on npm and hasdata-google-hotels-mcp on PyPI, shown below.
Quick start
The server URL is the same for every client. We run it hands-on in Claude Code and Claude Desktop. The other blocks follow each client's own documented format for a remote server.
Clients with OAuth support can add the same URL as a connector and sign in without putting a key in a config file.
Claude Code
Claude Desktop
Settings, then Connectors, then Add custom connector, then paste https://mcp.hasdata.com/mcp?apis=google_travel_hotels and sign in.
For the config-file route, Claude Desktop loads only local (stdio) servers, so it reaches a remote server through a stdio launcher. The @hasdata/google-hotels-mcp package is that launcher, and it reads the key from the environment. Add this to claude_desktop_config.json:
For Python instead of Node, swap the launcher for the PyPI package, which uvx runs without a manual install:
Cursor
~/.cursor/mcp.json for every project, or .cursor/mcp.json for one:
Windsurf
~/.codeium/windsurf/mcp_config.json. Windsurf calls the field serverUrl, not url:
VS Code
.vscode/mcp.json in the workspace:
Example prompts
Prompts, not code. Paste one in and the agent picks the tool itself. Each is annotated with the calls it takes, because every successful call costs 10 credits.
Find hotels in Barcelona for the nights of 12 to 15 November, two adults, and list the five cheapest with nightly rate, rating and class.
One call, 10 credits. Rates, ratings and amenities all come back together.
Same stay, four stars and up, free cancellation only, sorted by rating.
One call, 10 credits. Class, cancellation and sort order are filters on the one request.
Take the top result and show what each booking site charges for it, and whether that is a good price.
Two calls, 20 credits. The search hands back a propertyToken per property, and passing it in opens that property with every source Google compares, a typical price range and Google's own verdict on the deal.
Vacation rentals in Lisbon that week with at least two bedrooms and a pool.
One call, 10 credits, with vacationRentals on, bedrooms at 2 and the pool in amenity__.
Name the destination the way you would say it out loud. A bare Barcelona is read against wherever Google believes the search is running from, so a server in California answers with Californian hotels. Either write hotels in Barcelona or set gl to es, and the city is pinned.
Tools
One tool, read-only, covering both halves of the site. Without a propertyToken it searches. With one it opens a single property.
The samples below are trimmed from real calls, and hotel rates move daily. Read them as a shape.
A sample is the payload, not the whole response. A tools/call result carries one text block, and that text is itself JSON holding url, status, text and json, with the scraped data under json. From a raw JSON-RPC response the path is result.content[0].text, parsed, then .json. A chat client unwraps that for you and code talking to the endpoint directly does not.
Search hotels and vacation rentals
hasdata_google_travel_hotels_getGoogleHotels
Properties for a destination and a stay, with rates, ratings, amenities and images.
Results arrive under properties, roughly twenty per page. Each property carries name, type, description, link, gpsCoordinates, ratePerNight and totalRate (each with the raw string and an extracted* number), hotelClass with extractedHotelClass, overallRating, reviews, locationRating, a ratings histogram, reviewsBreakdown with positive and negative mentions per topic, amenities, images and nearbyPlaces with walking and transit times. searchInformation.totalResults reports how many Google has, pagination carries nextPageToken, and brands lists the brand tree with the ids the brands filter takes.
Rates are quoted two ways.
lowestincludes taxes and fees,beforeTaxesFeesdoes not, and a property may carry only one of them. Compare like with like before ranking.
One property in full
Pass propertyToken from any search result back into the same tool, keeping the dates, and the answer is that property alone. On top of the search fields it adds prices, the rate at every source Google compares, featuredPrices for the sponsored ones, typicalPriceRange for the stay, deal and dealDescription when Google marks the price as a good one, address, phone, directions, amenitiesDetailed grouped by category, excludedAmenities and otherReviews from Tripadvisor and the rest.
Prompts and resources
The server exposes 7 resources, one per parameter whose accepted values are a fixed list. Reading one is cheaper than learning the vocabulary from a rejected call, and it costs no credits. Each URI is hasdata://google_travel/<parameter>.
The list is served without an API key, so a client can read it before a user has signed up.
Errors and failure paths
Your client almost never sees an HTTP error code from a tool call. The MCP layer answers 200 and puts the failure inside the result, with isError set to true and the reason as text. The agent reads a message where you might expect a status line.
A wrong key surfaces as tool output, not as a failed connection. tools/list accepts any non-empty key and returns the tool, so the client completes its handshake and shows green. The first tool call then comes back with isError: true and the text HasData API error: 401 Unauthorized. Watch for that string, because nothing earlier in the flow reports the problem.
A missing key is the one real HTTP error. Authorization runs before any tool, and the connection itself fails with 401. CORS headers are present, and a browser client reads the status and not an opaque network failure.
A missing date is rejected before it becomes a search. Drop checkOutDate and the call fails validation with 422, naming the field.
The dangerous failure is silent and geographic. A destination Google cannot place, and a bare city name read from the wrong country, both return 200 with a full page of properties somewhere else entirely. We searched Qwertyville and got eighteen real hotels near the datacentre the request left from. Check gpsCoordinates on the first result, or pass gl, before trusting a list.
Dates that make no sense are quietly repaired rather than refused. A check-out before the check-in, or a stay in 2020, still answers 200 with properties, because Google normalises the range instead of erroring. Validate the dates on your side if they come from a model.
Results that carry data also carry a requestMetadata.id worth quoting in support.
Pricing, free tier and limits
Every Google Hotels call costs 10 credits per successful call. Response size does not change the price, and opening one property costs the same as a search.
The free tier is 1,000 credits every month with no card, which is about 100 searches. It renews with the billing cycle, so a low-volume agent runs on the free tier indefinitely.
Paid plans start at $59 a month for 200,000 credits, which is 20,000 searches, or $2.95 per 1,000 searches. The unit price falls with volume to $0.83 per 1,000 on the largest plan, and annual billing takes ten months of the monthly rate for twelve. Current figures live on the pricing page.
Your plan also sets concurrency: 1 request at a time on the free tier, 5 on Startup, 15 on Basic, and 50 to 500 across the Growth tiers. Handle the overflow case defensively in anything unattended.
A request that comes back non-200 is not billed. Opening a property after a search is a second call, so budget for it.
Tool selection
The apis query parameter decides which tools your agent sees. Fewer tools means less context spent on tool definitions, and fewer chances for the model to reach for the wrong one.
The parameter takes provider names like google_travel and individual API names like google_travel_hotels. Misspelled names are ignored. If every name is wrong the request fails with 400, and the body lists both what it did not recognise and every valid value. Drop the parameter and the same endpoint exposes every HasData tool.
How it compares
Google has never opened a public Hotels API. Hotel Center is for property owners feeding rates in, and the Places API returns a business record with photos and reviews but no rate for a date range. The alternatives are affiliate APIs from individual booking sites, each covering its own inventory and each gated behind approval.
What this server does not do. No booking and no payment. It reads rates, availability for the dates you ask about and the links Google itself points at, and hands the booking step back to you.
FAQ
Is there an official Google Hotels API?
No. Google runs Hotel Center for hoteliers publishing their own rates, and the Places API for business records, neither of which returns what a stay costs. This server reads the public results and returns them as structured JSON.
What is a Google Hotels MCP server?
A server that exposes Google Hotels as a tool an AI client can call. The client sends a tool call over the Model Context Protocol, the server fetches the properties and returns structured JSON, and the model works with the result. This one exposes a single tool and runs remotely.
Why did my search come back with hotels in another country?
Because a bare place name is resolved against Google's own idea of where the search is running, which is the datacentre the request leaves from. Write hotels in Barcelona instead of Barcelona, or set gl to the country code, and the destination sticks.
How do I see what each booking site charges?
Search first, then call the tool again with the propertyToken of the property you care about. The answer carries prices with one entry per source, typicalPriceRange for the stay and Google's deal verdict when the rate is unusually low.
Can I search vacation rentals?
Yes. Turn on vacationRentals and the same tool searches rentals, where bedrooms and bathrooms become useful filters.
Can I use this together with other HasData APIs?
Yes. The apis parameter takes a list, and ?apis=google_travel adds Google Flights alongside hotels. Drop the parameter and you get everything.
Compliance and personal data
HasData accesses publicly available data only. A platform's terms may restrict automated access, and you are responsible for your own compliance.
HasData links
Development
This repository is configuration and documentation for a remote server. There is no build step and nothing to containerize.
The tests in test/ assert the tool contract, the part that can break without a commit here. They check that ?apis=google_travel_hotels returns exactly one tool, that it still declares its required parameters, that the name has not changed, and that the key in use is actually accepted. That last check calls the tool for real and costs 10 credits, which is the price of a canary that can fail for the right reason.
The same suite runs in CI on every push and once a week on a schedule, because the upstream tool list can change without anyone touching this repository. A failure means the tool list moved, the key stopped working, or the endpoint was unreachable, and the assertion message says which.
Contributing
Corrections to the parameter table and the response sample are the most useful contribution, because those are the parts that drift. Include the call you made and the response you got. Pull requests from forks run the suite without a key, and the live checks skip instead of going red.
License
MIT. See LICENSE.
来源:README.md,提交 1aabdef
工具
0版本历史
3- v1.0.2最新Sep 24, 2026
- v1.0.1Sep 22, 2026
- v1.0.0Sep 17, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具必需15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Hasdata 集成

HasData Airbnb
com.hasdata官方发布者
HasData 托管的 Airbnb MCP 服务器,提供两个只读工具,让助手按地点或地图区域搜索房源,并以 JSON 读取房源详情。

HasData Google Flights Deals
com.hasdata官方发布者
HasData 托管服务器,提供一个 Google Flights Deals 工具,把自然语言描述的旅行想法变成带日期的票价、航司、经停和预订链接。

HasData ChatGPT
com.hasdata官方发布者
HasData 托管服务器,让助手匿名向 ChatGPT 提问,并返回 Markdown 答案及其参考的网页来源。

HasData Zillow
com.hasdata官方发布者
HasData 提供的托管服务,让助手以结构化 JSON 搜索 Zillow 在售、出租和已售房源,并读取完整房产详情。

HasData YouTube
com.hasdata官方发布者
HasData 托管的 MCP 服务器,让助手搜索 YouTube 并以 JSON 读取公开的视频、频道和字幕数据,无需 Google Cloud 项目。