serpapi-hotels — Claude Code MCP server: what it does, how to install
Connects Google Hotels to your coding assistant via SerpAPI. It lets agents check lodging prices, filter by stay dates, and inspect guest feedback.
claude mcp add serpapi-hotels -e SERPAPI_API_KEY=<SERPAPI_API_KEY> -- npx -y serpapi-hotels-mcp-serverWhat serpapi-hotels does
This integration exposes three main tools: search_hotels, get_hotel_details, and get_hotel_reviews. An assistant can query lodging options across any region, applying constraints on nightly rates, star categories, and free cancellation policies. It also handles vacation rental queries.
Once a property is located, its property_token unlocks comparative pricing across platforms like Expedia or Booking.com. The server also retrieves arrival schedules, surrounding points of interest, and full guest evaluations categorized by parameters like cleanliness or staff service.
The server requires Node. Execution will fail immediately without a valid SERPAPI_API_KEY defined in the environment.
What it helps with
- search properties by travel dates, guest ratings, and nightly budget
- compare reservation costs across multiple booking aggregators
- inspect guest feedback, category sub-scores, and hotel replies
- filter accommodations by eco-certification and cancellation terms
Example prompts for the agent
- Find hotels in central Tokyo for October 10 to 15 under $200 per night with free cancellation.
- Check the booking rate differences for this property across available travel providers.
- Pull the lowest-rated guest reviews for this place along with any manager responses.
How to install serpapi-hotels
Platform CLI
claude mcp add serpapi-hotels -e SERPAPI_API_KEY=<SERPAPI_API_KEY> -- npx -y serpapi-hotels-mcp-serverReplace <…> with your own values
Platform CLI
codex mcp add serpapi-hotels --env SERPAPI_API_KEY=<SERPAPI_API_KEY> -- npx -y serpapi-hotels-mcp-serverReplace <…> with your own values
Config file
{
"mcpServers": {
"serpapi-hotels": {
"command": "npx",
"args": [
"-y",
"serpapi-hotels-mcp-server"
],
"env": {
"SERPAPI_API_KEY": "<SERPAPI_API_KEY>"
}
}
}
}Replace <…> with your own values
Config file
{
"servers": {
"serpapi-hotels": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"serpapi-hotels-mcp-server"
],
"env": {
"SERPAPI_API_KEY": "<SERPAPI_API_KEY>"
}
}
}
}Replace <…> with your own values
Platform CLI
gemini mcp add -e SERPAPI_API_KEY=<SERPAPI_API_KEY> serpapi-hotels npx -y serpapi-hotels-mcp-serverReplace <…> with your own values
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about serpapi-hotels
How to install serpapi-hotels in Claude Code?
Run claude mcp add serpapi-hotels -e SERPAPI_API_KEY=<SERPAPI_API_KEY> -- npx -y serpapi-hotels-mcp-server in your terminal. Replace <SERPAPI_API_KEY> with your actual SerpAPI key.
What does serpapi-hotels do?
It bridges Google Hotels and your assistant using SerpAPI. The model can browse lodging availability, compare vendor prices, and parse traveler opinions without leaving the chat.
Which environment variables are required?
You must define SERPAPI_API_KEY before starting the server. Without this key, all search requests to the API fail immediately.