open source · MCP-ready · self-hostable

Postgres in under a second.
For AI agents and indie devs.

basely provisions isolated Postgres databases instantly — no containers, no waiting. Claude, Cursor, and your CLI can create databases, run migrations, and generate TypeScript types without any human steps.

Sub-second provisioning

Schema-per-tenant on a shared cluster. No container spin-up, no waiting. Your DB is ready before your next line of code.

🤖

MCP-native

7 tools Claude and Cursor can call directly. create_project, execute_sql, gen_types — zero human steps from idea to running DB.

💸

Indie-friendly pricing

Free tier never pauses after 7 days. Paid tier starts at $5/mo. No surprise bills from forgotten databases.

Quickstart

Up and running in 2 minutes.

1CLI

bash
# Install
npm install -g basely

# Configure
basely auth setup --url https://api.basely.cc --key <your-key>

# Create a database (< 1 second)
basely projects create myapp

# Run a migration
basely migration push myapp --name 001_init --file schema.sql

# Generate TypeScript types
basely gen types myapp --out src/db.ts

2MCP — Claude & Cursor

json
// claude_desktop_config.json
{
  "mcpServers": {
    "basely": {
      "command": "node",
      "args": ["/path/to/basely/mcp/dist/index.js"],
      "env": {
        "BASELY_API_URL": "https://api.basely.cc",
        "BASELY_API_KEY": "bly_..."
      }
    }
  }
}

3What your agent can do

bash
# Claude can now call these tools with no human steps:
create_project     → spins up a DB, returns connection string
apply_migration    → runs your schema SQL
execute_sql        → queries and inserts data
get_schema         → introspects tables for context
gen_types          → outputs TypeScript interfaces
delete_project     → tears it all down

REST API

POST/auth/signup
POST/auth/login
POST/auth/keys
GET/auth/keys
POST/projects
GET/projects
POST/projects/:id/query
GET/projects/:id/schema
POST/projects/:id/migrations
GET/projects/:id/migrations
DELETE/projects/:id

Pricing

No credit card required to start.

Hobby
$0forever
  • 1 project
  • 500 MB storage
  • Never pauses
  • Community support
Start free
Indie
$5/ month
  • 3 projects
  • 2 GB storage
  • Never pauses
  • Email support
Get started
Builder
$15/ month
  • 10 projects
  • 10 GB storage
  • Never pauses
  • Priority support
Get started