HotelRate MCP
README.md
# ๐จ HotelRate MCP โ AI-Powered Hotel Price Comparison
<p align="center">
<strong>Compare hotel prices across multiple booking platforms using AI and automation.</strong>
</p>




## ๐ Overview
HotelRate MCP is an MCP-based hotel price comparison system that helps AI agents retrieve and compare hotel offers across Trip.com, Booking.com, Agoda, and Google Hotels through a unified interface.
It supports demo mode for testing and live browser-based searches using Playwright.
## โจ Features
- ๐ Multi-platform hotel price comparison
- ๐ค AI-agent integration using Model Context Protocol (MCP)
- ๐ Browser automation with Playwright
- โก Batch queries for multiple hotels
- ๐ Structured hotel offers and pricing data
- ๐งช Environment health checks and diagnostics
- ๐ Optional REST API using FastAPI
## ๐ ๏ธ Tech Stack
Python โข MCP โข Playwright โข FastAPI โข Pydantic โข pytest
## ๐๏ธ Architecture
```text
AI Agent / MCP Client
|
v
MCP Server
|
v
Quote Service
|
+----+----+----+
| | | |
Trip Booking Agoda Google
|
v
Result Normalization
|
v
Structured Hotel Offers
```
## โ๏ธ Installation
```bash
git clone https://github.com/seanbabalala/hotelrate-crawl.git
cd hotelrate-crawl
pip install -e .
cp .env.example .env
hotelrate-mcp doctor
```
For live searches, configure your environment and run:
```bash
hotelrate-mcp setup
```
## ๐ Available MCP Tools
| Tool | Description |
|---|---|
| `hotel_quote` | Retrieve offers for a hotel |
| `hotel_quote_batch` | Query multiple hotels |
| `list_platforms` | Check supported platforms |
| `health_check` | Check system readiness |
## ๐งช Testing with MCP Inspector
```bash
npx @modelcontextprotocol/inspector hotelrate-mcp
```
Open the URL printed in the terminal, navigate to **Tools โ hotel_quote**, enter the hotel details, and run the tool to inspect the results.
## ๐ฎ Future Enhancements
- Historical hotel price tracking
- Price-drop notifications
- Improved room matching
- Interactive price comparison dashboard
## ๐ Security
- Keep credentials and `.env` files private.
- Never commit browser sessions or authentication tokens.
- Respect website terms and access restrictions.
## ๐ License
MIT License. Retain the applicable license and original attribution when redistributing the code.
---
<p align="center">
<strong>Making hotel price comparison simpler with AI and automation.</strong>
</p>This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo issues