MCP Supabase Server
Provides tools for database operations (query, insert, update, delete), schema introspection (list tables, get table schema), storage operations (upload, list, delete files and buckets), and RPC support for calling stored functions and executing raw SQL.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Supabase Server list all tables in the public schema"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Supabase Server
Model Context Protocol (MCP) server for Supabase database and storage operations.
Features
Database Operations: Query, insert, update, delete rows
Schema Introspection: List tables, get column definitions
Storage Operations: Upload, list, delete files and buckets
RPC Support: Call stored functions
Raw SQL: Execute custom SQL queries (requires setup)
Related MCP server: Supabase MCP Server
Installation
npm install @cloud9-labs/mcp-supabaseConfiguration
Set the following environment variables:
export SUPABASE_URL="https://your-project.supabase.co"
export SUPABASE_SERVICE_KEY="your-service-role-key"Claude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"supabase": {
"command": "npx",
"args": ["-y", "@cloud9-labs/mcp-supabase"],
"env": {
"SUPABASE_URL": "https://your-project.supabase.co",
"SUPABASE_SERVICE_KEY": "your-service-role-key"
}
}
}
}Available Tools
Database Operations
supabase_query: Execute SELECT with filters, ordering, paginationsupabase_insert: Insert rows into a tablesupabase_update: Update rows matching filter conditionssupabase_delete: Delete rows matching filter conditionssupabase_rpc: Call stored functions/RPC endpoints
Schema Introspection
supabase_list_tables: List all tables in public schemasupabase_get_table_schema: Get column definitions for a table
Storage Operations
supabase_upload_file: Upload a file to storage bucketsupabase_list_files: List files in a bucketsupabase_delete_file: Delete a file from storagesupabase_list_buckets: List all storage buckets
Advanced Operations
supabase_execute_sql: Execute raw SQL (requires RPC function setup)
Usage Examples
Query a table
{
"table": "users",
"select": "id,name,email",
"filter": { "status": "active" },
"order": "created_at.desc",
"limit": 10
}Insert data
{
"table": "posts",
"data": {
"title": "Hello World",
"content": "My first post",
"author_id": 123
}
}Upload a file
{
"bucket": "avatars",
"path": "user123/profile.jpg",
"data": "<base64-encoded-data>",
"contentType": "image/jpeg"
}Raw SQL Setup
To use supabase_execute_sql, create this function in your Supabase SQL Editor:
CREATE OR REPLACE FUNCTION execute_sql(query text)
RETURNS json AS $$
DECLARE
result json;
BEGIN
EXECUTE query INTO result;
RETURN result;
END;
$$ LANGUAGE plpgsql SECURITY DEFINER;Development
# Install dependencies
npm install
# Build
npm run build
# Run locally
node dist/index.jsLicense
MIT
Available Tools
12 toolssupabase_deleteC
Delete rows from a Supabase table that match the filter conditions.
Inputs: table (required), filter (required).
supabase_delete_fileC
Delete a file from a Supabase storage bucket.
Inputs: path (required), bucket (required).
supabase_execute_sqlC
Execute raw SQL query via RPC endpoint (requires execute_sql function to be created in Supabase).
Inputs: sql (required).
supabase_get_table_schemaB
Get column definitions and data types for a specific table.
Inputs: table (required).
supabase_insertC
Insert one or more rows into a Supabase table.
Inputs: data (required), table (required).
supabase_list_bucketsB
List all storage buckets in the Supabase project.
Inputs: no named parameters.
supabase_list_filesC
List files in a Supabase storage bucket with optional path filtering.
Inputs: bucket (required), path, limit, offset.
supabase_list_tablesA
List all tables in the public schema of the Supabase database.
Inputs: no named parameters.
supabase_queryC
Execute a SELECT query on a Supabase table with optional filtering, ordering, and pagination.
Inputs: table (required), limit, order, filter, +2 more.
supabase_rpcC
Call a stored function or RPC endpoint in Supabase.
Inputs: function (required), args.
supabase_updateC
Update rows in a Supabase table that match the filter conditions.
Inputs: data (required), table (required), filter (required).
supabase_upload_fileC
Upload a file to a Supabase storage bucket.
Inputs: data (required), path (required), bucket (required), contentType.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Most tools have clearly distinct resource+action targets (query vs insert vs update vs delete, table introspection vs storage ops). The one soft spot is three overlapping 'run arbitrary logic' tools — supabase_query, supabase_rpc, and supabase_execute_sql — where an agent may hesitate between SELECT-on-table, stored function, and raw SQL, though the descriptions do differentiate them.
Every tool follows a strict supabase_<verb>_<noun> snake_case pattern (query, insert, update, delete, list_tables, get_table_schema, upload_file, list_files, delete_file, list_buckets). No deviations or mixed conventions.
12 tools is well within the ideal range and each earns its place: three DB write ops, two read/introspection paths, one RPC/SQL path, and four storage ops. Nothing feels padded or missing at the count level.
Core coverage is strong: full row-level CRUD, schema introspection, RPC/raw SQL, and storage upload/list/delete/buckets. Minor gaps remain — no bucket creation, no file download/retrieval, no upsert, and no auth/user or policy management — but these are workable around or out of the server's stated scope.
Maintenance
Related MCP Connectors
MCP server for interacting with the Supabase platform
Butterbase MCP server — manage your backend: schemas, auth, functions, storage, RAG, deploys.
MCP server for InsForge BaaS — database, storage, edge functions, and deployments
Hosted MCP server for AI-driven data ops. Create apps, manage schemas, and CRUD structured data.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server that provides tools for interacting with Supabase databases, storage, and edge functions.45MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that connects to Supabase PostgreSQL databases, exposing table schemas as resources and providing tools for data analysis through SQL queries.1MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for Supabase, enabling database CRUD, storage management, auth administration, project management, edge functions, and secrets via 31 tools.10 npmMIT
- AlicenseAqualityDmaintenanceAn MCP server that provides deep schema introspection for Supabase/Postgres, exposing tables, columns, views, enums, RLS policies, functions, and more.133MIT