Supabase MCP Server for VS Code: Setup & Config
Connect VS Code to Supabase projects for SQL, schema changes, debugging, and Edge Functions.
What you can do with Supabase in VS Code
A broad Supabase development interface with explicit project scoping and read-only controls.
- Apply tracked SQL migrations during development.
- Investigate project logs and security or performance advisories.
- Generate TypeScript types and deploy Edge Functions.
Before you start: Supabase in VS Code
- A Supabase account with access to the intended organization
- An MCP client supporting hosted HTTP connections
No runnable server launch command is stated in the provided README. Configure the hosted URL and complete the client login flow. The README recommends project_ref scoping and read_only=true.
Supabase VS Code configuration
Choose VS Code configuration scope
For Supabase MCP Server, open Workspace: .vscode/mcp.json. Merge into servers; preserve existing inputs.
Add Supabase MCP Server to VS Code
Use the supabase-mcp entry below in servers. Keep Supabase MCP Server's documented http connection fields and your other VS Code entries.
Check Supabase MCP Server in VS Code
Supabase MCP Server: Start in VS Code’s MCP controls; inspect output and trust prompts.
Config file · Workspace: .vscode/mcp.json
{
"servers": {
"supabase-mcp": {
"type": "http",
"url": "https://mcp.supabase.com/mcp"
}
}
}Supabase tools available to VS Code
Supabase's stored tool list documents 33 tools; compare it with VS Code's connected tool list, because the stored list is not a live check.
- search_docs
Look for search_docs among VS Code's agent-mode tools after starting Supabase through the MCP controls.
- list_organizations
Look for list_organizations among VS Code's agent-mode tools after starting Supabase through the MCP controls.
Find organizations associated with the signed-in user.
- get_organization
Look for get_organization among VS Code's agent-mode tools after starting Supabase through the MCP controls.
Inspect organization details, including its subscription plan.
- list_projects
Look for list_projects among VS Code's agent-mode tools after starting Supabase through the MCP controls.
Find Supabase projects available to the user.
- get_project
Look for get_project among VS Code's agent-mode tools after starting Supabase through the MCP controls.
Inspect one project's details and status.
- get_cost
Look for get_cost among VS Code's agent-mode tools after starting Supabase through the MCP controls.
Look up organization-specific pricing before creating a project or branch.
- confirm_cost
Look for confirm_cost among VS Code's agent-mode tools after starting Supabase through the MCP controls.
Record user confirmation of the cost returned for a project or branch.
- create_project
Look for create_project among VS Code's agent-mode tools after starting Supabase through the MCP controls.
Create a Supabase project after organization and cost confirmation.
- pause_project
Look for pause_project among VS Code's agent-mode tools after starting Supabase through the MCP controls.
Suspend an existing project's operation.
- restore_project
Look for restore_project among VS Code's agent-mode tools after starting Supabase through the MCP controls.
Bring a paused project back into operation.
- list_tables
Look for list_tables among VS Code's agent-mode tools after starting Supabase through the MCP controls.
- list_extensions
Look for list_extensions among VS Code's agent-mode tools after starting Supabase through the MCP controls.
- list_migrations
Look for list_migrations among VS Code's agent-mode tools after starting Supabase through the MCP controls.
- apply_migration
Look for apply_migration among VS Code's agent-mode tools after starting Supabase through the MCP controls.
- execute_sql
Look for execute_sql among VS Code's agent-mode tools after starting Supabase through the MCP controls.
- query_logs
Look for query_logs among VS Code's agent-mode tools after starting Supabase through the MCP controls.
- get_logs
Look for get_logs among VS Code's agent-mode tools after starting Supabase through the MCP controls.
- get_advisors
Look for get_advisors among VS Code's agent-mode tools after starting Supabase through the MCP controls.
Retrieve security and performance advisory notices for a project.
- get_project_url
Look for get_project_url among VS Code's agent-mode tools after starting Supabase through the MCP controls.
Retrieve a project's API endpoint address.
- get_publishable_keys
Look for get_publishable_keys among VS Code's agent-mode tools after starting Supabase through the MCP controls.
Retrieve client-safe publishable and legacy anonymous project keys.
- generate_typescript_types
Look for generate_typescript_types among VS Code's agent-mode tools after starting Supabase through the MCP controls.
Create TypeScript definitions reflecting a project's database schema.
- list_edge_functions
Look for list_edge_functions among VS Code's agent-mode tools after starting Supabase through the MCP controls.
Inspect the Edge Functions deployed to a project.
- get_edge_function
Look for get_edge_function among VS Code's agent-mode tools after starting Supabase through the MCP controls.
Read the files belonging to an Edge Function.
- deploy_edge_function
Look for deploy_edge_function among VS Code's agent-mode tools after starting Supabase through the MCP controls.
Deploy a new Edge Function or update one with a new version.
- create_branch
Look for create_branch among VS Code's agent-mode tools after starting Supabase through the MCP controls.
Create a development database branch with production migrations but without production data.
- list_branches
Look for list_branches among VS Code's agent-mode tools after starting Supabase through the MCP controls.
- delete_branch
Look for delete_branch among VS Code's agent-mode tools after starting Supabase through the MCP controls.
- merge_branch
Look for merge_branch among VS Code's agent-mode tools after starting Supabase through the MCP controls.
- reset_branch
Look for reset_branch among VS Code's agent-mode tools after starting Supabase through the MCP controls.
- rebase_branch
Look for rebase_branch among VS Code's agent-mode tools after starting Supabase through the MCP controls.
- list_storage_buckets
Look for list_storage_buckets among VS Code's agent-mode tools after starting Supabase through the MCP controls.
- get_storage_config
Look for get_storage_config among VS Code's agent-mode tools after starting Supabase through the MCP controls.
- update_storage_config
Look for update_storage_config among VS Code's agent-mode tools after starting Supabase through the MCP controls.
Troubleshooting Supabase in VS Code
- The Supabase MCP Server entry connects to mcp.supabase.com with type http. Start it through VS Code's MCP controls and review the endpoint before accepting trust prompts.
- Supabase MCP Server: check http connectivity to mcp.supabase.com from VS Code; a stdio command is not a replacement for this endpoint.
- Transport mismatch: Supabase's catalog lists stdio; the displayed VS Code configuration uses http.
- Known limitation: Broad access can mutate project data and infrastructure unless restricted.
- Known limitation: Branching is experimental and requires a paid plan.
- Known limitation: Local and self-hosted MCP variants provide fewer tools and lack OAuth 2.1.
- General VS Code troubleshooting lives in the /clients/vscode guide.
Supabase MCP Server — details. VS Code guide