Hotel Booking MCP Server
An MCP server that connects AI assistants like Claude to a Microsoft SQL Server hotel booking database, exposing tools to query customers, rooms, and bookings.
README
šØ Hotel Booking MCP Server
An MCP (Model Context Protocol) server that connects AI assistants like Claude to a Microsoft SQL Server hotel booking database. It exposes hotel data as tools that Claude can call naturally in conversation.
š Features
| Tool | Description |
|---|---|
get_all_customers |
Fetch all registered customers |
get_all_rooms |
Fetch all rooms with full details |
get_available_rooms |
Fetch only rooms with Available status |
get_all_bookings |
Fetch all bookings with customer & room info |
get_active_bookings |
Fetch only Confirmed and Pending bookings |
š ļø Tech Stack
- Python 3.12+
- MCP Python SDK v2.0.0 (
mcp) - pyodbc ā Microsoft SQL Server driver
- uv ā Fast Python package & project manager
- SQL Server with ODBC Driver 17
āļø Prerequisites
- Python 3.12+ installed
- uv installed ā Install uv
- ODBC Driver 17 for SQL Server installed ā Download here
- SQL Server running locally with the
HotelBookingSystemdatabase
šļø Database Setup
The server connects to a local SQL Server database using Windows Authentication (Trusted Connection).
Connection string used:
Driver={ODBC Driver 17 for SQL Server}
Server=localhost
Database=HotelBookingSystem
Trusted_Connection=yes
Required tables:
Customersā CustomerID, FirstName, LastName, Email, PhoneNumber, City, CountryRoomsā RoomID, RoomNumber, RoomType, Floor, Capacity, PricePerNight, Amenities, StatusBookingsā BookingID, CustomerID, RoomID, CheckInDate, CheckOutDate, TotalPrice, BookingStatus, PaymentStatus
š Getting Started
1. Clone the repository
git clone <your-repo-url>
cd HotelBookingMCP
2. Create virtual environment and install dependencies
uv sync
3. Run the MCP server (stdio mode)
uv run python main.py
4. Test with the MCP Inspector
uv run mcp dev main.py
Then open the URL shown in the terminal (e.g. http://localhost:6274) in your browser.
š¤ Connecting to Claude Desktop
Option A ā Automatic install (recommended)
uv run mcp install main.py
Option B ā Manual config
Edit %APPDATA%\Claude\claude_desktop_config.json and add:
{
"mcpServers": {
"Hotel Booking MCP Server": {
"command": "C:\\Users\\<YOUR_USERNAME>\\.local\\bin\\uv.EXE",
"args": [
"run",
"--project",
"D:\\Path\\To\\HotelBookingMCP",
"python",
"D:\\Path\\To\\HotelBookingMCP\\main.py"
]
}
}
}
ā ļø Replace
<YOUR_USERNAME>and the paths with your actual values.
After updating the config, fully restart Claude Desktop for the changes to take effect.
š§ Connecting to Claude Code (CLI)
claude mcp add hotel-booking-mcp -- uv run python main.py
š Project Structure
HotelBookingMCP/
āāā main.py # MCP server with all tools
āāā pyproject.toml # Project metadata & dependencies
āāā .python-version # Python version pin
āāā .gitignore
āāā README.md
š Example Claude Prompts
Once connected, you can ask Claude things like:
- "Show me all available rooms"
- "List all active bookings"
- "Which customers are from Yangon?"
- "What rooms are available and what are their prices?"
šŖŖ License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.