MCP Server Studio
Operate CubiBase PostgreSQL backends: projects, schema, rows, SQL, storage, functions, logs, docs.
Registry name: com.cubibase/mcp
Add to claude_desktop_config.json:
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@cubibasehq/[email protected]"
],
"env": {
"CUBIBASE_TOKEN": "<CUBIBASE_TOKEN>",
"CUBIBASE_SERVICE_KEY": "<CUBIBASE_SERVICE_KEY>",
"CUBIBASE_API_URL": "<CUBIBASE_API_URL>",
"CUBIBASE_READ_ONLY": "<CUBIBASE_READ_ONLY>",
"CUBIBASE_FEATURES": "<CUBIBASE_FEATURES>"
}
}
}
}Run in your terminal:
claude mcp add mcp -e CUBIBASE_TOKEN='<CUBIBASE_TOKEN>' -e CUBIBASE_SERVICE_KEY='<CUBIBASE_SERVICE_KEY>' -e CUBIBASE_API_URL='<CUBIBASE_API_URL>' -e CUBIBASE_READ_ONLY='<CUBIBASE_READ_ONLY>' -e CUBIBASE_FEATURES='<CUBIBASE_FEATURES>' -- npx -y @cubibasehq/[email protected]Add to .cursor/mcp.json:
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@cubibasehq/[email protected]"
],
"env": {
"CUBIBASE_TOKEN": "<CUBIBASE_TOKEN>",
"CUBIBASE_SERVICE_KEY": "<CUBIBASE_SERVICE_KEY>",
"CUBIBASE_API_URL": "<CUBIBASE_API_URL>",
"CUBIBASE_READ_ONLY": "<CUBIBASE_READ_ONLY>",
"CUBIBASE_FEATURES": "<CUBIBASE_FEATURES>"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cubibasehq/[email protected]"
],
"env": {
"CUBIBASE_TOKEN": "<CUBIBASE_TOKEN>",
"CUBIBASE_SERVICE_KEY": "<CUBIBASE_SERVICE_KEY>",
"CUBIBASE_API_URL": "<CUBIBASE_API_URL>",
"CUBIBASE_READ_ONLY": "<CUBIBASE_READ_ONLY>",
"CUBIBASE_FEATURES": "<CUBIBASE_FEATURES>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@cubibasehq/[email protected]"
],
"env": {
"CUBIBASE_TOKEN": "<CUBIBASE_TOKEN>",
"CUBIBASE_SERVICE_KEY": "<CUBIBASE_SERVICE_KEY>",
"CUBIBASE_API_URL": "<CUBIBASE_API_URL>",
"CUBIBASE_READ_ONLY": "<CUBIBASE_READ_ONLY>",
"CUBIBASE_FEATURES": "<CUBIBASE_FEATURES>"
}
}
}
}| Name | Required | What it is |
|---|---|---|
CUBIBASE_TOKEN | Yes | Personal access token (cb_pat_...) from Console → Account → Access tokens. Scopes: read, write, admin. |
CUBIBASE_SERVICE_KEY | No | Optional project secret key (cb_sec_...) enabling Data API tools as the service actor. RLS still applies. |
CUBIBASE_API_URL | No | Control plane base URL. Defaults to https://api.cubibase.com. |
CUBIBASE_READ_ONLY | No | Set to 1 to hide every mutating tool (safe exploration mode). |
CUBIBASE_FEATURES | No | Comma-separated tool groups: projects,database,storage,functions,data,observability,docs. Defaults to all. |