Context7
Up-to-date docs for AI agents
作者による説明(英語の原文)
Google Hotels search: rates, ratings, amenities and what each booking site charges, as JSON.
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
HASDATA_API_KEY, x-api-key「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。
必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
このアドレスはリクエストの header にキーが必要ですが、コネクタを追加するメニューでは設定できません。代わりにClaude Code、Cursor、VS Codeを使ってください。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"google-hotels": {
"command": "npx",
"args": [
"-y",
"@hasdata/google-hotels-mcp"
],
"env": {
"HASDATA_API_KEY": "your-value"
}
}
}
}ターミナルでこれを実行します
claude mcp add --transport http google-hotels 'https://mcp.hasdata.com/mcp?apis=google_travel_hotels' --header 'x-api-key: your-value'claude mcp add google-hotels --env HASDATA_API_KEY=your-value -- npx -y @hasdata/google-hotels-mcp動かす前に、空欄の値を入力してください。
プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"google-hotels": {
"url": "https://mcp.hasdata.com/mcp?apis=google_travel_hotels",
"headers": {
"x-api-key": "your-value"
}
}
}
}プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"google-hotels": {
"command": "npx",
"args": [
"-y",
"@hasdata/google-hotels-mcp"
],
"env": {
"HASDATA_API_KEY": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"google-hotels": {
"type": "http",
"url": "https://mcp.hasdata.com/mcp?apis=google_travel_hotels",
"headers": {
"x-api-key": "your-value"
}
}
}
}プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"google-hotels": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@hasdata/google-hotels-mcp"
],
"env": {
"HASDATA_API_KEY": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
このアドレスはリクエストの header にキーが必要ですが、コネクタを追加するメニューでは設定できません。代わりにClaude Code、Cursor、VS Codeを使ってください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
x-api-key 秘密 必須 HTTP headerこの設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
このサーバーのツール一覧はまだ読み取っていません。エンドポイントは順番にチェックしています。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月6日にチェック
レジストリ名はドメイン hasdata.com で確認済みです(レジストリがドメインの所有を確認しています)
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
まだチェックしていません。エンドポイントは順番にチェックしています
まだチェックしていません。エンドポイントは順番にチェックしています
まだチェックしていません。エンドポイントをチェックするときにツール一覧を読み取ります
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
入力が必要なもの:HASDATA_API_KEY, x-api-key
どちらでも使えます。パソコンにインストールしても、クラウド版につないでもかまいません。
GitHubリポジトリの最終更新は–、最新バージョン(1.0.2)がレジストリに届いたのは43 日前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。URLでつながるので、リモートMCPサーバーに対応したアプリ(開発者モードのChatGPTなど)でも使えます。
同じカテゴリには:Context7, Codebase Memory, Exa
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
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.
https://mcp.hasdata.com/mcp?apis=google_travel_hotels
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.
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.
| Field | Value |
|---|---|
| URL | https://mcp.hasdata.com/mcp?apis=google_travel_hotels |
| Transport | HTTP, streamable |
| Auth header | x-api-key: HASDATA_API_KEY |
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 mcp add --transport http google-hotels "https://mcp.hasdata.com/mcp?apis=google_travel_hotels" \
--header "x-api-key: HASDATA_API_KEY"
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:
{
"mcpServers": { "google-hotels": { "command": "npx", "args": ["-y", "@hasdata/google-hotels-mcp"], "env": { "HASDATA_API_KEY": "YOUR_KEY" } } } }
For Python instead of Node, swap the launcher for the PyPI package, which uvx runs without a manual install:
{
"mcpServers": { "google-hotels": { "command": "uvx", "args": ["hasdata-google-hotels-mcp"], "env": { "HASDATA_API_KEY": "YOUR_KEY" } } } }
Cursor
~/.cursor/mcp.json for every project, or .cursor/mcp.json for one:
{
"mcpServers": { "google-hotels": { "url": "https://mcp.hasdata.com/mcp?apis=google_travel_hotels", "headers": { "x-api-key": "HASDATA_API_KEY" } } } }
Windsurf
~/.codeium/windsurf/mcp_config.json. Windsurf calls the field serverUrl, not url:
{
"mcpServers": { "google-hotels": { "serverUrl": "https://mcp.hasdata.com/mcp?apis=google_travel_hotels", "headers": { "x-api-key": "HASDATA_API_KEY" } } } }
VS Code
.vscode/mcp.json in the workspace:
{
"servers": { "google-hotels": { "type": "http", "url": "https://mcp.hasdata.com/mcp?apis=google_travel_hotels", "headers": { "x-api-key": "HASDATA_API_KEY" } } } }
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.
| Tool | What it returns |
|---|---|
hasdata_google_travel_hotels_getGoogleHotels | Properties with nightly and total rate, class, rating, review counts and a breakdown by topic, amenities, images, coordinates and nearby transit, alongside pagination and the brand tree. Given a propertyToken it returns that one property with the rate at every source Google compares, address, phone and a typical price range. 10 credits a call |
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.
hasdata_google_travel_hotels_getGoogleHotels
Properties for a destination and a stay, with rates, ratings, amenities and images.
| Parameter | Type | Required | Notes |
|---|---|---|---|
q | string | yes | Destination, neighbourhood or hotel name. Phrase it as hotels in Barcelona rather than Barcelona, or pin the country with gl |
checkInDate | string | yes | YYYY-MM-DD |
checkOutDate | string | yes | YYYY-MM-DD |
adults / children | number | Guest mix, 1 to 6 adults and up to 5 children, 6 guests in total | |
childrenAges | string | Comma-separated ages, one per child, such as 5,8 | |
sortBy | string | lowestPrice, highestRating or mostReviewed. Google's own order when absent | |
minPrice / maxPrice | number | Per night, in the selected currency | |
rating | string | threePointFivePlus, fourPlus or fourPointFivePlus | |
hotelClass | string | Star classes to keep, comma-separated, such as 4,5 | |
propertyType__ | array | Property types such as hotelResort, prefixed hotel* for hotels and vacation* for rentals | |
amenity__ | array | Amenities such as hotelFreeWifi or hotelPool, same prefix rule | |
brands | string | Brand ids to keep. The search response carries the whole brand tree with its ids | |
freeCancellation / specialOffers / ecoCertified | boolean | Narrow to properties carrying that flag | |
vacationRentals | boolean | Search rentals instead of hotels | |
bedrooms / bathrooms | number | Minimums, rentals only | |
currency / gl / hl | string | Currency, and the country and language of the search | |
nextPageToken | string | Next page, taken from pagination | |
propertyToken | string | Switches the call from a search to one property in full |
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.
{
"name": "Casa Gràcia", "propertyToken": "ChcI0r6-2uyF7rIuGgsvZy8xdmo2bnNxZhAB", "type": "hotel", "description": "Cozy quarters in a hip lodging with dining & a lively bar, plus a kitchen, a library & free Wi-Fi.", "link": "https://room00hostel.com/barcelona/casa-gracia-hostel/", "gpsCoordinates": { "latitude": 41.3974523, "longitude": 2.1593339 }, "ratePerNight": { "beforeTaxesFees": "US$61", "extractedBeforeTaxesFees": 61 }, "totalRate": { "beforeTaxesFees": "US$182", "extractedBeforeTaxesFees": 182 }, "hotelClass": "4-star hotel", "extractedHotelClass": 4, "overallRating": 3.9, "reviews": 3811, "locationRating": "4.6", "amenities": ["Breakfast", "Air conditioning", "Airport shuttle", "Kid-friendly"], "nearbyPlaces": [ { "name": "La Pedrera - Casa Milà", "transportations": [{ "type": "Walking", "duration": "5 min" }] } ] }
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
冒頭だけを表示しています。続きはリポジトリで読めます