CubiBase
MCP server giving AI agents full management access to CubiBase PostgreSQL backends
CubiBase is a freemium MCP server for databases. It runs locally on your machine and is started by your AI client.
- Pricing
- Freemium
- Platforms
- Web, CLI, API
- Runs
- Locally
- What it can do
- Can change data (5 tools)
- Access
- Needs a secret key or token
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add mcp --env CUBIBASE_TOKEN='<CUBIBASE_TOKEN>' --env CUBIBASE_SERVICE_KEY='<CUBIBASE_SERVICE_KEY>' -- npx -y @cubibasehq/mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@cubibasehq/mcp"
],
"env": {
"CUBIBASE_TOKEN": "<CUBIBASE_TOKEN>",
"CUBIBASE_SERVICE_KEY": "<CUBIBASE_SERVICE_KEY>"
}
}
}
}Add to claude_desktop_config.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.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add mcp --env CUBIBASE_TOKEN='<CUBIBASE_TOKEN>' --env CUBIBASE_SERVICE_KEY='<CUBIBASE_SERVICE_KEY>' -- npx -y @cubibasehq/mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "@cubibasehq/mcp"]
env = { CUBIBASE_TOKEN = "<CUBIBASE_TOKEN>", CUBIBASE_SERVICE_KEY = "<CUBIBASE_SERVICE_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@cubibasehq/mcp"
],
"env": {
"CUBIBASE_TOKEN": "<CUBIBASE_TOKEN>",
"CUBIBASE_SERVICE_KEY": "<CUBIBASE_SERVICE_KEY>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "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.
Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
CUBIBASE_TOKENPersonal access token (cb_pat_...) from Console → Account → Access tokens. Scopes: read, write, admin.RequiredCUBIBASE_SERVICE_KEYOptional project secret key (cb_sec_...) enabling Data API tools as the service actor. RLS still applies.CUBIBASE_API_URLControl plane base URL. Defaults to https://api.cubibase.com.CUBIBASE_READ_ONLYSet to 1 to hide every mutating tool (safe exploration mode).CUBIBASE_FEATURESComma-separated tool groups: projects,database,storage,functions,data,observability,docs. Defaults to all.
About CubiBase
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.
Tools this server provides (8)
Taken from the project documentation; the running server may differ.
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_projectsName suggests: reads
- List projects.
- cubibase_create_tableName suggests: changes
- Create a table.
- cubibase_run_sqlName suggests: changes
- Run read-only SQL.
- cubibase_list_rowsName suggests: reads
- List rows.
- cubibase_insert_rowName suggests: changes
- Insert a row.
- cubibase_upload_fileName suggests: changes
- Upload a file to storage.
- cubibase_deploy_functionName suggests: changes
- Deploy a function.
- cubibase_search_docsName suggests: reads
- Search bundled documentation.
What it does
- 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
Pricing
Freemium, from $25 a month
Free plan; Pro from $25/mo per month; Business from $99/mo
Prices change. Check cubibase.com before you buy.
CubiBase 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.