Hotel Booking MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Hotel Booking MCP ServerShow me all available rooms"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
šØ 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 |
| Fetch all registered customers |
| Fetch all rooms with full details |
| Fetch only rooms with |
| Fetch all bookings with customer & room info |
| Fetch only |
Related MCP server: SQL Server MCP
š ļø 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=yesRequired 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 HotelBookingMCP2. Create virtual environment and install dependencies
uv sync3. Run the MCP server (stdio mode)
uv run python main.py4. Test with the MCP Inspector
uv run mcp dev main.pyThen 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.pyOption 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
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Cloud-hosted MCP server for secure AI access to enterprise data sources via CData Connect AI.
- mcp-serverOAuthio.klokin
MCP server exposing klokin time-tracking operations (employees, time entries, stores) to AI clients.
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors ā no code.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceAn MCP server for Microsoft SQL Server integration that enables users to query, monitor, and analyze databases directly through Claude. It supports schema exploration, performance analysis, and optional write operations via natural language commands.10 npm1MIT
- AlicenseBqualityDmaintenanceAn MCP server that connects AI assistants to Microsoft SQL Server databases, enabling schema exploration and read-only queries safely.4914 npm4MIT
- AlicenseBqualityDmaintenanceA powerful MCP server for Microsoft SQL Server that connects AI assistants directly to your SQL Server databases with enterprise-grade security controls.3836 npm3MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that enables AI assistants to query and manage Microsoft SQL Server databases using natural language.266 npm5MIT