Skip to main content
Glama
LuoZihYuan

booking-mcp

by LuoZihYuan

booking-mcp

booking-mcp 是一个用于管理餐厅预订的 Model Context Protocol 服务器,通过 Streamable HTTP 提供服务。它提供了预订餐桌、检查可用性和取消预订的工具;用于读取预订簿的资源;以及用于起草确认消息的提示词。预订时,服务器会通过引导交互从用户那里收集客人的联系信息。

要求

  • Python 3.13

  • uv

Related MCP server: Lumen Resto MCP

用法

设置

创建虚拟环境,安装 SDK(mcp[cli,rich])和依赖项,并以可编辑模式安装包:

uv sync

服务器

启动服务器,该服务器在 http://127.0.0.1:8000/mcp 上提供 Streamable HTTP 服务:

uv run booking-mcp

演练

一个运行在进程内的独立交互式客户端,因此无需运行其他任何内容。它会为你提供操作菜单,并允许你自行回答引导提示。

uv run python scripts/walkthrough.py

[!TIP]

默认情况下,预订会持久化到 var/bookings.json。设置 BOOKING_DB_PATH 可将其存储到其他位置:

BOOKING_DB_PATH=/tmp/demo.json uv run python scripts/walkthrough.py

MCP 表面

Kind

Name

Notes

工具

book_table(date, time, party_size)

从用户处引导获取姓名、电话和备注

工具

cancel_booking(id)

将预订标记为已取消

工具

check_availability(date, time)

某个时段剩余的桌数

资源

bookings://all

所有预订,以 JSON 格式

资源

bookings://{id}

单个预订,以 JSON 格式

资源

availability://{date}

某日各时段的容量,以 JSON 格式

提示词

confirmation_message(id)

起草客人确认消息

布局

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)
A
license - permissive license
Not graded
quality - not tested
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables restaurant reservation management through SevenRooms API, allowing users to create reservations and query available time slots with guest details and party size information.
  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables restaurant reservation management and schedule checking through Supabase with multi-tenant support. Designed for WhatsApp and phone agents to verify opening hours, create reservations with automatic table assignment, and handle multiple restaurants from a single server.
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables 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

View all related MCP servers

Related MCP Connectors

  • Agentic scheduling & booking for field service: availability, jobs, customers, crews, fleet.

  • AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.

  • Bounded tools for rendering, extraction, RAG, enrichment, local discovery and review analysis.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LuoZihYuan/booking-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server