MetorialDocs

Set up Bubble in Metorial for Claude, ChatGPT and Cursor

Share Bubble with your team in Claude, ChatGPT and Cursor through Metorial: API token sign-in, 10 tools (4 read-only).

To give your team Bubble in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Bubble integration in a Metorial portal, and each person connects with an API token. Agents can read and manage exposed Bubble data records, search with native filters, invoke configured API workflows, discover API schemas and download bounded JSON exports. The integration has 10 tools, 4 read-only, 3 write and 3 destructive, plus 2 triggers.

What you'll learn

  • How an admin shares Bubble in a portal and how each person connects
  • What Bubble asks for when you connect, and where to find it
  • How to keep the 4 read-only tools and reject the other 6

Before you start

Sign-in methods

MethodTypeWhat a person provides
API Token (default)API tokentoken

Also available: Public API.

The portal and metorial setup use API Token unless someone picks another method.

API Token

To connect, a person enters:

  • token: Bubble Admin API Token. Generate one in Settings → API in the Bubble editor.

Setup settings

Setup also asks for:

  • appBaseUrl: The base URL of your Bubble application API, e.g. "https://appname.bubbleapps.io/api/1.1" or "https://yourdomain.com/api/1.1". Must include the /api/1.1 path.

Admin: share Bubble in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Bubble. Under Auth Method, keep API Token or pick another. For how members connect, choose Each person connects so everyone enters their own API token, or Shared connection to enter one API token for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Bubble.

Choose who gets it

Add the access groups that should see Bubble. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Bubble integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search bubble

Employee: connect Bubble

In the portal

Open Bubble in the catalog

Sign in to your portal and open Bubble. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API token (token).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search bubble
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses API Token. To connect with Public API instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your Bubble connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list bubble
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 4 read-only tools, such as get_record and get_api_spec, and lose the 3 write tools, such as create_record or update_record, and the 3 destructive tools, such as delete_record or replace_record.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list bubble
metorial tools <integration-id>
metorial call <integration-id> get_api_spec -d '{}'

metorial tools lists the 10 tools, minus any you rejected. get_api_spec takes no input. It retrieves the auto-generated Swagger/OpenAPI specification for a Bubble application.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (4)

  • export_records: Download a bounded JSON export of records visible through the Bubble Data API, with native filters and sorting.
  • get_record: Retrieve a single record by its unique ID from a Bubble data type. Needs dataType and recordId.
  • get_api_spec: Retrieve the auto-generated Swagger/OpenAPI specification for a Bubble application.
  • search_records: Search and filter records in a Bubble data type. Needs dataType.

Write tools (3)

  • update_record: Update specific fields of an existing record in a Bubble data type. Needs dataType, recordId and fields.
  • create_record: Create a new record in a Bubble application data type (table). Needs dataType and fields.
  • bulk_create_records: Create multiple records in a Bubble data type in a single request. Needs dataType and records.

Destructive tools (3)

  • delete_record: Permanently delete a record from a Bubble data type by its unique ID. Needs dataType and recordId.
  • trigger_workflow: Trigger a server-side API workflow in a Bubble application. Needs workflowName.
  • replace_record: Fully replace all fields of an existing record in a Bubble data type. Needs dataType, recordId and fields.

Triggers

Bubble has 2 triggers, which fire on events in Bubble:

  • record_changes: Detects new and modified records across all exposed Bubble data types by polling.
  • inbound_webhook

Next steps