Local MCP server for developers
To use Claude with your park, follow Connect Claude to BookingFlow. You add a connector URL and sign in with your normal BookingFlow login. No API key or set-up needed.
This page is for developers who want to run the BookingFlow MCP server themselves with an API key.
BookingFlow also runs a hosted MCP server that accepts OAuth 2.1 (with PKCE and dynamic client registration). Users sign in with their BookingFlow account and grant the read scope and optionally write, and the server lists only the tools those scopes allow. Use the hosted server for anything user-facing; use the local server below for development, scripting and testing with API keys.
BookingFlow has an MCP server, so AI assistants that support the Model Context Protocol (such as Claude) can work with your park directly. For example, you can ask your assistant to:
- check availability and prices for a set of dates
- find, create, confirm, update or cancel bookings
- look up and update customer details
- record a round of electricity meter readings and generate the invoices
- summarise revenue and bookings for a period
The assistant can only do what your API key allows, and only for the park the key belongs to.
Before you start
You need:
- An API key for your park. Test keys start with
bf_test_and work against the test environment. Live keys start withbf_live_and change real bookings. Create one in the BookingFlow dashboard under Settings → API keys. The key is only shown once, so copy it straight away. See the Operations API quickstart for details. - Node.js 20 or later on the computer that runs your AI assistant.
- A copy of the BookingFlow MCP server, built with
pnpm --prefix apps/mcp build.
Keep your API key private. Anyone with the key can view and change bookings for your park. Never paste it into a chat or share it in a screenshot.
Connecting Claude Code
Run the following in a terminal, replacing the key and the path:
claude mcp add bookingflow \
-e BOOKINGFLOW_API_KEY=bf_test_xxx \
-- node /path/to/bookingflow/apps/mcp/dist/index.js
Then start Claude and ask something like "What's available for two adults and a dog next weekend?"
Connecting other assistants
Most MCP-compatible assistants, such as Claude Desktop, use a JSON configuration like this:
{
"mcpServers": {
"bookingflow": {
"command": "node",
"args": ["/path/to/bookingflow/apps/mcp/dist/index.js"],
"env": { "BOOKINGFLOW_API_KEY": "bf_test_xxx" }
}
}
}
Read-only mode
If you only want the assistant to look things up and never change anything, add BOOKINGFLOW_READ_ONLY=true to the environment:
claude mcp add bookingflow \
-e BOOKINGFLOW_API_KEY=bf_live_xxx \
-e BOOKINGFLOW_READ_ONLY=true \
-- node /path/to/bookingflow/apps/mcp/dist/index.js
In read-only mode the assistant can search, list and report. It can't create, change, cancel or delete anything.
What the assistant can do
| Area | Actions |
|---|---|
| Availability | Search availability and nightly prices, with optional date flexibility |
| Bookings | List, view, create, update, confirm and cancel |
| Customers | List, view, create, update and delete |
| Accommodation & pitches | List, view, create, update and delete |
| Caravans | List and view your static caravan stock, add caravans one at a time or paste a whole stock list, update details, assign or unassign a caravan to a pitch owner, and delete |
| Rates | View rates and set them, one at a time or in bulk |
| Meter readings | Record single readings or a whole round at once, view and delete |
| Invoices | Generate electricity invoices for one pitch or all pitches, and view them |
| Reporting | Operational stats and revenue for a period |
| Events & webhooks | View recent activity and manage webhook endpoints |
Good to know
- Deletes can be undone. Nothing the assistant deletes is lost for good. Deleted customers, meter readings and webhook endpoints go to a trash, and deleted pitches, accommodation and caravans are only marked as deleted. Ask the assistant to restore anything deleted by mistake, and it comes back exactly as it was.
- Retries are safe. If a booking or invoice request is interrupted, the assistant can retry it without creating a duplicate.
- Prices come from BookingFlow. The assistant can't set the price of a booking. BookingFlow calculates it from your rates and allocation, as it does for bookings made in the portal.
- Test first. Try a
bf_test_key before you connect a live key. - Check before confirming. Most assistants ask for your approval before they make a change. Read what the assistant is about to do before you approve it, especially cancellations and deletions.