Get started
Create a database, connect your app with its connection string, then add the database's MCP server to your AI client.
Create a database
Sign in to the Kaiva Cloud console at app.kaiv.ai, open Databases and choose New database. Give it a name and choose Create. Owners, admins and editors of a workspace can create databases.
Each database is a managed Postgres database with its own file storage, stored in the EU.
Save the connection string
When the database is ready, its connection string is shown once. Copy it, or choose Copy as .env for a line that starts with DATABASE_URL=. Then tick I've saved it and choose Done.
For serverless platforms such as Vercel, Netlify and Cloudflare, where each request opens a connection, switch on Pooled and copy that string instead.
If you lose it, owners and admins can rotate the password on the database's Settings tab. The new connection string is shown once, and apps using the old one stop connecting until they get the new one.
Connect your app
Put the connection string in your project's .env as DATABASE_URL, and keep .env out of your repository. Your app reads it from there.
DATABASE_URL="postgresql://..."import pg from 'pg';
const db = new pg.Pool({
connectionString: process.env.DATABASE_URL,
});
const { rows } = await db.query('SELECT now()');The database's Overview tab shows the same for Python, psql and Prisma.
Create your tables
Create tables from your app, with your ORM's migrations or with CREATE TABLE. Owners and admins can also run SQL on the database's SQL tab.
create table todos (
id bigint generated always as identity primary key,
task text not null,
done boolean not null default false
);The Tables tab shows each table's rows and columns, read-only, as AI clients see them.
Connect an AI client
Every database has its own MCP server. Each table gets tools: one looks rows up with filters, one summarises them.
New tables become tools within about 15 minutes while the database is in use. To turn them into tools at once, choose Check for tables on the database's Agent tools tab, or run this with the database's name:
npx @kaiva/cli cloud create <name>- Open the MCP serverOn the database's Agent tools tab, choose Open in Bridge. The MCP server is in Kaiva Bridge.
- Add it to your AI clientThe server's Connect tab shows its address and the setup for your AI client.
- Ask about your dataAsk a question only your tables can answer, such as how many orders came in this week.
Each AI client's setup, with what to paste, is in the Kaiva Bridge docs:
AI clients read through a login made for the MCP server that can only read, never your app's connection string. Changing rows stays off until you switch it on for a table.