ClaudeClaude CodeAI-native booking

A Claude Code booking system, set up from your terminal without a single availability table.

Claude Code uses the Slotr MCP server to create your bookable entities and pricing rules, then writes app code against the SDK. You review a diff, not a scheduling engine.

  • Entities.

    Your domain, synced. Doctors, rooms, courts, cars — anything.

  • Availability.

    Ask when something can be booked. Get the real answer.

  • Rules.

    Pricing and eligibility that follow your business logic.

  • Quotes.

    Know the price before the booking exists, with reasons.

  • Lifecycle.

    Create, confirm, reschedule, cancel. One API, safe by default.

  • No double-booking.

    Locks and slot holds, so every slot has exactly one owner.

  • Booking search.

    Your entities, indexed. Search by price, distance and real availability.

  • AI recommendations.

    Suggests the best booking using your rules, prices and availability.

How it works

From prompt to bookable app in one session. Setup through MCP, runtime through the SDK.

  1. 1

    Connect the Slotr MCP server

    Register the Slotr MCP server in your project's MCP configuration. Claude Code then sees tools such as slotr_upsert_entity, slotr_create_rule, slotr_availability and slotr_quote next to its file and shell tools.

  2. 2

    Describe your domain in plain words

    Tell Claude Code what can be booked, who books it and how prices change. It maps that to bookables, participants and rules instead of inventing a schema.

    > Our app books bike repair slots at partner workshops.
      Workshops are bookable, riders are participants.
      Full service takes 90 min, e-bikes cost $25 more,
      and Saturday slots are 10% more expensive.
  3. 3

    Let the agent create entities and rules

    Claude Code calls the MCP tools to upsert workshops and create the pricing rules. Each rule lands in the Rules Engine as data you can read and edit in the Console.

    slotr_create_rule
      appliesTo: { type: "workshop" }
      when: [{ bike: { eq: "e-bike" } }]
      then: { price: "+$25" }
    → rule created · r_e_bike_surcharge
  4. 4

    Wire the app with the SDK

    For runtime paths, Claude Code writes ordinary SDK calls in your route handlers. Availability, quotes and bookings come from Slotr, so the generated code stays short and easy to review.

  5. 5

    Check a quote before you commit

    Ask Claude Code to quote a real case through slotr_quote. The breakdown shows which rules fired, so you can confirm the setup matches what you asked for.

    > Quote a full service for an e-bike this Saturday.
    
    slotr_quote → $137.50
      Full service           $100.00
      e-bike surcharge       + $25.00
      Saturday +10%          + $12.50
Less to generate

What your agent doesn't have to build. And what you don't have to review line by line.

  • 01

    Availability tables and migrations

    Left alone, Claude Code will write a slots table, a bookings table and a migration to keep them aligned. Every new rule then touches that schema, and every change is a migration you have to read carefully.

  • 02

    Locks it can't test locally

    Two riders grabbing the last Saturday slot is a race condition. Agents write plausible transaction code, but a single-user dev server never exercises it, so the bug ships and shows up as a double booking.

  • 03

    Pricing scattered across files

    Surcharges end up in a handler, discounts in a helper and weekend logic in the frontend. Slotr keeps each one as a rule with a name, so a quote always comes from one place.

  • 04

    A search stack on day one

    Matching "e-bike service near me this weekend" means parsing intent, filtering by attributes and checking real availability. Without Slotr that is a separate search service the agent has to stand up and keep in sync.

  • 05

    Calendar OAuth plumbing

    Workshops already keep Google Calendar or Outlook. Syncing those calendars means token refresh, webhooks and conflict handling, which is a lot of generated code for something that should be a setting.

  • 06

    Reschedule and cancel edge cases

    Moving a booking has to release the old slot, hold the new one and recalculate the price. Slotr's lifecycle covers create, confirm, reschedule and cancel, so the agent calls it instead of reinventing it.

SDK

The code Claude Code writes is short. Because the engine lives in Slotr.

Drop it into your product. No per-provider accounts, no iframes — your database stays the source of truth.

Route handler
// app/api/slots/route.ts
const slots = await slotr.availability.query({
  type: "workshop",
  from: "2026-11-07",
  to: "2026-11-08"
});

const quote = await slotr.quotes.create({
  bookable: slots[0].bookable,
  service: "full-service",
  bike: "e-bike"
}); // → { total, breakdown }
Book
await slotr.bookings.create({
  bookable: "w_412",
  participant: "r_903",
  start: "2026-11-07T09:30:00Z"
});
Webhook
// booking.rescheduled
if (event.type === "booking.rescheduled") {
  await notifyRider(event.data.participant, event.data.start);
}
Rules applied, slot held, booking confirmed. The agent wrote the glue.
Booking Kit

