Serpapi Hotels

com.pulsemcp由 pulsemcp.com 发布v0.0.4更新于 Oct 24, 2026

MCP server for searching Google Hotels via SerpAPI — hotel search, pricing, ratings, and reviews.

概览

AI 生成的概览

通过 SerpAPI 搜索 Google Hotels,让助手查找酒店、比较价格并阅读住客评价。

可以做什么
  • 按地区和日期范围搜索酒店,可按价格、评分、星级、设施、免费取消、特惠、环保认证或度假短租筛选
  • 获取指定酒店的详情,包括多个预订来源的价格、评分细分、设施、入住时间与周边地点
  • 读取单条住客评价,含全文、分项评分、酒店回复,并支持排序与分类筛选
适用场景
适合旅行规划或住宿比较:助手可按日期查询酒店、对比各预订网站的价格与评分,并在决定预订前汇总住客反馈。
运行要求
通过 npx 在本地运行(需 Node.js)。需要 SerpAPI 账号及 API 密钥,通过环境变量 SERPAPI_API_KEY 提供;需能访问 SerpAPI 的网络。仅支持桌面客户端。
安装前请注意
SERPAPI_API_KEY 是付费服务的凭据,以明文环境变量传入,请勿写入共享配置。搜索请求会发送至 SerpAPI 与 Google Hotels,返回的第三方预订价格可能过时或因地区而异。该服务器只读取数据,不执行预订或付款。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Serpapi Hotels,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

SerpAPI Hotels MCP Server

An MCP server for searching Google Hotels via the SerpAPI API. Search for hotels in any area with date ranges, and get back prices, ratings, reviews, and booking information.

Tools

ToolDescription
search_hotelsSearch for hotels with filters for price, rating, star class, amenities, and more
get_hotel_detailsGet detailed info for a specific hotel including review breakdowns and booking prices from multiple sources
get_hotel_reviewsGet individual guest reviews with full text, ratings, sub-ratings, and hotel management responses

Quick Start

Claude Desktop

Add this to your Claude Desktop config file:

json
{  "mcpServers": {    "serpapi-hotels": {      "command": "npx",      "args": ["-y", "serpapi-hotels-mcp-server"],      "env": {        "SERPAPI_API_KEY": "your_api_key_here"      }    }  }}

Manual Setup

bash
# Clone and installcd experimental/serpapi-hotelsnpm run install-all
# Set your API keyexport SERPAPI_API_KEY=your_api_key_here
# Build and runnpm run buildcd local && npm start

Configuration

VariableRequiredDescription
SERPAPI_API_KEYYesYour SerpAPI API key (get one here)

Example Usage

Search for hotels

Search for hotels in New York for March 1-5, 2026, sorted by lowest price

The search_hotels tool will be called with:

  • query: "Hotels in New York"
  • check_in_date: "2026-03-01"
  • check_out_date: "2026-03-05"
  • sort_by: 3

Get hotel details

After finding a hotel, use get_hotel_details with its property_token to get:

  • Prices from multiple booking sources (Booking.com, Hotels.com, Expedia, etc.)
  • Review breakdown by category (cleanliness, location, service)
  • Full amenity list
  • Check-in/out times
  • Nearby places with travel times

Read hotel reviews

After finding a hotel, use get_hotel_reviews with its property_token to get:

  • Full review text from Google and third-party sources (TripAdvisor, etc.)
  • Reviewer ratings with sub-ratings (rooms, service, location)
  • Hotel management responses
  • Sorting by most helpful, most recent, highest/lowest score
  • Category filtering (from get_hotel_details review breakdown)

Available Filters

FilterValues
sort_by3 = lowest price, 8 = highest rating, 13 = most reviewed
rating7 = 3.5+, 8 = 4.0+, 9 = 4.5+
hotel_class"2", "3", "4", "5" (star rating, comma-separated)
min_price / max_pricePrice range per night
free_cancellationtrue/false
special_offerstrue/false
eco_certifiedtrue/false
vacation_rentalstrue = search vacation rentals instead

Development

bash
npm run install-all    # Install all dependenciesnpm run build          # Build the projectnpm run dev            # Development modenpm test               # Run functional testsnpm run test:integration  # Run integration testsnpm run test:manual    # Run manual tests (requires API key)

Project Structure

serpapi-hotels/├── local/              # Stdio transport entry point│   └── src/│       ├── index.ts                      # Main entry point│       └── index.integration-with-mock.ts # Mock entry for integration tests├── shared/             # Core business logic│   └── src/│       ├── server.ts         # MCP server factory│       ├── tools.ts          # Tool registration│       ├── resources.ts      # Resource handlers│       ├── types.ts          # TypeScript types│       ├── logging.ts        # Logging utilities│       ├── tools/            # Individual tool implementations│       │   ├── search-hotels.ts│       │   ├── get-hotel-details.ts│       │   └── get-hotel-reviews.ts│       └── serpapi-client/   # SerpAPI client│           ├── serpapi-client.integration-mock.ts│           └── lib/│               ├── parse-property.ts│               ├── search-hotels.ts│               ├── get-hotel-details.ts│               └── get-hotel-reviews.ts└── tests/    ├── functional/       # Unit tests with mocks    ├── integration/      # Full MCP protocol tests    ├── manual/           # Real API tests    └── mocks/            # Mock implementations

来源:experimental/serpapi-hotels/README.md,提交 0ed34de

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.0.4最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分