Hotel Booking 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.
Описание
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
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
Установка Hotel Booking Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/MyatThuta158/Hotel_Booking_MCP_ServerFAQ
Hotel Booking Server MCP бесплатный?
Да, Hotel Booking Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Hotel Booking Server?
Нет, Hotel Booking Server работает без API-ключей и переменных окружения.
Hotel Booking Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Hotel Booking Server в Claude Desktop, Claude Code или Cursor?
Открой Hotel Booking Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
автор: wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
автор: madhurprashPostgres
Query your database in natural language
автор: AnthropicPostgreSQL
Read-only database access with schema inspection.
автор: modelcontextprotocolCompare Hotel Booking Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории data
