hotels_mcp_server
MCP server for hotel searches using Booking.com API
claude mcp add --transport stdio esakrissa-hotels_mcp_server python main.py \ --env RAPIDAPI_KEY="your-rapidapi-key" \ --env RAPIDAPI_HOST="booking-com.p.rapidapi.com"
How to use
This MCP server provides tools to search for travel destinations and retrieve hotel listings using the Booking.com API via RapidAPI. It exposes two primary tools: search_destinations, which takes a query string to find matching destinations, and get_hotels, which retrieves hotel listings for a given destination ID within a specified date range and party size. You can interact with these tools through MCP clients (e.g., MCP Inspector, Cursor) to build natural language queries like 'Find hotels in Paris' or 'Show me hotels in destination_id for next weekend'. The server returns structured hotel data including room types, pricing, ratings, photos, and check-in/check-out information, enabling rich responses in downstream LLM workflows.
How to install
Prerequisites:
- Python 3.11+
- MCP SDK (pip install mcp)
- httpx (pip install httpx)
- python-dotenv (pip install python-dotenv)
Installation steps:
-
Clone the repository: git clone https://github.com/username/hotels_mcp_server.git cd hotels_mcp_server
-
Install dependencies: pip install -r requirements.txt
-
Configure RapidAPI credentials:
- Copy .env.example to .env
- Add your RapidAPI key from Booking.com API on RapidAPI to the .env file
-
Run the server: python main.py
Note: Ensure your environment variables are loaded (via .env or export RAPIDAPI_KEY and RAPIDAPI_HOST) before starting the server.
Additional notes
Environment and configuration tips:
- Ensure .env contains the Booking.com RapidAPI key and host, or set RAPIDAPI_KEY and RAPIDAPI_HOST in your environment.
- The server uses stdio transport by default, which is compatible with MCP clients like Cursor.
- If you encounter API quota errors, verify your RapidAPI subscription plan and key usage limits.
- For local development, you can test endpoints via MCP Inspector to validate tool schemas and sample responses before integrating into a larger chat flow.
- The two available tools are search_destinations (query) and get_hotels (destination_id, checkin_date, checkout_date, adults).
Related MCP Servers
mcp-vegalite
MCP server from isaacwasserman/mcp-vegalite-server
github-chat
A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.
nautex
MCP server for guiding Coding Agents via end-to-end requirements to implementation plan pipeline
pagerduty
PagerDuty's official local MCP (Model Context Protocol) server which provides tools to interact with your PagerDuty account directly from your MCP-enabled client.
futu-stock
mcp server for futuniuniu stock
mcp -boilerplate
Boilerplate using one of the 'better' ways to build MCP Servers. Written using FastMCP