mcp-server
v2.0.183Superblocks MCP server
A Model Context Protocol server that connects AI assistants (Claude, ChatGPT, Cursor, and other MCP clients) to the Superblocks platform. It lets AI agents inspect, create, and manage Superblocks applications on your behalf. For a beginner-friendly walkthrough, see QUICKSTART.md. ChatGPT requires an HTTPS endpoint. Start the server with the HTTP transport:
Summary extracted from the README.
Superblocks MCP Server
A Model Context Protocol server that connects AI assistants (Claude, ChatGPT, Cursor, and other MCP clients) to the Superblocks platform. It lets AI agents inspect, create, and manage Superblocks applications on your behalf.
Quick Start
For a beginner-friendly walkthrough, see QUICKSTART.md.
Via the Superblocks CLI (recommended)
# Install the Superblocks CLI
npm install -g @superblocksteam/cli
# Authenticate
superblocks login
# Start the MCP server (stdio, for Cursor / Claude Desktop)
superblocks mcp serve
# Generate configuration for your MCP client
superblocks mcp setup --client cursor
superblocks mcp setup --client claude
Standalone (development)
# From the superblocks repo root
pnpm install
pnpm turbo run build --filter @superblocksteam/mcp-server...
# Run directly
node packages/cli/packages/mcp-server/dist/index.js
Client Configuration
Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"superblocks": {
"command": "superblocks",
"args": ["mcp", "serve"]
}
}
}
Claude Desktop
Add to ~/.claude/mcp.json:
{
"mcpServers": {
"superblocks": {
"command": "superblocks",
"args": ["mcp", "serve"]
}
}
}
ChatGPT (HTTP transport)
ChatGPT requires an HTTPS endpoint. Start the server with the HTTP transport:
superblocks mcp serve --transport http --port 8484 --http-token <token>
Then expose it via a tunnel (e.g., ngrok) and configure it as a ChatGPT connector pointing to https://<your-tunnel>/mcp, sending Authorization: Bearer <token>.
Authentication
The MCP server uses the same authentication as the Superblocks CLI. After running superblocks login, the MCP server can access the same environment automatically.
For multiple environments, you can add tokens directly:
superblocks-mcp auth add --base-url https://staging.superblocks.com --token <api-key>
superblocks-mcp auth list
Auth resolution order:
- CLI auth (
~/.superblocks/auth.json) -- checked first - MCP auth store (
~/.superblocks/mcp-auth.json) -- multi-environment extension
Available Tools
get_auth_status
Check whether you are authenticated for a Superblocks environment.
get_current_user
Get the currently authenticated user for a given base_url: their identity, the organizations they belong to, and their permissions.
/users/me also serves the browser UI, so this tool returns a projection of it rather than the whole payload, which exceeded MCP client result-size limits. Omitted: the LaunchDarkly flagBootstrap blob and onboarding-gate state (browser-only), the organization API key and per-agent keys (credentials do not belong in an LLM transcript), and the agent, profile, group, and billing lists (unbounded in size). Use list_organization_agents for agent details.
get_application_summary
Fetch application metadata: ID, name, organization, app mode (1.0 / 2.0), deployed commit, environment, and App Database status (app_database.has_database, overall_state, needs_attention; an application without a database never needs attention, and its overall_state says whether one could be added). app_databases_availability is available, disabled (the organization has App Databases turned off), unsupported (the server predates the App Databases routes), or error (the App Databases read failed; app_databases_error carries the message); app_database is null in the last three cases and the summary itself still succeeds.
get_application_commit_history
Paginated, reverse-chronological commit history with committer details and DBFS hashes.
get_audit_events
Fetch v2 audit events in OCSF format with cursor pagination. Supports filters for class, status, severity, actor, resource, and full-text search.
Audit tool guidance
- Use
get_audit_eventsfor all audit investigations. get_audit_eventscovers a broad set of operations, including:- Applications
- APIs / Workflows
- Folders
- Integrations
- Users & Groups
- RBAC
- SCIM
- Tokens
- Billing
- OAuth
- Organization settings
- Files
- Profiles
- Repositories
- Knowledge
- Credentials
get_integration_access
List all users and groups that have access to an integration, including assigned roles and effective permissions.
get_application_structure
Lightweight application view. For 1.0 apps: page and API summary. For 2.0 apps: directory tree and checkout metadata (checkout_path is null when a temporary checkout is used and cleaned up).
checkout_application
Materialize a Clark AI App (2.0) to disk. 1.0 apps are rejected. Supports historical snapshots via commit_id.
Deployment
deploy_application- deploy an application using eitherapp_urlorapplication_id+base_url(optionally withcommit_id)
Integration Management
get_integration- fetch an integration by IDget_integration_config_schema- JSON schema for a plugin's configurationcreate_integration- create an integration from name, plugin_id, and configuration; returnsintegration_urlwhen the dashboard shares the API origindelete_integration- delete an integration by IDget_integration_access- list users/groups with integration access
list_integrations rows carry managed_by, application_id, and user_editable. Integrations with managed_by: "database_lifecycle" back an App Database: they belong to one application and the server refuses update_integration and delete_integration on them.
Folder Management
list_folders- list folderscreate_folder- create a folderupdate_folder- rename a folderdelete_folder- delete a folder
RBAC Assignment Management
get_workflow_access- list users/groups with access to a workflowget_job_access- list users/groups with access to a scheduled joblist_rbac_assignments- list RBAC assignments for a specific resourcegrant_resource_access- create RBAC assignmentsupdate_resource_access- update a specific assignmentrevoke_resource_access- delete a specific assignment
Billing Management
list_builder_seats- list builder seat assignmentsassign_builder_seat- assign a seat to a userunassign_builder_seat- remove a seat from a userupdate_subscription- update subscription settings (payload passthrough)create_checkout_session- create a checkout session (payload passthrough)create_billing_intent- initialize a billing/payment intentsubmit_payment- submit payment details (payload passthrough)check_promo- validate a promo codedowngrade_plan- downgrade to free plancontact_sales- submit a sales-contact request (payload passthrough)
Agent + Git Helpers
list_organization_agents- list organization agentsget_git_fresh_token- get a fresh Git credential token for app + host
Derived Analytics and Search
find_apps_by_package- query app package usage index for declaredpackage.jsondependency usagelist_packages_by_app- reverse offind_apps_by_package: given an application_id, list the indexed packages used by that applist_distinct_packages_in_org- org-wide aggregate sibling: returns one row per distinctpackage_nameacross the org's package-usage index, withversions[],app_count,deployed_app_count, and a boundedsample_app_ids[](≤10). Use this to enumerate the org's full package footprint in a single call (e.g. reconciling against a CVE feed or external registry) instead of pagingfind_apps_by_packageper package.
App Mode Coverage Notes
- Multi-page (1.0) apps expose structured page/API metadata directly.
- Code-mode (2.0) apps are file-based; some tools query server indexes instead of local checkout scans.
find_apps_by_package,list_packages_by_app, andlist_distinct_packages_in_orgall query the samepackage-usageindex and support optionaldeployedfiltering:- omitted: search all indexed commits
true: deployed commits onlyfalse: non-deployed commits only
find_apps_by_packagereturns commit-level matches (commit_id,is_deployed) and does exact declared-string matching; it does not represent resolved lockfile versions.list_packages_by_appreturns one row per (commit_id, package_name) for the given app. Usecommit_idto scope to a single commit, ordeployed=trueto limit to the currently-deployed bundle's packages. Supports optionalpackage_name,package_version,package_version_resolved, anddependency_sourcefilters.list_distinct_packages_in_orgcollapses to one row perpackage_name(no per-app or per-commit fan-out). Supportspackage_name_prefix(literal prefix via Postgresstarts_with()—%and_are not wildcards),dependency_source(root/direct/transitive), anddeployed.sample_app_idsis a deterministic, bounded sample (≤10, ordered byapplication_id); usefind_apps_by_packageto enumerate the full app set for a given package.
App Databases
Read-only view of the App Databases the organization has provisioned. Every tool except get_application_database_compatibility requires the app_databases:manage permission (Admin and Owner by default), and all of them require App Databases to be enabled for the organization.
get_app_databases_overview- org-wide rollup:database_record_count(every binding record the server holds, retired ones included; the server only resolves retirement per returned page, so there is no live count yet), per data tag how many apps and instances it has and whether a lifecycle agent serves it, every physical instance with capacity and per-state database counts, advertised physical pools, and which pools/data tags can be provisioned right nowlist_app_databases- one row per database with its application, data tag, engine, lifecycle/migration state, hosting instance, integration, connection host/port/database, and last error. Retired databases (retired_atset) are left out unlessinclude_retiredis true; because the server cannot filter them before paginating, the tool reads further server pages (up to 10 per call) until the requested page of active rows is full.offset/next_offsetcount server records, retired included, andtotal_countis the server's record countlist_app_database_pools- every physical pool(agent_name, engine), including pools still provisioning or whose last run failed, with its registered instances and latest provisioning runget_app_database_pool_provisioning_run- poll one provisioning run byprovisioning_idget_application_database_compatibility- whether one application's App Database can be served on every data tag it can run under (has_database,overall_state,needs_attention, the same verdict fields asget_application_summary), plusdata_tagswith the lifecycle operations missing per tag. For an application without an App Database,needs_attentionis always false (there is nothing to fix) andoverall_statesays whether a database could be added, which is what the server's create gate checks. Readable by anyone who can view the application
Provider diagnostics (raw Terraform output) are dropped from last_error and provisioning errors; the App Databases admin page shows them on demand. Mutating operations (provision, retry, retire) are intentionally not exposed yet.
Existing tools also surface App Database facts: list_applications reports has_app_database per row and accepts a has_app_database filter, get_application_summary includes an app_database status block, and list_integrations marks the integrations an App Database owns (see above). The first two carry app_databases_availability so an agent can tell available from disabled (organization has the feature off), unsupported (older server without the routes), error (the App Databases read failed; see app_databases_error), or not_checked (empty page, nothing to decorate). An App Databases failure never fails the application list or summary; only the has_app_database filter, which cannot be answered without it, rejects. The dedicated App Databases tools surface those conditions as errors instead.
Tool Annotations
All tools include MCP tool annotations so clients can make informed decisions about auto-approval:
- Read-only tools (
get_auth_status,get_application_summary, etc.) are marked withreadOnlyHint: true checkout_applicationwrites to disk but is non-destructive (destructiveHint: false)
Transports
| Transport | Use case | Command |
|---|---|---|
| stdio (default) | Cursor, Claude Desktop, local MCP clients | superblocks mcp serve |
| HTTP | ChatGPT, remote clients | superblocks mcp serve --transport http --port 8484 --http-token <token> |
The HTTP transport binds to 127.0.0.1 by default.
For security, HTTP transport requires an authentication token. Provide it via --http-token or SUPERBLOCKS_MCP_HTTP_TOKEN.
Environment Hints
The server recognizes these Superblocks environments from URLs:
app.superblocks.com/app.superblockshq.com→prodeu.superblocks.com/prod-eu.superblocks.com→prod-eustaging.superblocks.com→stagingpr-*.superblocks.dev→ephemerallocalhost/127.0.0.1→local
Unknown URLs still work as long as auth is configured for that base URL.
Troubleshooting
"Not authenticated" errors
# Check which environments are configured
superblocks-mcp auth list
# Re-authenticate via CLI
superblocks login
# Or add a token for a specific environment
superblocks-mcp auth add --base-url <url> --token <api-key>
Server won't start
- Ensure
nodeis on your PATH (Node.js >= 24) - Rebuild:
pnpm turbo run build --filter @superblocksteam/mcp-server... - Test standalone:
superblocks mcp serve --help