
MCP server for Booking.com - let AI agents book hotels
概览
MCP server for Booking.com — search hotels, check availability, manage reservations, and more via AI agents. This MCP (Model Context Protocol) server gives AI agents the ability to interact with Booking.com using browser automation (Playwright). It supports 14 tools covering the full hotel booking workflow. - Node.js 18+ - A Booking.com account (for bookings, reservations, and wishlist) Or install Playwright browsers after install: Add to your MCP config (e.g. ~/.claude/mcp_servers.json): The server uses cookie-based session persistence. Login is (two steps) so it won't hang your MCP client while you wait on an emailed verification code: 1. Run booking_login. It opens a at the Booking.com sign-in page and returns immediately. 2. Sign in in that window (including any email/SMS code or 2FA/CAPTCHA). A background poller watches for completion. 3. Run booking_login_status to check progress — it reports in_progress, success, failed, or idle. Poll it until it's no longer in_progress.
README
以下为原文 README 节选,完整内容请查看原文。
@striderlabs/mcp-booking
MCP server for Booking.com — search hotels, check availability, manage reservations, and more via AI agents.
By Strider Labs
Overview
This MCP (Model Context Protocol) server gives AI agents the ability to interact with Booking.com using browser automation (Playwright). It supports 14 tools covering the full hotel booking workflow.
Tools
| Tool | Description |
|---|---|
booking_status |
Check login/session status |
booking_login |
Open a browser window to sign in (non-blocking; returns immediately) |
booking_login_status |
Check progress of an in-flight booking_login |
booking_logout |
Clear saved session and cookies |
booking_search |
Search hotels by destination, dates, guests, rooms, and amenities (pets, parking, pool, …) |
booking_get_property |
Get property details (amenities, description, policies, structured facilitySummary) |
booking_check_availability |
Check room availability for specific dates |
booking_get_prices |
Get pricing for a property |
booking_filter_results |
Filter last search by price, rating, amenities |
booking_sort_results |
Sort last search by price/rating/distance/reviews |
booking_save_property |
Save to wishlist/favorites |
booking_book |
Get a “continue in your browser” booking link (does not place the booking) |
booking_get_reservations |
List current/upcoming reservations |
booking_cancel_reservation |
Cancel a booking (requires confirm=true) |
booking_get_reviews |
Get guest reviews for a property |
Requirements
- Node.js 18+
- A Booking.com account (for bookings, reservations, and wishlist)
Installation
npm install @striderlabs/mcp-booking
Or install Playwright browsers after install:
npx playwright install chromium
Configuration
Add to your MCP config (e.g. ~/.claude/mcp_servers.json):
{
"mcpServers": {
"booking": {
"command": "npx",
"args": ["-y", "@striderlabs/mcp-booking"]
}
}
}
Authentication
The server uses cookie-based session persistence. Login is non-blocking (two steps) so it won’t hang your MCP client while you wait on an emailed verification code:
- Run
booking_login. It opens a visible browser window at the Booking.com sign-in page and returns immediately. - Sign in in that window (including any email/SMS code or 2FA/CAPTCHA). A background poller watches for completion.
- Run
booking_login_statusto check progress — it reportsin_progress,success,failed, oridle. Poll it until it’s no longerin_progress. - On
successthe session is captured and saved automatically;booking_statuswill then show you as logged in.
The background poller waits up to ~10 min by default; pass timeoutSeconds to
booking_login to extend it (up to 30 min) if a verification code is slow to
安装
npx -y @striderlabs/mcp-booking配置
{
"mcpServers": {
"booking": {
"command": "npx",
"args": ["-y", "@striderlabs/mcp-booking"]
}
}
}