Skip to main content
Glama

CubiBase Agent Toolkit

cubibase/cubibase-agent MCP server

Public monorepo for the CubiBase agent-facing packages. CubiBase is a PostgreSQL backend platform (database, auth, REST/RPC data API, functions, storage) — these packages let AI agents and developers operate it end to end.

Package

Purpose

@cubibasehq/client

Typed TypeScript client for the Control API and project Data API. Structured errors with stable codes and Retry-After.

@cubibasehq/mcp

Model Context Protocol server (stdio) with 93 tools: projects, full schema (tables, columns, policies, triggers, indexes, types, views), rows, SQL, storage uploads and signed links, function deployments/secrets/triggers, messaging (SMTP, branding, email templates, transactional sends), notifications, logs, Data API, and offline docs search. Read-only mode (CUBIBASE_READ_ONLY=1) and feature groups (CUBIBASE_FEATURES).

@cubibasehq/cli

cubibase CLI with JSON output and the same console parity, built for scripting and agents.

Agent skill

The canonical skill lives in github.com/cubibase/skills (Agent Skills format): cubibase/SKILL.md plus references/ (pricing, API). The same skill ships inside @cubibasehq/mcp and @cubibasehq/cli as SKILL.md, and is served at https://cubibase.com/SKILL.md.

Related MCP server: Supabase MCP Server

Authentication

Create a personal access token (cb_pat_...) in the console under Account → Access tokens (scopes: read < write < admin, optional project restriction and expiry). Use it as Authorization: Bearer on the Control API.

For Data API access as a trusted server, create a secret key (cb_sec_...) under the project's API keys. It acts as the service actor (cubibase.role = 'service'); row-level security still applies — grant access with policies like cubibase.current_role() = 'service'.

Install in your AI tool

Add CubiBase MCP server to Cursor

Cursor: the button adds the server with CUBIBASE_TOKEN read from your environment (${env:CUBIBASE_TOKEN}), so no secret is embedded in the link. Set CUBIBASE_TOKEN in your shell profile and restart Cursor.

Claude Code (plugin: MCP server + CubiBase skill):

/plugin marketplace add cubibase/cubibase-agent
/plugin install cubibase@cubibase

Claude Code prompts for your personal access token (stored in secure storage) when the plugin is enabled.

Claude Code without the plugin:

claude mcp add cubibase -e CUBIBASE_TOKEN=cb_pat_... -- npx -y @cubibasehq/mcp

MCP quick start

{
  "mcpServers": {
    "cubibase": {
      "command": "npx",
      "args": ["-y", "@cubibasehq/mcp"],
      "env": {
        "CUBIBASE_TOKEN": "cb_pat_...",
        "CUBIBASE_SERVICE_KEY": "cb_sec_... (optional, enables Data API + messaging send/read tools)"
      }
    }
  }
}

CLI quick start

npm install -g @cubibasehq/cli
export CUBIBASE_TOKEN=cb_pat_...
cubibase projects list
cubibase tables list <projectId>
cubibase rows list <projectId> notes --filter status=eq.active --limit 10
cubibase sql <projectId> 'select count(*) from notes'
cubibase storage upload <projectId> --bucket avatars --path u1.png --file ./u1.png
cubibase functions deploy <projectId> hello

Development

npm install
npm run build
npm test
npm run lint
node scripts/sync-docs.mjs   # refresh the bundled docs-search corpus from the website content

Docs: https://cubibase.com/docs · Agent guide: https://cubibase.com/docs/agents

MIT © CubiBase

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      This server enables interaction with Supabase PostgreSQL databases through the MCP protocol, allowing seamless integration with Cursor and Windsurf IDEs for secure and validated database management.
      12
      106 PyPI
      837
      Apache 2.0
    • A
      license
      A
      quality
      D
      maintenance
      MCP server that allows interaction with PocketBase databases, enabling record operations (fetch, list, create, update), file management, and schema migrations through natural language.
      22
      43
      MIT
    • A
      license
      Not graded
      quality
      F
      maintenance
      MCP server for self-hosted Supabase with RLS-aware PostgreSQL and PostgREST layers, enabling safe database introspection, SQL queries, and PostgREST access via natural language.
      MIT