Skip to main content
Prerequisites Before you begin, create an account and get your API Key.

Getting started

Connect to Supabase to manage database projects, execute SQL queries, handle migrations, and automate backend development workflows through AI agents.
  • API
  • UI
  • Open Source
1

Install the SDKs (optional)

pip install klavis
2

Create a Strata MCP Server with Supabase

from klavis import Klavis
from klavis.types import McpServerName

klavis_client = Klavis(api_key="YOUR_API_KEY")

response = klavis_client.mcp_server.create_strata_server(
    servers=[McpServerName.SUPABASE],
    user_id="user123"
)

API Reference

Full Strata API endpoints
3

Authenticate

Your Supabase MCP Server is ready! Once authentication is complete, you can use your MCP server URL with any MCP-compatible client.

Video Tutorial

Available Tools

Tool NameDescription
supabase_list_projectsLists all Supabase projects for the user
supabase_get_projectGets details for a Supabase project
supabase_get_costGets the cost of creating a new project or branch
supabase_confirm_costAsk the user to confirm their understanding of the cost
supabase_create_projectCreates a new Supabase project
supabase_pause_projectPauses a Supabase project
supabase_restore_projectRestores a Supabase project
supabase_list_organizationsLists all organizations that the user is a member of
supabase_get_organizationGets details for an organization including subscription plan
supabase_list_tablesLists all tables in a schema
supabase_list_extensionsLists all extensions in the database
supabase_list_migrationsLists all migrations in the database
supabase_apply_migrationApplies a migration to the database
supabase_execute_sqlExecutes raw SQL in the Postgres database
supabase_get_logsGets logs for a Supabase project by service type
supabase_get_project_urlGets the API URL for a project
supabase_get_anon_keyGets the anonymous API key for a project
supabase_generate_typescript_typesGenerates TypeScript types for a project
supabase_create_branchCreates a development branch on a Supabase project
supabase_list_branchesLists all development branches of a Supabase project
supabase_delete_branchDeletes a development branch
supabase_merge_branchMerges migrations and edge functions from a development branch to production
supabase_reset_branchResets migrations of a development branch
supabase_rebase_branchRebases a development branch on production
For more details about tool input schema, use the get_tools API.

Next Steps

I