booking-mcp
booking-mcp
booking-mcp es un servidor de Protocolo de Contexto de Modelo para gestionar reservas de restaurantes, servido sobre HTTP Streamable. Expone herramientas para reservar una mesa, comprobar disponibilidad y cancelar una reserva; recursos para leer el libro de reservas; y un prompt para redactar confirmaciones. Al reservar, el servidor recopila los datos de contacto del huésped del usuario mediante elicitación.
Requisitos
Python 3.13
Related MCP server: mcp-booking-bridge
Uso
Configuración
Crea el entorno virtual, instala el SDK (mcp[cli,rich]) y las dependencias, e instala el paquete en modo editable:
uv syncServidor
Inicia el servidor, que sirve HTTP Streamable en http://127.0.0.1:8000/mcp:
uv run booking-mcpTutorial
Un cliente interactivo independiente que se ejecuta en el proceso, por lo que no necesita que nada más esté en ejecución. Te ofrece un menú de acciones y te permite responder tú mismo a las solicitudes de elicitación.
uv run python scripts/walkthrough.py[!TIP]
Las reservas se guardan en
var/bookings.jsonpor defecto. EstableceBOOKING_DB_PATHpara almacenarlas en otro lugar:BOOKING_DB_PATH=/tmp/demo.json uv run python scripts/walkthrough.py
Superficie MCP
Tipo | Nombre | Notas |
Herramienta |
| solicita nombre, teléfono y notas del usuario |
Herramienta |
| marca una reserva como cancelada |
Herramienta |
| mesas restantes para un horario |
Recurso |
| todas las reservas, como JSON |
Recurso |
| una reserva, como JSON |
Recurso |
| capacidad para cada horario en una fecha, como JSON |
Prompt |
| redacta un mensaje de confirmación para el huésped |
Estructura
booking-mcp/
├── src/booking_mcp/
│ ├── app.py # the shared MCPServer instance
│ ├── config.py # storage path + capacity limits
│ ├── models.py # Reservation domain model
│ ├── store.py # JSON file repository
│ ├── server.py # entrypoint: registers features, runs the server
│ └── features/
│ ├── reservations.py # book/cancel + reservation resources + prompt
│ └── availability.py # availability tool + resource
├── scripts/
│ └── walkthrough.py # manual interactive client
└── var/ # runtime state, gitignored (holds bookings.json)Related MCP Connectors
Restaurant menus, carts, reservations and owner drafts for AI agents (Thmenu MCP).
Read availability, reservations, guests; create, change, cancel bookings; add notes in GoTable.
Run your Cluvi AI restaurant: guest chats, reservations, menu and AI receptionist.
Find Resy restaurants and request reservations through Scout; the user approves every booking.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables restaurant reservation management through SevenRooms API, allowing users to create reservations and query available time slots with guest details and party size information.-
- AlicenseNot gradedqualityCmaintenanceEnables managing restaurant table bookings through natural language conversations with an AI assistant, with built-in safety measures like no deletion and explicit write enable.MIT
- AlicenseAqualityDmaintenanceEnables AI agents to search restaurants, check availability, and book reservations on OpenTable, including managing booking history and handling multi-factor authentication.9147 npmMIT
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to manage restaurant reservations through typed MCP tools, including checking table availability, creating and canceling reservations, and listing the day's confirmed bookings.-