Skip to main content
Glama
bookings-mcp

bookings-mcp

by satviksriv

bookings-mcp

An MCP server that lets Claude run the front desk of a service business: it finds customers, checks real availability, books and cancels appointments without double-booking, and answers revenue questions from the actual data.

It ships with a demo dataset for Maple Street Studio, a fictional three-stylist salon (40 customers, six services, 60 days of history and two weeks of upcoming bookings), plus a Claude skill that tells Claude how to use the tools the way a good receptionist would.

"Book Ava Patel for a haircut tomorrow afternoon with Priya." Claude searches the customer, checks Priya's open slots, offers three times, confirms, and books.

"How did we do in August, and who had the most no-shows?" Claude runs revenue_report grouped by staff and answers in two sentences.

Why it's built this way

Decision

Reason

Business rules live in src/domain.ts, not in the tool handlers

Rules are unit-tested without the protocol, and the same logic could back a web app or n8n workflow

Bookings run in a transaction with an overlap check

Two requests for the same slot cannot both succeed

Rule violations return isError with a plain sentence

Claude reads "Marcus is already booked at that time. Call check_availability…" and recovers on its own

Tool annotations (readOnlyHint, destructiveHint)

Clients can auto-approve reads and ask before cancellations

No reschedule tool

The skill books the new slot before cancelling the old one, so a failure never leaves the customer with nothing

Node's built-in SQLite

No native build step, so it installs the same way on Windows, macOS and Linux

stdout reserved for protocol, logs to stderr

Stray console.log output is the most common way MCP servers break

Related MCP server: Travel Company MCP Server

Tools

Tool

Type

What it does

search_customers

read

Match on name, email or phone; shows last visit and upcoming bookings

get_customer

read

Profile, visit and spend totals, no-shows, 20 latest bookings

create_customer

write

Requires email or phone; blocks duplicate emails

list_services

read

Services with duration, price and qualified staff

check_availability

read

Open 15-minute start times per staff member, inside opening hours, never in the past

create_booking

write

Validates hours, staff skills and conflicts; auto-assigns a free stylist if none is named

cancel_booking

destructive

Future confirmed bookings only, reason required

list_bookings

read

Schedule for a date range, filterable by staff and status

revenue_report

read

Revenue, average ticket, no-show rate and cancellations by service, staff or day

It also provides a daily_briefing prompt for a morning summary.

Quick start

Requires Node.js 22.13 or later.

npm install
npm run build
npm test        # 31 tests: business rules + end-to-end over the MCP protocol

The first run creates data/bookings.db and fills it with demo data. Set BOOKINGS_SEED_DEMO=false to start empty, or BOOKINGS_DB_PATH to use another file.

Claude Desktop

Add to claude_desktop_config.json (Windows: %APPDATA%\Claude\, macOS: ~/Library/Application Support/Claude/), using the absolute path to this folder:

{
  "mcpServers": {
    "bookings": {
      "command": "node",
      "args": ["C:\\path\\to\\bookings-mcp\\dist\\index.js"],
      "env": { "BOOKINGS_DB_PATH": "C:\\path\\to\\bookings-mcp\\data\\bookings.db" }
    }
  }
}

Restart Claude Desktop, then add the skill: zip skills/front-desk and upload it under Customize → Skills.

Claude Code

claude mcp add bookings -- node /absolute/path/to/bookings-mcp/dist/index.js
mkdir -p .claude/skills && cp -r skills/front-desk .claude/skills/

Inspect the tools without Claude

npm run inspect

Project layout

src/
  domain.ts   business rules: availability, booking, cancellation, reports
  server.ts   MCP tool and prompt definitions (thin wrappers over domain.ts)
  db.ts       schema and transaction helper
  seed.ts     deterministic demo data
  time.ts     local-time helpers
  index.ts    stdio entry point
skills/front-desk/SKILL.md   how Claude should use the tools
test/                        vitest suites

Adapting it to a real business

Swap src/db.ts and the queries in src/domain.ts for the client's system (Google Calendar, Square, Fresha, a Postgres database or a REST API). The tool names, schemas, error messages and skill stay the same, so Claude's behaviour carries over unchanged. Opening hours live in OPENING_HOURS in src/domain.ts.

License

MIT

Available Tools

9 tools
cancel_bookingCancel bookingA
DestructiveIdempotent

Cancel a future confirmed booking. A reason is required and stored. Confirm with the user before calling.

Inputs: reason (required), booking_id (required).

check_availabilityCheck availabilityA
Read-only

Open start times for a service on a date, per qualified staff member, in 15-minute steps within opening hours. Past times are excluded. Returns closed=true on days the business is shut.

Inputs: date (required), service_id (required), staff_id.

create_bookingCreate bookingA

Book a customer for a service. If staff_id is omitted, the first qualified free staff member is assigned. Rejects past times, closed days, times outside opening hours and double-bookings. Confirm the details with the user before calling.

Inputs: start (required), service_id (required), customer_id (required), staff_id.

create_customerCreate customerA

Add a new customer. Requires a name and at least an email or phone. Fails if the email already exists.

Inputs: name (required), email, notes, phone.

get_customerGet customer profileA
Read-only

Full profile for one customer: contact details, notes, visit and spend totals, no-shows, and the 20 most recent bookings.

Inputs: customer_id (required).

list_bookingsList bookingsA
Read-only

Bookings between two dates (inclusive), with customer, phone, service, staff and status. Use for day schedules and follow-up lists. Max 500 rows.

Inputs: to (required), from (required), status, staff_id.

list_servicesList servicesA
Read-only

All bookable services with id, duration in minutes, price in USD, and which staff perform them.

Inputs: no named parameters.

revenue_reportRevenue reportA
Read-only

Revenue from completed bookings between two dates, grouped by service, staff or day, with totals, average ticket, no-show rate, cancellations, and the value of confirmed upcoming bookings in the range. Amounts in USD.

Inputs: to (required), from (required), group_by.

search_customersSearch customersA
Read-only

Find customers by part of their name, email or phone. Returns id, contact details, last visit and number of upcoming bookings. Use this before creating a customer to avoid duplicates.

Inputs: query (required), limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool targets a distinct resource and action: customer search/get/create, service listing, availability checks, booking create/cancel/list, and revenue reporting. The descriptions clearly separate the list and detail views, and list_bookings versus revenue_report are distinguished by granularity versus aggregation.

    Naming Consistency4/5

    Most tools follow a clear verb_noun pattern such as search_customers, create_booking, and cancel_booking. The main inconsistency is revenue_report, which lacks an explicit verb, and there is minor singular/plural variation like get_customer versus search_customers.

    Tool Count5/5

    Nine tools is well-scoped for a bookings domain, covering customers, services, availability, bookings, and reporting. Each tool has a clear purpose and none feel redundant or unnecessary.

    Completeness4/5

    The core booking workflow is covered: find/create customers, check availability, create/cancel bookings, and view schedules and revenue. Missing capabilities like rescheduling a booking or updating customer details are minor gaps that agents can work around, but they would require external handling.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides structured, read-mostly access to small-business back-office data including customers, invoices, and account notes, allowing Claude to query overdue invoices, revenue summaries, and more.
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables Claude to look up customers, check routes, view appointments, pull service history, and access FieldRoutes data directly in conversation.
      -