Skip the calendar UI prompt. Drop in a component that already knows the rules.

Claude Code can render the Booking Kit calendar in one line, or build a custom UI on the headless mode. Either way, prices and open slots come from the same engine.

Accent
Corners
Theme
<SlotrBooking
  bookable="therapist_42"
  accent="#A3C4B5"
  radius="soft"
  theme="dark"
/>
NC
Northside CyclesFull service · e-bike
90 minIn personEurope/Amsterdam
90 min$125
October 2026
SunMonTueWedThuFriSat
Tue 6th
Guide

How to build booking with Claude Code

Split the work: MCP for setup, SDK for runtime

The cleanest Claude Code workflow uses two surfaces. The MCP server is for configuration: creating entity types, syncing a first batch of bookables and writing pricing rules. The SDK is for the code your users hit: availability queries, quotes, bookings and lifecycle changes.

Keeping that split means the agent never has to generate code that defines your pricing. It configures Slotr once through tools, then writes small, readable calls in your app. When you review the pull request, the diff is about your product, not about slot math.

Describe rules in domain terms

Claude Code produces better rules when the prompt uses the words your business uses. "E-bikes cost $25 more" and "Saturday is 10% more expensive" map directly to a condition and an action. Vague prompts like "add dynamic pricing" leave the agent guessing.

Ask for one rule per sentence and have the agent read back what it created. Every rule has a name, a trigger, conditions and actions, so a quick slotr_quote call on a real case tells you whether the setup does what you meant.

Keep your database as the source of truth

Slotr does not replace your app database. Workshops, riders and services still live in your tables; Slotr indexes the attributes booking needs, such as services offered, bike types and opening hours. A good instruction for Claude Code is to upsert entities whenever your own records change, so availability always reflects current data.

Where Claude Code still writes code

Slotr removes the engine, not the product. Claude Code still builds your signup flow, the workshop profile pages, the rider dashboard and any custom booking screens if you go headless instead of using the Booking Kit. It also writes the handlers that react to Slotr events, such as sending a WhatsApp or email confirmation when booking.confirmed arrives. That is the code worth spending review time on, because it is what makes your app different.

What to watch in agent-generated booking code

Check that the agent never computes a price on the client and sends it back to the server. The amount should always come from a quote. Also check that bookings are created from a fresh availability result rather than a cached list, since Slotr's holds only protect a slot that is still open.

Finally, look for webhook handlers. Reminders, confirmations and reschedules arrive as events like booking.reminder and booking.rescheduled, which is where Claude Code should hook in emails or messages.

Questions about Claude Code and Slotr

Can Claude Code build a full booking system with Slotr?

Yes. Claude Code configures Slotr through the MCP server, creating entities and pricing rules, and writes SDK calls for availability, quotes and bookings in your app. The booking engine itself, including conflict protection and the lifecycle, runs in Slotr.

What can Claude Code do through the Slotr MCP server?

It can upsert entities, create rules, query availability, request quotes, search and create bookings. The tools are slotr_upsert_entity, slotr_create_rule, slotr_availability, slotr_quote, slotr_search and slotr_book. Rules and availability still decide what is allowed.

Do I need both the MCP server and the SDK?

Usually, yes. Use the MCP server while building, so the agent can configure Slotr and test quotes from the terminal. Use the SDK in your application code, because your production app should call Slotr directly rather than through an agent.

Will Claude Code put pricing logic in my codebase?

It shouldn't need to. Pricing lives in the Rules Engine as named rules with conditions and actions. Your code requests a quote and gets back a total with its breakdown, so prices are never recomputed in handlers or on the client.

How do I check what the agent configured?

Ask Claude Code to run slotr_quote on a real case and read the breakdown, or open the Console. The Rules Engine view lists every rule the agent created, and Query lets you test searches against your indexed entities.

Does the same setup work with other coding agents?

Yes. The MCP server and SDK are not tied to Claude Code. Cursor, Codex and other agents that support MCP can use the same tools, and Slotr also has plugins for Lovable, v0, Bolt and Replit.

When can I use Slotr with Claude Code?

Slotr is pre-launch and opening access in stages. Join the waitlist and mention Claude Code, and you will hear when the MCP server and SDK are available for your project.

Let the agent wire it in. Keep the engine out of your repo.

Join the waitlist for early access to Slotr with Claude Code.