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 "Install 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 Serverlist 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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-quality-maintenanceAn MCP server that provides tools for interacting with Supabase databases, storage, and edge functions.Last updated45MIT
- Alicense-qualityDmaintenanceAn MCP server that connects to Supabase PostgreSQL databases, exposing table schemas as resources and providing tools for data analysis through SQL queries.Last updated1MIT
- Alicense-qualityDmaintenanceMCP server for Supabase, enabling database CRUD, storage management, auth administration, project management, edge functions, and secrets via 31 tools.Last updated18MIT
- AlicenseAqualityDmaintenanceAn MCP server that provides deep schema introspection for Supabase/Postgres, exposing tables, columns, views, enums, RLS policies, functions, and more.Last updated133MIT
Related MCP Connectors
MCP server for interacting with the Supabase platform
MCP server for managing Prisma Postgres.
Butterbase MCP server — manage your backend: schemas, auth, functions, storage, RAG, deploys.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cloud9-labs/mcp-supabase'
If you have feedback or need assistance with the MCP directory API, please join our Discord server