Supabase Management MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Supabase Management MCP Server
Supabase MCP Server β MCP (Model Context Protocol) tools for managing your self-hosted Supabase instance.
Combines Edge Function CRUD, migration management, log monitoring, and Studio MCP proxy into a single endpoint. Vibe Coded.
π Features
Category | Tool Count | Description |
Edge Functions | 6 | CRUD + deploy (list, view, create, update, delete, restart) |
Migrations | 4 | SQL migration management (list, view, apply, raw SQL execute) |
Logs | 2 | Docker container logs (edge runtime + any container) |
Studio Proxy | ~11 | Proxies Supabase Studio's built-in MCP tools |
Total: 12 management + ~11 Studio = ~23 tools on a single MCP endpoint!
Related MCP server: Self-Hosted Supabase MCP Server
π¦ Quick Start
1. Clone & Build
git clone https://github.com/ubeydtalha/supabase-mgmt-mcp.git
cd supabase-mgmt-mcp
cp .env.example .env
# Fill in your Supabase credentials in .env
npm install
npm run build2. Run
# Directly with Node.js
npm start
# With Docker
docker compose up -d3. Connect to VS Code
Add to ~/.vscode/mcp.json in VS Code:
{
"servers": {
"supabase-mgmt": {
"type": "url",
"url": "http://localhost:3200/mcp",
"headers": {
"apikey": "supabase_mgmt_api_key_here",
"MCP-Protocol-Version": "2025-06-18"
}
}
}
}π οΈ Tool Reference
Edge Functions
Tool | Description |
| List all edge functions |
| Show function source code and details |
| Create a new edge function |
| Update function source code / JWT settings |
| Delete a function ( |
| Restart edge runtime (activate changes) |
Migrations & SQL
Tool | Description |
| List migration files |
| View migration SQL content |
| Apply a migration file |
| Execute raw SQL |
Logs
Tool | Description |
| Fetch edge runtime logs |
| Fetch logs from any Docker container |
Studio Proxy (optional, enabled when STUDIO_MCP_URL is set)
Tool | Description |
| List database tables |
| List extensions |
| Execute SQL queries |
| Apply a migration |
| Get Supabase service logs |
| Search Supabase documentation |
| Get performance/security advice |
| Show project URL |
| Show API keys |
| Generate TypeScript type definitions |
| List migrations |
π§ Environment Variables
Variable | Required | Default | Description |
| No |
| Server port |
| Yes | β | Supabase project URL (e.g. |
| Yes | β | Service role key (for admin operations) |
| Yes | β | API key to connect to the MCP server |
| No | β | Additional API keys (comma-separated) |
| No |
| Path to edge function files |
| No |
| Path to migration SQL files |
| No |
| Edge runtime Docker container name |
| No | β | Enables Studio MCP proxy |
π³ Docker Deployment
Integration with Self-hosted Supabase
# docker-compose.yml (add to your stack)
services:
supabase-mgmt-mcp:
image: ghcr.io/ubeydtalha/supabase-mgmt-mcp:latest
container_name: supabase-mgmt-mcp
restart: unless-stopped
ports:
- "3200:3200"
env_file: .env
volumes:
- /path/to/functions:/functions
- /path/to/migrations:/migrations
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- supabaseWith Kong API Gateway
# Add to Kong declarative config
services:
- name: supabase-mgmt-mcp
url: http://supabase-mgmt-mcp:3200/mcp
routes:
- name: mcp
strip_path: false
paths:
- /mcpβ οΈ Important Notes
Session Management: MCP StreamableHTTP transport expects a new session for each
tools/call. VS Code Copilot handles this automatically.exec_sql Prerequisite: The
exec_sqlfunction must exist in PostgreSQL forapply_migrationandrun_sqltools:CREATE OR REPLACE FUNCTION public.exec_sql(sql_text text) RETURNS void LANGUAGE plpgsql SECURITY DEFINER SET search_path = public AS $$ BEGIN EXECUTE sql_text; END; $$; GRANT EXECUTE ON FUNCTION public.exec_sql(text) TO anon, authenticated, service_role;Docker Socket:
/var/run/docker.sockmust be mounted for container logs and edge runtime restart.Activating Changes: After creating/updating/deleting functions, run
supabase_mgmt_deployto apply changes.
π Documentation
Setup Guide β Detailed setup instructions
Architecture β System architecture and design decisions
Usage Examples β Copilot Chat usage scenarios
π License
MIT License β see LICENSE.
π€ Contributing
PRs and issues are welcome. Please open an issue first for major changes.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for interacting with the Supabase platform
Butterbase MCP server β manage your backend: schemas, auth, functions, storage, RAG, deploys.
Manage Supabase projects end to end across database, auth, storage, realtime, and migrations. Moniβ¦
MCP server for InsForge BaaS β database, storage, edge functions, and deployments
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server that provides tools for interacting with Supabase databases, storage, and edge functions.45MIT
- AlicenseNot gradedqualityDmaintenanceEnables developers to interact with self-hosted Supabase instances, providing database introspection, migration management, auth user operations, storage management, and TypeScript type generation directly from MCP-compatible development environments.ISC
- AlicenseNot gradedqualityDmaintenanceMCP server for Supabase, enabling database CRUD, storage management, auth administration, project management, edge functions, and secrets via 31 tools.6 npmMIT
- AlicenseBqualityDmaintenanceMCP server for Supabase database and storage operations, enabling querying, inserting, updating, deleting rows, schema introspection, and file storage management.126 npmMIT