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.ts2MCP — 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 downREST API
POST
/auth/signupPOST
/auth/loginPOST
/auth/keysGET
/auth/keysPOST
/projectsGET
/projectsPOST
/projects/:id/queryGET
/projects/:id/schemaPOST
/projects/:id/migrationsGET
/projects/:id/migrationsDELETE
/projects/:idPricing
No credit card required to start.