appbase
v0.1.0Supabase projects, tables, SQL, migrations, and storage from your MCP client.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_tables
Lists all tables within the specified schemas.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The reference ID of the Supabase project whose tables are listed. |
schemas | array | The database schemas to list tables from, defaulting to public when omitted. |
list_extensions
Lists all extensions in the database.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The reference ID of the Supabase project whose database extensions are listed. |
list_migrations
Lists all migrations in the database.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The reference ID of the Supabase project whose migrations are listed. |
execute_sql
Executes raw SQL in the database.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The reference ID of the Supabase project to run the SQL against. |
query * | string | The raw SQL query to execute in the project's database. |
apply_migration
Applies a SQL migration to the database. SQL passed to this tool will be tracked within the database, so use this for DDL operations (schema changes).
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the migration to record in the database. |
project_id * | string | The reference ID of the Supabase project to apply the migration to. |
query * | string | The SQL statements of the migration to apply. |
get_logs
Gets logs for a Supabase project by service (api, postgres, edge-function, auth, storage, realtime, or branch-action).
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The reference ID of the Supabase project whose logs are retrieved. |
service * | string | The service to get logs for, one of api, postgres, edge-function, auth, storage, realtime, or branch-action. |
get_advisors
Gets advisory notices for a Supabase project, by type: security or performance.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The reference ID of the Supabase project whose advisors are retrieved. |
type * | string | The type of advisory notices to get, either security or performance. |
get_project_url
Gets the API URL for a Supabase project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The reference ID of the Supabase project whose API URL is returned. |
get_publishable_keys
Gets the publishable and anon API keys for a Supabase project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The reference ID of the Supabase project whose publishable and anon API keys are returned. |
generate_typescript_types
Generates TypeScript types based on the database schema.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The reference ID of the Supabase project to generate TypeScript types for. |
included_schemas | array | The database schemas to include when generating the TypeScript types. |
list_edge_functions
Lists all Edge Functions in a Supabase project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The reference ID of the Supabase project whose Edge Functions are listed. |
get_edge_function
Gets details for an Edge Function by slug.
| Parameter | Type | Description |
|---|---|---|
function_slug * | string | The slug of the Edge Function to retrieve. |
project_id * | string | The reference ID of the Supabase project that owns the Edge Function. |
deploy_edge_function
Deploys an Edge Function to a Supabase project from inline files.
| Parameter | Type | Description |
|---|---|---|
files * | array | The inline files that make up the Edge Function, each with a name and content. |
name * | string | The name of the Edge Function to deploy. |
project_id * | string | The reference ID of the Supabase project to deploy the Edge Function to. |
entrypoint_path | string | The path of the entrypoint file for the Edge Function. |
import_map_path | string | The path of the import map file for the Edge Function. |
list_storage_buckets
Lists all storage buckets in a Supabase project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The reference ID of the Supabase project whose storage buckets are listed. |
create_storage_bucket
Creates a new storage bucket in a Supabase project.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the new storage bucket. |
project_id * | string | The reference ID of the Supabase project to create the storage bucket in. |
allowed_mime_types | array | The MIME types allowed for files uploaded to the bucket. |
file_size_limit | number | The maximum file size allowed for uploads to the bucket. |
public | boolean | Whether the new storage bucket is publicly accessible. |
list_branches
Lists all development branches for a Supabase project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The reference ID of the Supabase project whose development branches are listed. |
create_branch
Creates a new development branch for a Supabase project.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the new development branch. |
project_id * | string | The reference ID of the Supabase project to create the development branch in. |
confirm_cost_id | string | The cost confirmation ID authorizing the branch creation charge, if one was obtained. |
delete_branch
Deletes a development branch from a Supabase project.
| Parameter | Type | Description |
|---|---|---|
branch_id * | string | The ID of the development branch to delete. |
project_id * | string | The reference ID of the Supabase project that owns the development branch. |
merge_branch
Merges migrations and edge functions from a development branch into production.
| Parameter | Type | Description |
|---|---|---|
branch_id * | string | The ID of the development branch to merge into production. |
project_id * | string | The reference ID of the Supabase project that owns the development branch. |
reset_branch
Resets a development branch to its parent state, optionally at a migration version.
| Parameter | Type | Description |
|---|---|---|
branch_id * | string | The ID of the development branch to reset. |
project_id * | string | The reference ID of the Supabase project that owns the development branch. |
migration_version | string | The optional migration version to reset the branch to. |
rebase_branch
Rebases a development branch on its parent, applying newer migrations.
| Parameter | Type | Description |
|---|---|---|
branch_id * | string | The ID of the development branch to rebase on its parent. |
project_id * | string | The reference ID of the Supabase project that owns the development branch. |
list_projects
Lists all Supabase projects for the user.
get_project
Gets details for a project.
| Parameter | Type | Description |
|---|---|---|
id * | string | The ID of the project to retrieve details for. |
create_project
Creates a new Supabase project.
| Parameter | Type | Description |
|---|---|---|
name * | string | The name of the new Supabase project. |
organization_id * | string | The ID of the organization to create the new project in. |
confirm_cost_id | string | The cost confirmation ID authorizing the project creation charge, if one was obtained. |
region | string | The region to create the new project in. |
pause_project
Pauses a project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The reference ID of the Supabase project to pause. |
restore_project
Restores a project.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | The reference ID of the Supabase project to restore. |
list_organizations
Lists all organizations that the user is a member of.
get_organization
Gets details for an organization.
| Parameter | Type | Description |
|---|---|---|
id * | string | The ID of the organization to retrieve details for. |