CubiBase
MCP server by cubibase Verified · cubibase.com
CubiBase MCP server lets AI assistants operate CubiBase PostgreSQL backends, including projects, schema, rows, SQL, storage, functions and logs. It is built for AI agents and developers who run CubiBase projects end to end.
Install CubiBase
Built from the published package, never by AI.
claude mcp add cubibase -e CUBIBASE_TOKEN=YOUR_CUBIBASE_TOKEN -- npx -y @cubibasehq/mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"cubibase": {
"env": {
"CUBIBASE_TOKEN": "YOUR_CUBIBASE_TOKEN"
},
"args": [
"-y",
"@cubibasehq/mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"cubibase": {
"env": {
"CUBIBASE_TOKEN": "YOUR_CUBIBASE_TOKEN"
},
"args": [
"-y",
"@cubibasehq/mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"cubibase": {
"env": {
"CUBIBASE_TOKEN": "YOUR_CUBIBASE_TOKEN"
},
"args": [
"-y",
"@cubibasehq/mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add cubibase --env CUBIBASE_TOKEN=YOUR_CUBIBASE_TOKEN -- npx -y @cubibasehq/mcp{
"mcpServers": {
"cubibase": {
"env": {
"CUBIBASE_TOKEN": "YOUR_CUBIBASE_TOKEN"
},
"args": [
"-y",
"@cubibasehq/mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add cubibase npx -y @cubibasehq/mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the cubibase block.
About
CubiBase is a PostgreSQL backend platform with database, auth, REST and RPC data API, functions, and storage. The MCP server, published as @cubibasehq/mcp, runs over stdio and gives an AI assistant 93 tools. These cover projects, full schema, rows, SQL, storage uploads and signed links, function deployments, secrets and triggers, messaging, notifications, logs, the Data API, and offline docs search.
The Control API uses a personal access token (cb_pat_) set as CUBIBASE_TOKEN. An optional secret key (cb_sec_) enables Data API and messaging send and read tools. Read-only mode is available with CUBIBASE_READ_ONLY=1, and feature groups can be selected with CUBIBASE_FEATURES. It is aimed at AI agents and developers who manage CubiBase backends, and the same monorepo includes a typed TypeScript client and a scriptable CLI.
Written from the project's README and checked against it.
Tools it gives your assistant
ProjectsOperate CubiBase projects through the Control API.SchemaWork with tables, columns, policies, triggers, indexes, types, and views.RowsRead and change rows in project tables.SQLRun SQL queries against a CubiBase project database.StorageUpload files and create signed links in storage buckets.FunctionsDeploy functions and manage their secrets and triggers.MessagingConfigure SMTP, branding, email templates, and transactional sends.LogsRead project logs.Data APICall the project Data API when a secret key is set.Docs searchSearch bundled CubiBase documentation offline.
What you need
- CubiBase account with a personal access token (cb_pat_)
- Optional secret key (cb_sec_) for Data API and messaging send and read tools
- npm or npx to run @cubibasehq/mcp
| Setting | Needed | What it is |
|---|---|---|
CUBIBASE_Environment variable, secret | Required | Personal access token (cb_pat_...) from Console → Account → Access tokens. Scopes: read, write, admin. |
CUBIBASE_Environment variable, secret | Optional | Optional project secret key (cb_sec_...) enabling Data API tools as the service actor. RLS still applies. |
CUBIBASE_Environment variable | Optional | Control plane base URL. Defaults to https://api.cubibase.com. |
CUBIBASE_Environment variable | Optional | Set to 1 to hide every mutating tool (safe exploration mode). |
CUBIBASE_Environment variable | Optional | Comma-separated tool groups: projects,database,storage,functions,data,observability,docs. Defaults to all. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- List my CubiBase projects and show the tables in one of them.
- Run a SQL query to count rows in my notes table.
- Upload this avatar file to the avatars bucket in my CubiBase project.
Good to know
- Read-only mode is enabled with CUBIBASE_READ_ONLY=1.
- Feature groups can be limited with CUBIBASE_FEATURES.
- Secret key access still follows row-level security policies.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to CubiBase
All alternatives →Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.
ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.
Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.
MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.
Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.
MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.
Compare with Supabase, ArcadeDB MCP Server or DBHub
CubiBase: common questions
Can the CubiBase MCP server change my data?
Yes, by default it can run write operations. Setting CUBIBASE_READ_ONLY=1 turns on read-only mode.
What is the difference between the personal access token and the secret key?
The personal access token (cb_pat_) is used for the Control API. The secret key (cb_sec_) acts as the service actor for the project Data API.
Does the server include documentation search?
Yes, it includes offline docs search, using a bundled docs corpus that can be refreshed from the website content.
How do I install CubiBase?
In Claude Code run claude mcp add cubibase -e CUBIBASE_TOKEN=YOUR_CUBIBASE_TOKEN -- npx -y @cubibasehq/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is CubiBase the official server?
CubiBase is published by cubibase.com from its verified domain in the official MCP Registry.
Is CubiBase free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is CubiBase safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to CubiBase?
Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.
Does CubiBase work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
