AI app builder · Updated
Add Bookare booking to a v0 app
Connect Bookare to v0 as a custom MCP server so it can set up the venue and add the timetable or booking widget to the app it generates.
v0 can use Bookare’s tools while it generates your app: it creates and sets up the booking side (classes, services, tables or rooms, prices, opening hours) and adds the booking widget to the pages. The app v0 makes does not call Bookare’s tools itself; it only shows the widget and links to the booking page.
Before you start
- No Bookare venue yet? Connect Bookare’s public server,
https://bookare.app/mcp. It needs no account and no key. v0 creates the venue as a draft for the owner and gives you a claim link at the end. Nothing opens to customers until the owner confirms with a code sent to their email and accepts the terms. Drafts that are not claimed within 14 days are deleted. - Already on Bookare? You do not need a connection. In Bookare, open Settings → Link and domain, copy the code under Booking inside your website, and paste it into your prompt. To let v0 read and change your venue as well, connect your venue’s own server,
https://yourvenue.bookare.app/mcp, with OAuth, or with a Bearer Token: an API key from Settings → Assistant and API → API key (advanced).
1. Add Bookare as a custom MCP server
- Open the + menu in the prompt form and select MCPs.
- Configure a custom MCP server (not a preset) with the address
https://bookare.app/mcp. - Authentication: No Auth for
bookare.app/mcp; OAuth or Bearer Token for your own venue's address.
Official docs: MCP Integrations in v0.
2. Example prompt
Build a website for "Taverna Thalassa", a seaside restaurant in Naxos.
Use the Bookare MCP for table booking. Do not build your own booking system.
1. Check that the Bookare address "taverna-thalassa" is free.
2. Create the venue for the owner: <owner name>, <owner email>.
3. Set it up from the restaurant template, then change it to our real tables,
opening hours and booking rules: <your details>.
4. Call get_embed_code. Put the tables widget on a "Reservations" page and a
"Book a table" button to the booking page in the header.
5. At the end, give me the claim link.
3. How the widget goes into a Next.js or React app
React does not run a <script> tag written in JSX. Ask v0 to load the widget in a client component, like this:
'use client';
import { useEffect, useRef } from 'react';
export function BookareWidget({ venue, view }: { venue: string; view: string }) {
const box = useRef<HTMLDivElement>(null);
useEffect(() => {
const el = box.current;
if (!el) return;
const s = document.createElement('script');
s.src = 'https://bookare.app/embed.js';
s.async = true;
s.dataset.venue = venue; // e.g. "taverna-thalassa"
s.dataset.view = view; // timetable, packs, services, tables or stays
el.appendChild(s);
return () => { el.innerHTML = ''; };
}, [venue, view]);
return <div ref={box} />;
}
The widget shows live information and resizes itself. Every “Book” button opens the venue’s booking page in a new tab, where customers sign in and pay.
More on the widget: The booking widget and links. All guides: Add Bookare booking to your site.