@selibiks/bubble-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@selibiks/bubble-mcp search for users who signed up last month"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@selibiks/bubble-mcp
MCP server for Bubble.io with 28 tools across 3 layers — query data, audit schemas, seed test records, and more.
Quick Start
# Install dependencies
npm install
# Build
npm run build
# Start (requires configuration — see below)
npm startRelated MCP server: Supabase MCP
Configuration
Environment Variables
BUBBLE_APP_URL=https://your-app.bubbleapps.io
BUBBLE_API_TOKEN=your-api-token-here
BUBBLE_MODE=read-only
BUBBLE_ENVIRONMENT=development
BUBBLE_RATE_LIMIT=60Variable | Required | Default | Description |
| Yes | — | Your Bubble.io app URL |
| Yes | — | API token from Bubble.io Settings > API |
| No |
|
|
| No |
|
|
| No |
| Max requests per minute |
Config File Alternative
Create bubble.config.json in the project root:
{
"app_url": "https://your-app.bubbleapps.io",
"api_token": "your-api-token-here",
"mode": "read-only",
"environment": "development",
"rate_limit": 60
}Environment variables take priority over the config file.
Claude Desktop / Claude Code Integration
Add to your Claude configuration:
{
"mcpServers": {
"bubble": {
"command": "node",
"args": ["/path/to/bubble-mcp/dist/index.js"],
"env": {
"BUBBLE_APP_URL": "https://your-app.bubbleapps.io",
"BUBBLE_API_TOKEN": "your-api-token-here",
"BUBBLE_MODE": "read-only",
"BUBBLE_ENVIRONMENT": "development"
}
}
}
}Or via the CLI:
claude mcp add bubble -- node /path/to/bubble-mcp/dist/index.jsSecurity Model
Three-layer defence in depth:
Layer | What it does |
Server Mode Gate | Filters tools by mode at startup ( |
MCP Permissions | Claude prompts user approval before each tool invocation |
Bubble Privacy Rules | Bubble.io enforces API-level access via the token's permissions |
Input validation: All user-supplied identifiers (dataType, id, sort_field, workflow_name) are validated against safe character patterns before reaching API URLs. File paths (TDD tools) are sandboxed to the project directory.
Token safety: The API token is never exposed in responses or error messages. The bubble_get_environment tool explicitly excludes it.
Mode Reference
Capability | read-only | read-write | admin |
Query data (search, get) | Yes | Yes | Yes |
Inspect schema / Swagger docs | Yes | Yes | Yes |
Create / update records | No | Yes | Yes |
Trigger workflows | No | Yes | Yes |
Delete records | No | No | Yes |
Bulk operations | No | No | Yes |
Seed / cleanup test data | No | No | Yes |
Tool Reference (28 tools)
Core Tools (11)
Tool | Mode | Description |
| read-only | Fetch the full app schema (all types and fields) from |
| read-only | Search records with constraints, sorting, and pagination |
| read-only | Fetch a single record by type and ID |
| read-write | Create a new record |
| read-write | Partially update a record (PATCH) |
| read-write | Replace a record entirely (PUT) |
| admin | Permanently delete a record |
| admin | Create up to 1000 records in one call |
| read-write | Trigger a backend API workflow by name |
| read-only | Return current server config (mode, environment, rate limit) |
| read-only | Fetch the Swagger/OpenAPI spec for the connected app |
Compound Tools (7)
Tool | Mode | Description |
| read-only | Type counts, relationships, and totals (lightweight vs full schema) |
| read-only | Scan schema for sensitive fields, PII, and API write exposure |
| read-only | Find records with broken foreign key references |
| read-only | Sample records and check for empty/null fields |
| read-only | Auto-paginate through all records of a type (up to 10k) |
| read-only | Analyse field population rates and identify dead fields |
| read-only | Diff schemas between development and live environments |
Developer Tools (10)
Tool | Mode | Description |
| read-only | Privacy audit + dead field detection with a 0-100 score |
| read-only | Export schema as TDD-format markdown |
| read-only | List all API workflows and their parameters |
| read-only | Validate a TDD markdown file against the live schema |
| read-only | Generate ordered migration steps from a TDD file |
| read-only | Estimate Workload Units for a Bubble operation |
| read-only | Suggest fields that would benefit from indexes |
| read-only | Find text fields that should be option sets |
| admin | Seed test data in dependency order (tracked for cleanup) |
| admin | Delete all previously seeded test data |
Swagger / OpenAPI
The bubble_swagger_docs tool fetches the auto-generated Swagger spec from your Bubble app:
https://your-app.bubbleapps.io/api/1.1/meta/swagger.jsonIf you get an error, enable Swagger docs in Bubble: Settings > API > Enable Swagger documentation.
Development
npm install # Install dependencies
npm run dev # Development mode (tsx, no build needed)
npm run build # Compile TypeScript to dist/
npm test # Run all tests (179 tests)
npm run test:watch # Tests in watch mode
npm run lint # ESLint
npm run format # Prettier
npm run typecheck # tsc --noEmitDefaults
Setting | Default | Why |
Mode |
| Safe — no mutations possible |
Environment |
| Safe — won't touch production |
Rate limit | 60 req/min | Prevents API abuse |
License
MIT
Available Tools
20 toolsbubble_compare_environmentsARead-onlyIdempotent
Compares the schema between development and live Bubble environments. Detects new types, removed types, new/removed fields, and changed field types.
Inputs: no named parameters.
bubble_export_schemaARead-onlyIdempotent
Exports the Bubble.io schema as TDD-format markdown, including an entity summary table and detailed field specifications.
Inputs: no named parameters.
bubble_field_usageARead-onlyIdempotent
Samples records of a Bubble data type and calculates field population rates. Identifies dead fields (populated in less than 5% of records).
Inputs: dataType (required), sample_size.
bubble_find_orphansARead-onlyIdempotent
Scans records for broken references (orphaned foreign keys). Samples records and checks that each reference field points to an existing record.
Inputs: dataType, sample_size.
bubble_getARead-onlyIdempotent
Retrieve a single Bubble.io data object by its data type and unique ID.
Inputs: id (required), dataType (required).
bubble_get_environmentARead-onlyIdempotent
Return the current server environment configuration: app URL, environment, mode, and rate limit. The API token is never exposed.
Inputs: no named parameters.
bubble_get_schemaARead-onlyIdempotent
Retrieve the full Bubble.io app schema from the /meta endpoint, listing all data types and their fields.
Inputs: no named parameters.
bubble_health_checkARead-onlyIdempotent
Comprehensive health check combining privacy audit and dead field detection. Returns a score (0-100), section breakdowns, and top recommendations.
Inputs: no named parameters.
bubble_migration_planARead-onlyIdempotent
Generates an ordered migration plan comparing a target TDD file against the live Bubble.io schema. Produces add_field, create_type, and remove_field steps.
Inputs: tdd_path (required).
bubble_option_set_auditARead-onlyIdempotent
Scans text fields across all data types and identifies fields that should be converted to Bubble option sets based on low cardinality.
Inputs: no named parameters.
bubble_privacy_auditARead-onlyIdempotent
Audits the Bubble.io schema for privacy risks: sensitive fields, PII exposure, and API write access. Returns a score (0–100) and a list of issues.
Inputs: no named parameters.
bubble_record_validatorARead-onlyIdempotent
Validates records of a given Bubble data type by sampling and checking for empty or null fields and fully empty records.
Inputs: dataType (required), sample_size.
bubble_schema_summaryARead-onlyIdempotent
Fetches the Bubble.io schema and returns a human-readable summary: types, field counts, and detected relationships between data types.
Inputs: no named parameters.
bubble_searchARead-onlyIdempotent
Search Bubble.io data objects of a given type with optional constraints, sorting, and pagination.
Inputs: dataType (required), limit, cursor, descending, +3 more.
bubble_search_allARead-onlyIdempotent
Auto-paginates through all records of a Bubble data type, up to a configurable max. Returns combined results with a capped flag if the limit was hit.
Inputs: dataType (required), descending, sort_field, constraints, +1 more.
bubble_suggest_indexesARead-onlyIdempotent
Analyses the Bubble.io schema and record counts to suggest fields that would benefit from database indexes.
Inputs: no named parameters.
bubble_swagger_docsARead-onlyIdempotent
Fetches the Swagger/OpenAPI spec for the connected Bubble.io app. Returns available API endpoints, data types, and their schemas. Use this to understand what operations and fields are available before making API calls.
Inputs: no named parameters.
bubble_tdd_validateARead-onlyIdempotent
Validates a TDD markdown file against the live Bubble.io schema. Reports missing types, missing fields, type mismatches, and extra fields.
Inputs: tdd_path (required).
bubble_workflow_mapARead-onlyIdempotent
Lists all API workflows defined in the Bubble.io app schema. Returns workflow names and parameters.
Inputs: no named parameters.
bubble_wu_estimateARead-onlyIdempotent
Estimates Workload Units (WU) for a Bubble.io operation. Scales search estimates by dataset size and flags expensive patterns.
Inputs: dataType (required), operation (required), constraints.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Most tools have clear, distinct purposes. Some overlap exists between schema retrieval tools (get_schema, schema_summary, export_schema) and record analysis tools (field_usage, record_validator, find_orphans), but descriptions clarify format and intent. bubble_search and bubble_search_all are related but differentiated by pagination behavior.
All tools follow the consistent pattern 'bubble_<verb>_<noun>' (e.g., bubble_get_schema, bubble_privacy_audit, bubble_suggest_indexes). Verbs are descriptive and nouns are domain-specific. No mixed conventions or irregular forms.
20 tools is on the higher end but justified for a comprehensive Bubble.io management server covering schema analysis, data operations, validation, and audits. Each tool addresses a distinct aspect of the platform, so the count feels reasonable rather than bloated.
The toolset covers schema retrieval, data reading, validation, migration planning, performance analysis, and auditing. Missing CRUD operations (create/update/delete) for data objects, but the server's focus appears to be analysis and schema management, not data mutation. The coverage is largely complete for that stated purpose.
Related MCP Connectors
Hosted MCP server for AI-driven data ops. Create apps, manage schemas, and CRUD structured data.
Butterbase MCP server — manage your backend: schemas, auth, functions, storage, RAG, deploys.
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA secure multi-database MCP server supporting MySQL, PostgreSQL, and SQLite with read-only enforcement, SQL injection prevention, and tools for schema analysis, performance optimization, and visualization.4-
- AlicenseNot gradedqualityDmaintenanceMCP server for Supabase, enabling database CRUD, storage management, auth administration, project management, edge functions, and secrets via 31 tools.9 npmMIT
- AlicenseBqualityCmaintenanceMCP server providing backend access to PostgreSQL, Storage (Supabase/S3), Iceberg data lake, and SQL seeds. It offers 32 tools for database queries, storage operations, seed management, and more.313MIT
- AlicenseBqualityDmaintenanceMCP server for Meta Ads providing 30 tools for account discovery, campaign management, targeting research, and insights. Designed with LLM-friendly outputs and productivity features like cloning and bulk operations.311MIT