# CubiBase

> CubiBase is a freemium MCP server for databases. MCP server giving AI agents full management access to CubiBase PostgreSQL backends. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $25 a month
- **Platforms:** Web, CLI, API, macOS, Windows, Linux
- **Website:** https://cubibase.com/docs/agents
- **Repository:** https://github.com/cubibase/cubibase-agent/tree/HEAD/packages/mcp
- **MCP Registry name:** com.cubibase/mcp
- **Categories:** [databases](https://ai-powered.com/categories/databases), [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-30

## About

CubiBase is a hosted backend where each project gets its own PostgreSQL database, auth, REST API, file storage and serverless functions. This MCP server lets an AI client manage all of that from chat or an IDE: creating projects, changing table schemas and policies, editing rows, running read-only SQL, uploading files and deploying functions.

The server runs locally through npx and authenticates with a personal access token. Token scopes (read, write, admin) decide what the agent may do, and a read-only environment flag removes every mutating tool from the list for safe exploration. Tool groups can be narrowed so an assistant only sees database or storage operations.

It suits developers who prototype or operate CubiBase projects and want an agent to handle routine schema and data work. Optional service keys let data tools act as a service actor, while row-level security still limits what rows that actor can see.

## Features

- **Schema and policy management:** Create and change tables, columns, indexes, views, enum types and row-level security policies.
- **Read-only SQL and row editing:** Run read-only SQL queries and list, insert, update or delete rows in exposed tables.
- **Storage uploads and signed links:** Manage buckets and objects, upload files from text or base64, and generate signed download URLs.
- **Serverless function deployment:** Create, deploy and activate functions, set secrets, attach triggers and read execution logs.
- **Token-scoped access control:** Read, write and admin scopes plus a read-only mode and tool-group filters limit what an agent can do.
- **Offline docs search:** Search bundled CubiBase documentation and receive excerpts with links to full pages.

## Good for

- Let an AI assistant inspect a project's schema and suggest table changes
- Run read-only SQL queries against a project for reporting or debugging
- Upload and manage files in storage buckets from an agent workflow
- Deploy and test serverless functions with logs from an IDE assistant
- Give a read-only agent safe access to production data for review

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp --env CUBIBASE_TOKEN='<CUBIBASE_TOKEN>' --env CUBIBASE_SERVICE_KEY='<CUBIBASE_SERVICE_KEY>' -- npx -y @cubibasehq/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cubibasehq/mcp"
      ],
      "env": {
        "CUBIBASE_TOKEN": "<CUBIBASE_TOKEN>",
        "CUBIBASE_SERVICE_KEY": "<CUBIBASE_SERVICE_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cubibasehq/mcp"
      ],
      "env": {
        "CUBIBASE_TOKEN": "<CUBIBASE_TOKEN>",
        "CUBIBASE_SERVICE_KEY": "<CUBIBASE_SERVICE_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cubibasehq/mcp"
      ],
      "env": {
        "CUBIBASE_TOKEN": "<CUBIBASE_TOKEN>",
        "CUBIBASE_SERVICE_KEY": "<CUBIBASE_SERVICE_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cubibasehq/mcp"
      ],
      "env": {
        "CUBIBASE_TOKEN": "<CUBIBASE_TOKEN>",
        "CUBIBASE_SERVICE_KEY": "<CUBIBASE_SERVICE_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp --env CUBIBASE_TOKEN='<CUBIBASE_TOKEN>' --env CUBIBASE_SERVICE_KEY='<CUBIBASE_SERVICE_KEY>' -- npx -y @cubibasehq/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "@cubibasehq/mcp"]
env = { CUBIBASE_TOKEN = "<CUBIBASE_TOKEN>", CUBIBASE_SERVICE_KEY = "<CUBIBASE_SERVICE_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cubibasehq/mcp"
      ],
      "env": {
        "CUBIBASE_TOKEN": "<CUBIBASE_TOKEN>",
        "CUBIBASE_SERVICE_KEY": "<CUBIBASE_SERVICE_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e CUBIBASE_TOKEN='<CUBIBASE_TOKEN>' -e CUBIBASE_SERVICE_KEY='<CUBIBASE_SERVICE_KEY>' mcp npx -- -y @cubibasehq/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cubibasehq/mcp"
      ],
      "env": {
        "CUBIBASE_TOKEN": "<CUBIBASE_TOKEN>",
        "CUBIBASE_SERVICE_KEY": "<CUBIBASE_SERVICE_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cubibasehq/mcp"
      ],
      "env": {
        "CUBIBASE_TOKEN": "<CUBIBASE_TOKEN>",
        "CUBIBASE_SERVICE_KEY": "<CUBIBASE_SERVICE_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cubibasehq/mcp"
      ],
      "env": {
        "CUBIBASE_TOKEN": "<CUBIBASE_TOKEN>",
        "CUBIBASE_SERVICE_KEY": "<CUBIBASE_SERVICE_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cubibasehq/mcp"
      ],
      "env": {
        "CUBIBASE_TOKEN": "<CUBIBASE_TOKEN>",
        "CUBIBASE_SERVICE_KEY": "<CUBIBASE_SERVICE_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cubibasehq/mcp"
      ],
      "env": {
        "CUBIBASE_TOKEN": "<CUBIBASE_TOKEN>",
        "CUBIBASE_SERVICE_KEY": "<CUBIBASE_SERVICE_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cubibasehq/mcp"
      ],
      "env": {
        "CUBIBASE_TOKEN": "<CUBIBASE_TOKEN>",
        "CUBIBASE_SERVICE_KEY": "<CUBIBASE_SERVICE_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cubibasehq/mcp"
      ],
      "env": {
        "CUBIBASE_TOKEN": "<CUBIBASE_TOKEN>",
        "CUBIBASE_SERVICE_KEY": "<CUBIBASE_SERVICE_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@cubibasehq/mcp"
      ],
      "env": {
        "CUBIBASE_TOKEN": "<CUBIBASE_TOKEN>",
        "CUBIBASE_SERVICE_KEY": "<CUBIBASE_SERVICE_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 5 of 8 tools change data. From the server's own tool labels and tool names; not verified by us.

- `cubibase_list_projects` (name suggests: reads): List projects.
- `cubibase_create_table` (name suggests: changes): Create a table.
- `cubibase_run_sql` (name suggests: changes): Run read-only SQL.
- `cubibase_list_rows` (name suggests: reads): List rows.
- `cubibase_insert_row` (name suggests: changes): Insert a row.
- `cubibase_upload_file` (name suggests: changes): Upload a file to storage.
- `cubibase_deploy_function` (name suggests: changes): Deploy a function.
- `cubibase_search_docs` (name suggests: reads): Search bundled documentation.

## FAQ

### How do I authenticate the server?

Set CUBIBASE_TOKEN to a personal access token (cb_pat_...) created under Console → Account → Access tokens. The token is shown once.

### Can the server be restricted to read-only use?

Yes. Setting CUBIBASE_READ_ONLY to 1 hides every mutating tool from the tool list.

### Does a service key give full database access?

No. A service key acts as the service actor, and row-level security still applies, so it only sees rows that a service policy grants.

### Which clients does CubiBase work with?

It is configured through an mcp.json block and is documented for Claude Desktop, Cursor and Codex, plus other MCP clients.

### Is CubiBase free?

CubiBase has a free plan, with paid plans for more usage or features. Paid plans start at $25 a month.

### How do I add CubiBase to Claude Code?

Run this command in your terminal: claude mcp add mcp --env CUBIBASE_TOKEN='<CUBIBASE_TOKEN>' --env CUBIBASE_SERVICE_KEY='<CUBIBASE_SERVICE_KEY>' -- npx -y @cubibasehq/mcp

### What are the best alternatives to CubiBase?

The closest alternatives to CubiBase are CloudBase, PostgreSQL MCP Server, Bytebase, Butterbase and Custom MCP Database.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [CloudBase](https://ai-powered.com/mcp/cloudbase): CloudBase is an MCP server for cloud and infrastructure.
- [PostgreSQL MCP Server](https://ai-powered.com/mcp/postgresql-mcp-server-4): PostgreSQL MCP Server is an open-source MCP server for databases.
- [Bytebase](https://ai-powered.com/mcp/bytebase): Bytebase is an open-source MCP server for databases.
- [Butterbase](https://ai-powered.com/mcp/butterbase): Butterbase is a freemium MCP server for developer tools.
- [Custom MCP Database](https://ai-powered.com/mcp/custom-mcp-database): Custom MCP Database is an open-source MCP server for databases.
- [CMO Studio](https://ai-powered.com/mcp/cmo-studio): CMO Studio is a freemium MCP server for cloud and infrastructure.
- [FullStacked Cloud](https://ai-powered.com/mcp/fullstacked-cloud): FullStacked Cloud is a freemium MCP server for cloud and infrastructure.
- [Baserow](https://ai-powered.com/mcp/baserow): Baserow is a freemium MCP server for databases.

---
Source: https://ai-powered.com/mcp/cubibase
